IcingaHost: define boolean properties
This commit is contained in:
parent
1756546d8d
commit
63081474fa
|
@ -47,6 +47,16 @@ class IcingaHost extends IcingaObject
|
|||
'zone' => 'IcingaZone',
|
||||
);
|
||||
|
||||
protected $booleans = array(
|
||||
'enable_notifications',
|
||||
'enable_active_checks',
|
||||
'enable_passive_checks',
|
||||
'enable_event_handler',
|
||||
'enable_flapping',
|
||||
'enable_perfdata',
|
||||
'volatile'
|
||||
);
|
||||
|
||||
protected $supportsCustomVars = true;
|
||||
|
||||
protected $supportsGroups = true;
|
||||
|
@ -94,39 +104,4 @@ class IcingaHost extends IcingaObject
|
|||
{
|
||||
return $this->getResolvedProperty('check_command_id') !== null;
|
||||
}
|
||||
|
||||
protected function renderEnable_notifications()
|
||||
{
|
||||
return $this->renderBooleanProperty('enable_notifications');
|
||||
}
|
||||
|
||||
protected function renderEnable_active_checks()
|
||||
{
|
||||
return $this->renderBooleanProperty('enable_active_checks');
|
||||
}
|
||||
|
||||
protected function renderEnable_passive_checks()
|
||||
{
|
||||
return $this->renderBooleanProperty('enable_passive_checks');
|
||||
}
|
||||
|
||||
protected function renderEnable_event_handler()
|
||||
{
|
||||
return $this->renderBooleanProperty('enable_event_handler');
|
||||
}
|
||||
|
||||
protected function renderEnable_flapping()
|
||||
{
|
||||
return $this->renderBooleanProperty('enable_passive_checks');
|
||||
}
|
||||
|
||||
protected function renderEnable_perfdata()
|
||||
{
|
||||
return $this->renderBooleanProperty('enable_perfdata');
|
||||
}
|
||||
|
||||
protected function renderVolatile()
|
||||
{
|
||||
return $this->renderBooleanProperty('volatile');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue