Remove hardcoded filter in state history summary query
This commit is contained in:
parent
25979f44e3
commit
45520fe2d6
|
@ -18,8 +18,11 @@ foreach ($summary as $entry) {
|
|||
'url' => $this->href(
|
||||
'monitoring/list/eventhistory',
|
||||
array(
|
||||
'timestamp<' => strtotime($day . ' 23:59:59'),
|
||||
'timestamp>' => strtotime($day . ' 00:00:00')
|
||||
'timestamp<' => strtotime($day . ' 23:59:59'),
|
||||
'timestamp>' => strtotime($day . ' 00:00:00'),
|
||||
'object_type' => 'service',
|
||||
'state' => '2',
|
||||
'type' => 'hard_state,soft_state'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
|
|
@ -34,8 +34,6 @@ class StateHistorySummaryQuery extends IdoQuery
|
|||
'sh.object_id = sho.object_id AND sho.is_active = 1',
|
||||
array()
|
||||
)->where('sh.state_time >= ?', '2013-11-20 00:00:00')
|
||||
->where('sh.state_type = 1')
|
||||
->where('sh.state = 2')
|
||||
->group('DATE(sh.state_time)');
|
||||
$this->joinedVirtualTables = array('statehistory' => true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue