mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
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(
|
'url' => $this->href(
|
||||||
'monitoring/list/eventhistory',
|
'monitoring/list/eventhistory',
|
||||||
array(
|
array(
|
||||||
'timestamp<' => strtotime($day . ' 23:59:59'),
|
'timestamp<' => strtotime($day . ' 23:59:59'),
|
||||||
'timestamp>' => strtotime($day . ' 00:00:00')
|
'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',
|
'sh.object_id = sho.object_id AND sho.is_active = 1',
|
||||||
array()
|
array()
|
||||||
)->where('sh.state_time >= ?', '2013-11-20 00:00:00')
|
)->where('sh.state_time >= ?', '2013-11-20 00:00:00')
|
||||||
->where('sh.state_type = 1')
|
|
||||||
->where('sh.state = 2')
|
|
||||||
->group('DATE(sh.state_time)');
|
->group('DATE(sh.state_time)');
|
||||||
$this->joinedVirtualTables = array('statehistory' => true);
|
$this->joinedVirtualTables = array('statehistory' => true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user