icinga2/lib/icinga/notification.ti

41 lines
1.1 KiB
Plaintext
Raw Normal View History

2013-10-26 09:41:45 +02:00
#include "base/dynamicobject.h"
namespace icinga
{
code {{{
class I2_ICINGA_API NotificationNameHelper : public DynamicObjectNameHelper
{
public:
virtual String MakeObjectName(const String& shortName, const Dictionary::Ptr props) const;
};
}}}
class Notification : DynamicObject < NotificationNameHelper
2013-10-26 09:41:45 +02:00
{
[config, protected] String notification_command (NotificationCommandRaw);
[config] double notification_interval {
default {{{ return 300; }}}
};
[config] String notification_period (NotificationPeriodRaw);
[config] Dictionary::Ptr macros;
[config, protected] Array::Ptr users (UsersRaw);
[config, protected] Array::Ptr user_groups (UserGroupsRaw);
[config] Dictionary::Ptr times;
[config] int notification_type_filter {
default {{{ return ~(int)0; }}}
};
[config] int notification_state_filter {
default {{{ return ~(int)0; }}}
};
[config, protected] String host_name;
[config, protected] String service_name;
2013-10-26 09:41:45 +02:00
[state] double last_notification;
[state, set_protected] double next_notification (NextNotificationRaw);
[state, set_protected] Value notification_number;
[state] double last_problem_notification;
2013-10-26 09:41:45 +02:00
};
}