From 5ea666a7ad7839963bcd2a6aba0c441cfebe21e9 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Fri, 14 Mar 2025 11:20:44 +0100 Subject: [PATCH] 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. --- lib/icingadb/icingadb-objects.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/icingadb/icingadb-objects.cpp b/lib/icingadb/icingadb-objects.cpp index 40580a358..29f946708 100644 --- a/lib/icingadb/icingadb-objects.cpp +++ b/lib/icingadb/icingadb-objects.cpp @@ -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" });