monitoring: Use the Hostdowntime data view in the HostList

refs #9009
This commit is contained in:
Eric Lippmann 2015-05-29 15:10:14 +02:00
parent f1bb064020
commit bb97269c55
1 changed files with 5 additions and 5 deletions

View File

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