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

Method GetCheckable

lib/icinga/scheduleddowntime.cpp:116–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116Checkable::Ptr ScheduledDowntime::GetCheckable() const
117{
118 Host::Ptr host = Host::GetByName(GetHostName());
119
120 if (GetServiceName().IsEmpty())
121 return host;
122 else
123 return host->GetServiceByShortName(GetServiceName());
124}
125
126std::pair<double, double> ScheduledDowntime::FindRunningSegment(double minEnd)
127{

Callers

nothing calls this directly

Calls 2

GetServiceByShortNameMethod · 0.80
IsEmptyMethod · 0.45

Tested by

no test coverage detected