2013-10-26 09:41:45 +02:00
|
|
|
#include "base/dynamicobject.h"
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
class User : DynamicObject
|
|
|
|
{
|
|
|
|
[config] String display_name {
|
2013-10-30 09:55:00 +01:00
|
|
|
get {{{
|
|
|
|
if (m_DisplayName.IsEmpty())
|
|
|
|
return GetName();
|
|
|
|
else
|
|
|
|
return m_DisplayName;
|
|
|
|
}}}
|
2013-10-26 09:41:45 +02:00
|
|
|
};
|
|
|
|
[config] Dictionary::Ptr macros;
|
|
|
|
[config] Array::Ptr groups;
|
|
|
|
[config] String notification_period (NotificationPeriodRaw);
|
2014-04-07 13:59:41 +02:00
|
|
|
[config] Array::Ptr notification_type_filter (NotificationTypeFilterRaw);
|
|
|
|
int notification_type_filter_real (NotificationTypeFilter);
|
|
|
|
[config] Array::Ptr notification_state_filter (NotificationStateFilterRaw);
|
2014-04-08 13:23:24 +02:00
|
|
|
|
|
|
|
[config] String email;
|
|
|
|
[config] String pager;
|
|
|
|
|
2014-04-07 13:59:41 +02:00
|
|
|
int notification_state_filter_real (NotificationStateFilter);
|
2013-10-26 09:41:45 +02:00
|
|
|
[state] bool enable_notifications;
|
|
|
|
[state] double last_notification;
|
|
|
|
};
|
|
|
|
|
2013-10-30 09:55:00 +01:00
|
|
|
}
|