parent
f1bb064020
commit
bb97269c55
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue