1 #include "icinga/checkable.h"
2 #include "icinga/host.h"
3 #include "icinga/icingaapplication.h"
4 #include "base/dynamicobject.h"
9 class Service : Checkable
11 [config] String display_name {
13 if (m_DisplayName.IsEmpty())
14 return GetShortName();
19 [config] String short_name {
21 if (m_ShortName.IsEmpty())
27 [config] String host (HostRaw);
28 [enum] ServiceState "state" {
33 [enum] ServiceState last_state {
35 return GetLastStateRaw();
38 [enum] ServiceState last_hard_state {
40 return GetLastHardStateRaw();