| 114 | } |
| 115 | |
| 116 | Checkable::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 | |
| 126 | std::pair<double, double> ScheduledDowntime::FindRunningSegment(double minEnd) |
| 127 | { |
nothing calls this directly
no test coverage detected