From f4ca547ac27d4307caa1ad2110d6d9d6274cbb9b Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 10 Dec 2015 12:57:45 +0100 Subject: [PATCH] IcingaService: render intervals in a nice way --- library/Director/Objects/IcingaService.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/library/Director/Objects/IcingaService.php b/library/Director/Objects/IcingaService.php index ea56f1b1..93485675 100644 --- a/library/Director/Objects/IcingaService.php +++ b/library/Director/Objects/IcingaService.php @@ -68,6 +68,16 @@ class IcingaService extends IcingaObject return $this->renderRelationProperty('host', $this->host_id, 'host_name'); } + protected function renderCheck_Interval() + { + return $this->renderPropertyAsSeconds('check_interval'); + } + + protected function renderRetry_Interval() + { + return $this->renderPropertyAsSeconds('retry_interval'); + } + public function hasCheckCommand() { return $this->getResolvedProperty('check_command_id') !== null;