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

Method DowntimesOrphanedTimerHandler

lib/icinga/downtime.cpp:562–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560}
561
562void Downtime::DowntimesOrphanedTimerHandler()
563{
564 for (const Downtime::Ptr& downtime : ConfigType::GetObjectsByType<Downtime>()) {
565 /* Only remove downtimes which are activated after daemon start. */
566 if (downtime->IsActive() && !downtime->HasValidConfigOwner())
567 RemoveDowntime(downtime->GetName(), false, DowntimeRemovedByConfigOwner);
568 }
569}
570
571void Downtime::ValidateStartTime(const Lazy<Timestamp>& lvalue, const ValidationUtils& utils)
572{

Callers

nothing calls this directly

Calls 3

IsActiveMethod · 0.80
HasValidConfigOwnerMethod · 0.80
GetNameMethod · 0.45

Tested by

no test coverage detected