IcingaService: render intervals in a nice way

This commit is contained in:
Thomas Gelf 2015-12-10 12:57:45 +01:00
parent ca15817da5
commit f4ca547ac2
1 changed files with 10 additions and 0 deletions

View File

@ -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;