list/eventhistory: add flapping stopped support
This commit is contained in:
parent
eddb00cbc1
commit
d5450598f0
|
@ -21,6 +21,8 @@
|
|||
<tbody>
|
||||
<?php foreach ($history as $event): ?>
|
||||
<?php
|
||||
$icon = 'help';
|
||||
$title = $event->type;
|
||||
$stateName = 'invalid';
|
||||
$isService = isset($event->service);
|
||||
switch ($event->type) {
|
||||
|
@ -49,6 +51,11 @@
|
|||
$title = $this->translate('Flapping');
|
||||
$msg = $event->output;
|
||||
break;
|
||||
case 'flapping_deleted':
|
||||
$icon = 'ok';
|
||||
$title = $this->translate('Flapping Stopped');
|
||||
$msg = $event->output;
|
||||
break;
|
||||
case 'hard_state':
|
||||
$icon = $isService ? 'service' : 'host';
|
||||
$msg = '[ ' . $event->attempt . '/' . $event->max_attempts . ' ] ' . $event->output;
|
||||
|
|
Loading…
Reference in New Issue