#include "icinga/checkable.h" #include "icinga/host.h" #include "icinga/icingaapplication.h" #include "base/dynamicobject.h" namespace icinga { class Service : Checkable { [config] String display_name { get {{{ if (m_DisplayName.IsEmpty()) return GetShortName(); else return m_DisplayName; }}} }; [config] String short_name { get {{{ if (m_ShortName.IsEmpty()) return GetName(); else return m_ShortName; }}} }; [config] String host (HostRaw); [enum] ServiceState "state" { get {{{ return GetStateRaw(); }}} }; [enum] ServiceState last_state { get {{{ return GetLastStateRaw(); }}} }; [enum] ServiceState last_hard_state { get {{{ return GetLastHardStateRaw(); }}} }; }; }