mirror of https://github.com/Icinga/icinga2.git
parent
8a714d66f1
commit
399ae42a8c
|
@ -166,6 +166,7 @@ String Comment::AddComment(const Checkable::Ptr& checkable, CommentType entryTyp
|
|||
attrs->Set("text", text);
|
||||
attrs->Set("expire_time", expireTime);
|
||||
attrs->Set("entry_type", entryType);
|
||||
attrs->Set("entry_time", Utility::GetTime());
|
||||
|
||||
Host::Ptr host;
|
||||
Service::Ptr service;
|
||||
|
|
|
@ -214,6 +214,7 @@ String Downtime::AddDowntime(const Checkable::Ptr& checkable, const String& auth
|
|||
attrs->Set("triggered_by", triggeredBy);
|
||||
attrs->Set("scheduled_by", scheduledBy);
|
||||
attrs->Set("config_owner", scheduledDowntime);
|
||||
attrs->Set("entry_time", Utility::GetTime());
|
||||
|
||||
Host::Ptr host;
|
||||
Service::Ptr service;
|
||||
|
|
|
@ -66,7 +66,7 @@ class Downtime : ConfigObject < DowntimeNameComposer
|
|||
}}}
|
||||
};
|
||||
|
||||
[state] double entry_time {
|
||||
[config] double entry_time {
|
||||
default {{{ return Utility::GetTime(); }}}
|
||||
};
|
||||
[config, required] String author;
|
||||
|
|
Loading…
Reference in New Issue