icinga2/lib/icinga/host.ti

48 lines
846 B
Plaintext
Raw Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2014-05-25 16:23:35 +02:00
#include "icinga/checkable.hpp"
#include "icinga/customvarobject.hpp"
#impl_include "icinga/hostgroup.hpp"
2013-10-26 09:41:45 +02:00
library icinga;
2013-10-26 09:41:45 +02:00
namespace icinga
{
2014-04-03 15:36:13 +02:00
class Host : Checkable
2013-10-26 09:41:45 +02:00
{
load_after ApiListener;
load_after Endpoint;
load_after Zone;
[config, no_user_modify, required] array(name(HostGroup)) groups {
default {{{ return new Array(); }}}
};
2013-10-26 09:41:45 +02:00
[config] String display_name {
get {{{
if (m_DisplayName.m_Value.IsEmpty())
return GetName();
else
return m_DisplayName.m_Value;
}}}
2013-10-26 09:41:45 +02:00
};
[config] String address;
[config] String address6;
[enum, no_storage] HostState "state" {
get;
};
[enum, no_storage] HostState last_state {
get;
};
[enum, no_storage] HostState last_hard_state {
get;
};
[state] Timestamp last_state_up;
[state] Timestamp last_state_down;
2013-10-26 09:41:45 +02:00
};
}