mirror of
https://github.com/Icinga/icinga2.git
synced 2026-04-22 22:59:37 -04:00
Icinga DB: introduce icinga:downtime#scheduled_by
This commit is contained in:
parent
2cd9c1d902
commit
190e2f8fd9
1 changed files with 5 additions and 0 deletions
|
|
@ -1364,6 +1364,11 @@ bool IcingaDB::PrepareObject(const ConfigObject::Ptr& object, Dictionary::Ptr& a
|
|||
attributes->Set("triggered_by_id", GetObjectIdentifier(triggeredBy));
|
||||
}
|
||||
|
||||
auto scheduledBy (downtime->GetScheduledBy());
|
||||
if (!scheduledBy.IsEmpty()) {
|
||||
attributes->Set("scheduled_by", scheduledBy);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue