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 * Get the scheduled downtimes
* *
* @return type * @return \Icinga\Module\Monitoring\DataView\Hostdowntime
*/ */
public function getScheduledDowntimes() public function getScheduledDowntimes()
{ {
return $this->backend->select() return $this->backend
->from('downtime') ->select()
->applyFilter(clone $this->filter) ->from('hostdowntime', array('host_name'))
->where('downtime_objecttype', 'host'); ->applyFilter(clone $this->filter);
} }
} }