Merge pull request #3278 from Icinga/bugfix/drop-obsolete-aggregates-from-event-history-query-2860
EventHistory: Drop obsolete SUM aggregates
This commit is contained in:
commit
f4c46cde19
|
@ -29,11 +29,6 @@ class EventhistoryQuery extends IdoQuery
|
||||||
protected $columnMap = array(
|
protected $columnMap = array(
|
||||||
'eventhistory' => array(
|
'eventhistory' => array(
|
||||||
'id' => 'eh.id',
|
'id' => 'eh.id',
|
||||||
'cnt_notification' => "SUM(CASE eh.type WHEN 'notify' THEN 1 ELSE 0 END)",
|
|
||||||
'cnt_hard_state' => "SUM(CASE eh.type WHEN 'hard_state' THEN 1 ELSE 0 END)",
|
|
||||||
'cnt_soft_state' => "SUM(CASE eh.type WHEN 'hard_state' THEN 1 ELSE 0 END)",
|
|
||||||
'cnt_downtime_start' => "SUM(CASE eh.type WHEN 'dt_start' THEN 1 ELSE 0 END)",
|
|
||||||
'cnt_downtime_end' => "SUM(CASE eh.type WHEN 'dt_end' THEN 1 ELSE 0 END)",
|
|
||||||
'host_name' => 'eh.host_name',
|
'host_name' => 'eh.host_name',
|
||||||
'service_description' => 'eh.service_description',
|
'service_description' => 'eh.service_description',
|
||||||
'object_type' => 'eh.object_type',
|
'object_type' => 'eh.object_type',
|
||||||
|
|
|
@ -13,11 +13,6 @@ class EventHistory extends DataView
|
||||||
return array(
|
return array(
|
||||||
'id',
|
'id',
|
||||||
'instance_name',
|
'instance_name',
|
||||||
'cnt_notification',
|
|
||||||
'cnt_hard_state',
|
|
||||||
'cnt_soft_state',
|
|
||||||
'cnt_downtime_start',
|
|
||||||
'cnt_downtime_end',
|
|
||||||
'host_name',
|
'host_name',
|
||||||
'host_display_name',
|
'host_display_name',
|
||||||
'service_description',
|
'service_description',
|
||||||
|
|
Loading…
Reference in New Issue