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

Method DowntimesStartTimerHandler

lib/icinga/downtime.cpp:546–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546void Downtime::DowntimesStartTimerHandler()
547{
548 /* Start fixed downtimes. Flexible downtimes will be triggered on-demand. */
549 for (const Downtime::Ptr& downtime : ConfigType::GetObjectsByType<Downtime>()) {
550 if (downtime->IsActive() &&
551 downtime->CanBeTriggered() &&
552 downtime->GetFixed()) {
553 /* Send notifications. */
554 OnDowntimeStarted(downtime);
555
556 /* Trigger fixed downtime immediately. */
557 downtime->TriggerDowntime(std::fmax(downtime->GetStartTime(), downtime->GetEntryTime()));
558 }
559 }
560}
561
562void Downtime::DowntimesOrphanedTimerHandler()
563{

Callers

nothing calls this directly

Calls 4

IsActiveMethod · 0.80
CanBeTriggeredMethod · 0.80
GetStartTimeMethod · 0.80
TriggerDowntimeMethod · 0.45

Tested by

no test coverage detected