mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
IcingaDB: Don't set cancel_time
for downtime start event
It's a downtime start event there's now way the downtime could be cancelled before it even started.
This commit is contained in:
parent
abd95a33ca
commit
5ea666a7ad
@ -2131,7 +2131,6 @@ void IcingaDB::SendStartedDowntime(const Downtime::Ptr& downtime)
|
|||||||
"scheduled_end_time", Convert::ToString(TimestampToMilliseconds(downtime->GetEndTime())),
|
"scheduled_end_time", Convert::ToString(TimestampToMilliseconds(downtime->GetEndTime())),
|
||||||
"has_been_cancelled", Convert::ToString((unsigned short)downtime->GetWasCancelled()),
|
"has_been_cancelled", Convert::ToString((unsigned short)downtime->GetWasCancelled()),
|
||||||
"trigger_time", Convert::ToString(TimestampToMilliseconds(downtime->GetTriggerTime())),
|
"trigger_time", Convert::ToString(TimestampToMilliseconds(downtime->GetTriggerTime())),
|
||||||
"cancel_time", Convert::ToString(TimestampToMilliseconds(downtime->GetRemoveTime())),
|
|
||||||
"event_id", CalcEventID("downtime_start", downtime),
|
"event_id", CalcEventID("downtime_start", downtime),
|
||||||
"event_type", "downtime_start"
|
"event_type", "downtime_start"
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user