mirror of https://github.com/Icinga/icinga2.git
34 lines
628 B
Plaintext
34 lines
628 B
Plaintext
#include "icinga/customvarobject.h"
|
|
#include "base/array.h"
|
|
|
|
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;
|
|
|
|
[state] bool enable_notifications;
|
|
[state] double last_notification;
|
|
};
|
|
|
|
}
|