icinga2/lib/icinga/host.ti

45 lines
693 B
Plaintext
Raw Normal View History

2013-10-26 09:41:45 +02:00
#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);
};
}