From f1bb0640209178ee88b831bc14c596147c92614b Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 29 May 2015 15:10:00 +0200 Subject: [PATCH] monitoring: Use the Servicedowntime data view in the ServiceList refs #9009 --- .../library/Monitoring/Object/ServiceList.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Object/ServiceList.php b/modules/monitoring/library/Monitoring/Object/ServiceList.php index 5ae9b8193..b06cffc89 100644 --- a/modules/monitoring/library/Monitoring/Object/ServiceList.php +++ b/modules/monitoring/library/Monitoring/Object/ServiceList.php @@ -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); } }