1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #include "icinga/checkable.hpp"
4 #include "icinga/customvarobject.hpp"
5 #impl_include "icinga/hostgroup.hpp"
12 class Host : Checkable
14 load_after ApiListener;
18 [config, no_user_modify, required] array(name(HostGroup)) groups {
19 default {{{ return new Array(); }}}
22 [config] String display_name {
24 if (m_DisplayName.IsEmpty())
31 [config] String address;
32 [config] String address6;
34 [enum, no_storage] HostState "state" {
37 [enum, no_storage] HostState last_state {
40 [enum, no_storage] HostState last_hard_state {
43 [state] Timestamp last_state_up;
44 [state] Timestamp last_state_down;