mirror of https://github.com/Icinga/icinga2.git
38 lines
741 B
Plaintext
38 lines
741 B
Plaintext
#include "icinga/customvarobject.hpp"
|
|
#include "base/array.hpp"
|
|
|
|
namespace icinga
|
|
{
|
|
|
|
class User : CustomVarObject
|
|
{
|
|
[config] String display_name {
|
|
get {{{
|
|
if (m_DisplayName.IsEmpty())
|
|
return GetName();
|
|
else
|
|
return m_DisplayName;
|
|
}}}
|
|
};
|
|
[config] Array::Ptr groups {
|
|
default {{{ return make_shared<Array>(); }}}
|
|
};
|
|
[config] String period (PeriodRaw);
|
|
[config] Array::Ptr types;
|
|
int type_filter_real (TypeFilter);
|
|
[config] Array::Ptr states;
|
|
int state_filter_real (StateFilter);
|
|
|
|
[config] String email;
|
|
[config] String pager;
|
|
|
|
[config] bool enable_notifications (EnableNotificationsRaw) {
|
|
default {{{ return true; }}}
|
|
};
|
|
|
|
[state] Value override_enable_notifications;
|
|
[state] double last_notification;
|
|
};
|
|
|
|
}
|