mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 16:44:29 +02:00
Merge pull request #8631 from Icinga/feature/icingadb-scheduleddowntime
Icinga DB: introduce icinga:downtime#scheduled_by
This commit is contained in:
commit
b07d181c4a
@ -1381,6 +1381,11 @@ bool IcingaDB::PrepareObject(const ConfigObject::Ptr& object, Dictionary::Ptr& a
|
|||||||
attributes->Set("triggered_by_id", GetObjectIdentifier(triggeredBy));
|
attributes->Set("triggered_by_id", GetObjectIdentifier(triggeredBy));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto scheduledBy (downtime->GetScheduledBy());
|
||||||
|
if (!scheduledBy.IsEmpty()) {
|
||||||
|
attributes->Set("scheduled_by", scheduledBy);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user