mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Merge pull request #9896 from Icinga/provide-cancel_time-where-has_been_cancelled-may-be-1
Disallow triggering a cancelled downtime, but provide cancel_time in Icinga DB downtime history where has_been_cancelled may be 1
This commit is contained in:
commit
6c03598678
@ -1863,6 +1863,7 @@ void IcingaDB::SendStartedDowntime(const Downtime::Ptr& downtime)
|
||||
"scheduled_end_time", Convert::ToString(TimestampToMilliseconds(downtime->GetEndTime())),
|
||||
"has_been_cancelled", Convert::ToString((unsigned short)downtime->GetWasCancelled()),
|
||||
"trigger_time", Convert::ToString(TimestampToMilliseconds(downtime->GetTriggerTime())),
|
||||
"cancel_time", Convert::ToString(TimestampToMilliseconds(downtime->GetRemoveTime())),
|
||||
"event_id", CalcEventID("downtime_start", downtime),
|
||||
"event_type", "downtime_start"
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user