EventHistory: Drop obsolete SUM aggregates
Not used anywhere and not working for a long time already, at least as filter columns. refs #2860
This commit is contained in:
parent
fe9d355e84
commit
b07e4b409f
|
@ -29,11 +29,6 @@ class EventhistoryQuery extends IdoQuery
|
|||
protected $columnMap = array(
|
||||
'eventhistory' => array(
|
||||
'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',
|
||||
'service_description' => 'eh.service_description',
|
||||
'object_type' => 'eh.object_type',
|
||||
|
|
|
@ -13,11 +13,6 @@ class EventHistory extends DataView
|
|||
return array(
|
||||
'id',
|
||||
'instance_name',
|
||||
'cnt_notification',
|
||||
'cnt_hard_state',
|
||||
'cnt_soft_state',
|
||||
'cnt_downtime_start',
|
||||
'cnt_downtime_end',
|
||||
'host_name',
|
||||
'host_display_name',
|
||||
'service_description',
|
||||
|
|
Loading…
Reference in New Issue