monitoring: Use the Servicedowntime data view in the ServiceList

refs 
This commit is contained in:
Eric Lippmann 2015-05-29 15:10:00 +02:00
parent 2cbadbf957
commit f1bb064020

@ -138,13 +138,13 @@ class ServiceList extends ObjectList
/**
* Get the scheduled downtimes
*
* @return type
* @return \Icinga\Module\Monitoring\DataView\Servicedowntime
*/
public function getScheduledDowntimes()
{
return $this->backend->select()
->from('downtime')
->applyFilter(clone $this->filter)
->where('downtime_objecttype', 'service');
return $this->backend
->select()
->from('servicedowntime', array('host_name', 'service_description'))
->applyFilter(clone $this->filter);
}
}