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:
Yonas Habteab 2025-03-14 11:20:44 +01:00
parent abd95a33ca
commit 5ea666a7ad

View File

@ -2131,7 +2131,6 @@ 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"
});