]> granicus.if.org Git - icinga2/blob - lib/icinga/user.ti
Implement attributes for some well-known macros and allow macro recursion.
[icinga2] / lib / icinga / user.ti
1 #include "base/dynamicobject.h"
2
3 namespace icinga
4 {
5
6 class User : DynamicObject
7 {
8         [config] String display_name {
9                 get {{{
10                         if (m_DisplayName.IsEmpty())
11                                 return GetName();
12                         else
13                                 return m_DisplayName;
14                 }}}
15         };
16         [config] Dictionary::Ptr macros;
17         [config] Array::Ptr groups;
18         [config] String notification_period (NotificationPeriodRaw);
19         [config] Array::Ptr notification_type_filter (NotificationTypeFilterRaw);
20         int notification_type_filter_real (NotificationTypeFilter);
21         [config] Array::Ptr notification_state_filter (NotificationStateFilterRaw);
22
23         [config] String email;
24         [config] String pager;
25
26         int notification_state_filter_real (NotificationStateFilter);
27         [state] bool enable_notifications;
28         [state] double last_notification;
29 };
30
31 }