MCPcopy Create free account
hub / github.com/Icinga/icinga2 / NotifyDowntimeEnd

Method NotifyDowntimeEnd

lib/icinga/checkable.cpp:293–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293void Checkable::NotifyDowntimeEnd(const Downtime::Ptr& downtime)
294{
295 /* don't send notifications for downtimes which never triggered */
296 if (!downtime->IsTriggered())
297 return;
298
299 Checkable::Ptr checkable = downtime->GetCheckable();
300
301 if (!checkable->IsPaused())
302 OnNotificationsRequested(checkable, NotificationDowntimeEnd, checkable->GetLastCheckResult(), downtime->GetAuthor(), downtime->GetComment(), nullptr);
303}
304
305void Checkable::ValidateCheckInterval(const Lazy<double>& lvalue, const ValidationUtils& utils)
306{

Callers

nothing calls this directly

Calls 3

IsTriggeredMethod · 0.80
IsPausedMethod · 0.80
GetCheckableMethod · 0.45

Tested by

no test coverage detected