]> granicus.if.org Git - icinga2/blob - lib/icinga/notification.ti
Make props argument for NameComposer::MakeName constant
[icinga2] / lib / icinga / notification.ti
1 #include "icinga/customvarobject.hpp"
2
3 namespace icinga
4 {
5
6 code {{{
7 class I2_ICINGA_API NotificationNameComposer : public NameComposer
8 {
9 public:
10         virtual String MakeName(const String& shortName, const Dictionary::Ptr& props) const;
11 };
12 }}}
13
14 class Notification : CustomVarObject < NotificationNameComposer
15 {
16         [config, protected] String command (CommandRaw);
17         [config] double interval {
18                 default {{{ return 1800; }}}
19         };
20         [config] String period (PeriodRaw);
21         [config] Dictionary::Ptr macros;
22         [config, protected] Array::Ptr users (UsersRaw);
23         [config, protected] Array::Ptr user_groups (UserGroupsRaw);
24         [config] Dictionary::Ptr times;
25         [config] Array::Ptr types;
26         int type_filter_real (TypeFilter);
27         [config] Array::Ptr states;
28         int state_filter_real (StateFilter);
29         [config, protected] String host_name;
30         [config, protected] String service_name;
31
32         [state] double last_notification;
33         [state, set_protected] double next_notification (NextNotificationRaw);
34         [state, set_protected] Value notification_number;
35         [state] double last_problem_notification;
36 };
37
38 }