mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
monitoring: Use the Servicedowntime data view in the ServiceList
refs #9009
This commit is contained in:
parent
2cbadbf957
commit
f1bb064020
@ -138,13 +138,13 @@ class ServiceList extends ObjectList
|
|||||||
/**
|
/**
|
||||||
* Get the scheduled downtimes
|
* Get the scheduled downtimes
|
||||||
*
|
*
|
||||||
* @return type
|
* @return \Icinga\Module\Monitoring\DataView\Servicedowntime
|
||||||
*/
|
*/
|
||||||
public function getScheduledDowntimes()
|
public function getScheduledDowntimes()
|
||||||
{
|
{
|
||||||
return $this->backend->select()
|
return $this->backend
|
||||||
->from('downtime')
|
->select()
|
||||||
->applyFilter(clone $this->filter)
|
->from('servicedowntime', array('host_name', 'service_description'))
|
||||||
->where('downtime_objecttype', 'service');
|
->applyFilter(clone $this->filter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user