IcingaService: render intervals in a nice way
This commit is contained in:
parent
ca15817da5
commit
f4ca547ac2
|
@ -68,6 +68,16 @@ class IcingaService extends IcingaObject
|
||||||
return $this->renderRelationProperty('host', $this->host_id, 'host_name');
|
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()
|
public function hasCheckCommand()
|
||||||
{
|
{
|
||||||
return $this->getResolvedProperty('check_command_id') !== null;
|
return $this->getResolvedProperty('check_command_id') !== null;
|
||||||
|
|
Loading…
Reference in New Issue