mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
monitoring: Support host and service display_name in the EventHistory data view
refs #7843
This commit is contained in:
parent
25c2e99122
commit
3e702ac255
@ -1,6 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
// {{{ICINGA_LICENSE_HEADER}}}
|
|
||||||
// {{{ICINGA_LICENSE_HEADER}}}
|
|
||||||
|
|
||||||
namespace Icinga\Module\Monitoring\DataView;
|
namespace Icinga\Module\Monitoring\DataView;
|
||||||
|
|
||||||
@ -20,7 +18,9 @@ class EventHistory extends DataView
|
|||||||
'cnt_downtime_start',
|
'cnt_downtime_start',
|
||||||
'cnt_downtime_end',
|
'cnt_downtime_end',
|
||||||
'host_name',
|
'host_name',
|
||||||
|
'host_display_name',
|
||||||
'service_description',
|
'service_description',
|
||||||
|
'service_display_name',
|
||||||
'object_type',
|
'object_type',
|
||||||
'timestamp',
|
'timestamp',
|
||||||
'state',
|
'state',
|
||||||
@ -38,8 +38,8 @@ class EventHistory extends DataView
|
|||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'timestamp' => array(
|
'timestamp' => array(
|
||||||
'columns' => array('timestamp'),
|
'columns' => array('timestamp'),
|
||||||
'order' => 'DESC'
|
'order' => 'DESC'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user