EventHistoryQuery: Provide `hostgroup_name' as alternative to `hostgroup'
This can't be queried though until #7274 has been resolved. refs #8613
This commit is contained in:
parent
ec67c28629
commit
9e79419eb1
|
@ -44,6 +44,7 @@ class EventHistoryQuery extends IdoQuery
|
||||||
),
|
),
|
||||||
'hostgroups' => array(
|
'hostgroups' => array(
|
||||||
'hostgroup' => 'hgo.name1 COLLATE latin1_general_ci',
|
'hostgroup' => 'hgo.name1 COLLATE latin1_general_ci',
|
||||||
|
'hostgroup_name' => 'hgo.name1'
|
||||||
),
|
),
|
||||||
'hosts' => array(
|
'hosts' => array(
|
||||||
'host_display_name' => 'CASE WHEN sh.display_name IS NOT NULL THEN sh.display_name ELSE h.display_name END'
|
'host_display_name' => 'CASE WHEN sh.display_name IS NOT NULL THEN sh.display_name ELSE h.display_name END'
|
||||||
|
|
|
@ -22,6 +22,7 @@ class EventHistory extends DataView
|
||||||
'host_display_name',
|
'host_display_name',
|
||||||
'service_description',
|
'service_description',
|
||||||
'service_display_name',
|
'service_display_name',
|
||||||
|
'hostgroup_name',
|
||||||
'object_type',
|
'object_type',
|
||||||
'timestamp',
|
'timestamp',
|
||||||
'state',
|
'state',
|
||||||
|
|
Loading…
Reference in New Issue