icinga2/lib/icinga/service.ti

46 lines
743 B
Plaintext
Raw Normal View History

2014-04-03 15:36:13 +02:00
#include "icinga/checkable.h"
2013-10-26 09:41:45 +02:00
#include "icinga/host.h"
#include "icinga/icingaapplication.h"
#include "base/dynamicobject.h"
namespace icinga
{
2014-04-03 15:36:13 +02:00
class Service : Checkable
2013-10-26 09:41:45 +02:00
{
[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;
}}}
2013-10-26 09:41:45 +02:00
};
[config] String host (HostRaw);
2014-04-03 15:36:13 +02:00
[enum] ServiceState "state" {
get {{{
return GetStateRaw();
}}}
2013-10-26 09:41:45 +02:00
};
2014-04-03 15:36:13 +02:00
[enum] ServiceState last_state {
get {{{
return GetLastStateRaw();
}}}
2013-10-26 09:41:45 +02:00
};
2014-04-03 15:36:13 +02:00
[enum] ServiceState last_hard_state {
get {{{
return GetLastHardStateRaw();
}}}
2013-10-26 09:41:45 +02:00
};
};
}