mirror of https://github.com/Icinga/icinga2.git
45 lines
693 B
Plaintext
45 lines
693 B
Plaintext
|
#include "base/dynamicobject.h"
|
||
|
|
||
|
namespace icinga
|
||
|
{
|
||
|
|
||
|
code {{{
|
||
|
/**
|
||
|
* The state of a service.
|
||
|
*
|
||
|
* @ingroup icinga
|
||
|
*/
|
||
|
enum ServiceState
|
||
|
{
|
||
|
StateOK = 0,
|
||
|
StateWarning = 1,
|
||
|
StateCritical = 2,
|
||
|
StateUnknown = 3
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
* The state type of a host or service.
|
||
|
*
|
||
|
* @ingroup icinga
|
||
|
*/
|
||
|
enum StateType
|
||
|
{
|
||
|
StateTypeSoft = 0,
|
||
|
StateTypeHard = 1
|
||
|
};
|
||
|
}}}
|
||
|
|
||
|
class Host : DynamicObject
|
||
|
{
|
||
|
[config] String display_name {
|
||
|
default {{{ return GetName(); }}}
|
||
|
};
|
||
|
[config] Array::Ptr groups;
|
||
|
[config] Dictionary::Ptr macros;
|
||
|
[config] Array::Ptr host_dependencies;
|
||
|
[config] Array::Ptr service_dependencies;
|
||
|
[config] String check;
|
||
|
[config, protected] Dictionary::Ptr services (ServiceDescriptions);
|
||
|
};
|
||
|
|
||
|
}
|