mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
Merge pull request #3712 from ConstantinMatheis/master
Add check source to history details view.
This commit is contained in:
commit
2e2a269549
@ -315,6 +315,7 @@ class EventController extends Controller
|
|||||||
'last_hard_state' => 'statechangeevent_last_hard_state',
|
'last_hard_state' => 'statechangeevent_last_hard_state',
|
||||||
'output' => 'statechangeevent_output',
|
'output' => 'statechangeevent_output',
|
||||||
'long_output' => 'statechangeevent_long_output',
|
'long_output' => 'statechangeevent_long_output',
|
||||||
|
'check_source' => 'statechangeevent_check_source',
|
||||||
'host_name',
|
'host_name',
|
||||||
'service_description'
|
'service_description'
|
||||||
))
|
))
|
||||||
@ -503,6 +504,7 @@ class EventController extends Controller
|
|||||||
$details = array(
|
$details = array(
|
||||||
array($this->translate('State time'), DateFormatter::formatTime($event->state_time)),
|
array($this->translate('State time'), DateFormatter::formatTime($event->state_time)),
|
||||||
array($this->translate('State'), $this->state($isService, $event->state)),
|
array($this->translate('State'), $this->state($isService, $event->state)),
|
||||||
|
array($this->translate('Check source'), $event->check_source),
|
||||||
array($this->translate('Check attempt'), $this->view->escape(sprintf(
|
array($this->translate('Check attempt'), $this->view->escape(sprintf(
|
||||||
$this->translate('%d of %d'),
|
$this->translate('%d of %d'),
|
||||||
(int) $event->current_check_attempt,
|
(int) $event->current_check_attempt,
|
||||||
|
@ -20,7 +20,8 @@ class StatechangeeventQuery extends IdoQuery
|
|||||||
'statechangeevent_last_state' => 'sh.last_state',
|
'statechangeevent_last_state' => 'sh.last_state',
|
||||||
'statechangeevent_last_hard_state' => 'sh.last_hard_state',
|
'statechangeevent_last_hard_state' => 'sh.last_hard_state',
|
||||||
'statechangeevent_output' => 'sh.output',
|
'statechangeevent_output' => 'sh.output',
|
||||||
'statechangeevent_long_output' => 'sh.long_output'
|
'statechangeevent_long_output' => 'sh.long_output',
|
||||||
|
'statechangeevent_check_source' => 'sh.check_source'
|
||||||
),
|
),
|
||||||
'object' => array(
|
'object' => array(
|
||||||
'host_name' => 'o.name1',
|
'host_name' => 'o.name1',
|
||||||
|
@ -19,6 +19,7 @@ class Statechangeevent extends DataView
|
|||||||
'statechangeevent_last_hard_state',
|
'statechangeevent_last_hard_state',
|
||||||
'statechangeevent_output',
|
'statechangeevent_output',
|
||||||
'statechangeevent_long_output',
|
'statechangeevent_long_output',
|
||||||
|
'statechangeevent_check_source',
|
||||||
'host_name',
|
'host_name',
|
||||||
'service_description'
|
'service_description'
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user