Skip to content

Commit 6c03598

Browse files
authored
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
2 parents 949d983 + 9aaa990 commit 6c03598

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/icingadb/icingadb-objects.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1863,6 +1863,7 @@ void IcingaDB::SendStartedDowntime(const Downtime::Ptr& downtime)
18631863
"scheduled_end_time", Convert::ToString(TimestampToMilliseconds(downtime->GetEndTime())),
18641864
"has_been_cancelled", Convert::ToString((unsigned short)downtime->GetWasCancelled()),
18651865
"trigger_time", Convert::ToString(TimestampToMilliseconds(downtime->GetTriggerTime())),
1866+
"cancel_time", Convert::ToString(TimestampToMilliseconds(downtime->GetRemoveTime())),
18661867
"event_id", CalcEventID("downtime_start", downtime),
18671868
"event_type", "downtime_start"
18681869
});

0 commit comments

Comments
 (0)