mirror of https://github.com/Icinga/icinga2.git
51 lines
762 B
Plaintext
51 lines
762 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 {
|
|
get {{{
|
|
if (m_DisplayName.IsEmpty())
|
|
return GetName();
|
|
else
|
|
return m_DisplayName;
|
|
}}}
|
|
};
|
|
[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);
|
|
};
|
|
|
|
}
|