Merge branch '2827-Mensaje-de-alerta-disparada' into 'develop'
Added number of times an alert is fired - #2827 See merge request artica/pandorafms!1823
This commit is contained in:
commit
08a8165b93
|
@ -472,7 +472,7 @@ function print_alerts_summary_modal_window($id, $alerts) {
|
||||||
|
|
||||||
if ($alert["times_fired"] > 0) {
|
if ($alert["times_fired"] > 0) {
|
||||||
$status = STATUS_ALERT_FIRED;
|
$status = STATUS_ALERT_FIRED;
|
||||||
$title = __('Alert fired').' '.$alert["times_fired"].' '.__('times');
|
$title = __('Alert fired').' '.$alert["internal_counter"].' '.__('time(s)');
|
||||||
}
|
}
|
||||||
elseif ($alert["disabled"] > 0) {
|
elseif ($alert["disabled"] > 0) {
|
||||||
$status = STATUS_ALERT_DISABLED;
|
$status = STATUS_ALERT_DISABLED;
|
||||||
|
|
|
@ -645,7 +645,7 @@ foreach ($simple_alerts as $alert) {
|
||||||
|
|
||||||
if ($alert["times_fired"] > 0) {
|
if ($alert["times_fired"] > 0) {
|
||||||
$status = STATUS_ALERT_FIRED;
|
$status = STATUS_ALERT_FIRED;
|
||||||
$title = __('Alert fired').' '.$alert["times_fired"].' '.__('times');
|
$title = __('Alert fired').' '.$alert["internal_counter"].' '.__('time(s)');
|
||||||
}
|
}
|
||||||
elseif ($alert["disabled"] > 0) {
|
elseif ($alert["disabled"] > 0) {
|
||||||
$status = STATUS_ALERT_DISABLED;
|
$status = STATUS_ALERT_DISABLED;
|
||||||
|
|
|
@ -82,7 +82,7 @@ $table_details->data[] = $data;
|
||||||
|
|
||||||
if ($alert["times_fired"] > 0) {
|
if ($alert["times_fired"] > 0) {
|
||||||
$status = STATUS_ALERT_FIRED;
|
$status = STATUS_ALERT_FIRED;
|
||||||
$title = __('Alert fired').' '.$alert["times_fired"].' '.__('times');
|
$title = __('Alert fired').' '.$alert["internal_counter"].' '.__('time(s)');
|
||||||
}
|
}
|
||||||
elseif ($alert["disabled"] > 0) {
|
elseif ($alert["disabled"] > 0) {
|
||||||
$status = STATUS_ALERT_DISABLED;
|
$status = STATUS_ALERT_DISABLED;
|
||||||
|
|
|
@ -979,7 +979,7 @@ function ui_format_alert_row ($alert, $agent = true, $url = '', $agent_style = f
|
||||||
|
|
||||||
if ($alert["times_fired"] > 0) {
|
if ($alert["times_fired"] > 0) {
|
||||||
$status = STATUS_ALERT_FIRED;
|
$status = STATUS_ALERT_FIRED;
|
||||||
$title = __('Alert fired').' '.$alert["times_fired"].' '.__('times');
|
$title = __('Alert fired').' '.$alert["internal_counter"].' '.__('time(s)');
|
||||||
}
|
}
|
||||||
elseif ($alert["disabled"] > 0) {
|
elseif ($alert["disabled"] > 0) {
|
||||||
$status = STATUS_ALERT_DISABLED;
|
$status = STATUS_ALERT_DISABLED;
|
||||||
|
|
|
@ -250,7 +250,7 @@ class Alerts {
|
||||||
|
|
||||||
if ($alert["times_fired"] > 0) {
|
if ($alert["times_fired"] > 0) {
|
||||||
$status = STATUS_ALERT_FIRED;
|
$status = STATUS_ALERT_FIRED;
|
||||||
$title = __('Alert fired').' '.$alert["times_fired"].' '.__('times');
|
$title = __('Alert fired').' '.$alert["internal_counter"].' '.__('time(s)');
|
||||||
}
|
}
|
||||||
elseif ($alert["disabled"] > 0) {
|
elseif ($alert["disabled"] > 0) {
|
||||||
$status = STATUS_ALERT_DISABLED;
|
$status = STATUS_ALERT_DISABLED;
|
||||||
|
|
Loading…
Reference in New Issue