icinga2/lib/icinga/service.ti
Gunnar Beutner 23e9630682 Implement host checks.
Refs #5919
2014-04-04 15:57:54 +02:00

46 lines
743 B
Plaintext

#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();
}}}
};
};
}