icinga2/lib/icinga/notification.ti

39 lines
1.0 KiB
Plaintext
Raw Normal View History

#include "icinga/customvarobject.h"
2013-10-26 09:41:45 +02:00
namespace icinga
{
code {{{
class I2_ICINGA_API NotificationNameComposer : public NameComposer
{
public:
virtual String MakeName(const String& shortName, const Dictionary::Ptr props) const;
};
}}}
class Notification : CustomVarObject < NotificationNameComposer
2013-10-26 09:41:45 +02:00
{
[config, protected] String command (CommandRaw);
[config] double interval {
default {{{ return 1800; }}}
2013-10-26 09:41:45 +02:00
};
[config] String period (PeriodRaw);
2013-10-26 09:41:45 +02:00
[config] Dictionary::Ptr macros;
[config, protected] Array::Ptr users (UsersRaw);
[config, protected] Array::Ptr user_groups (UserGroupsRaw);
[config] Dictionary::Ptr times;
[config] Array::Ptr types;
int type_filter_real (TypeFilter);
[config] Array::Ptr states;
int state_filter_real (StateFilter);
[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
};
}