Source
2149
2149
}
2150
2150
2151
2151
/**
2152
2152
* Creates div with alert info icons.
2153
2153
*
2154
2154
* @param array $action
2155
2155
* @param int $action['action_type'] Type of event table action (ZBX_EVENT_HISTORY_*).
2156
2156
* @param string $action['status'] Alert status.
2157
2157
* @param string $action['alerttype'] Type of alert.
2158
2158
* @param string $action['mediatypeid'] ID for mediatype, where alert message was sent.
2159
-
* @param string $action['retries'] How many retries was done for pending alert message.
2159
+
* @param string $action['retries'] How many retries were done for pending alert message.
2160
2160
* @param array $mediatypes Array of media type data.
2161
2161
* @param array $mediatypes[]['maxattempts'] Maximum attempts for this mediatype.
2162
2162
*
2163
2163
* @return CDiv|string
2164
2164
*/
2165
2165
function makeActionTableInfo(array $action, array $mediatypes) {
2166
2166
if ($action['action_type'] == ZBX_EVENT_HISTORY_ALERT) {
2167
2167
$info_icons = [];
2168
2168
2169
2169
if ($action['alerttype'] == ALERT_TYPE_MESSAGE