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

Method EventHandlerAccessor

lib/livestatus/hoststable.cpp:270–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270Value HostsTable::EventHandlerAccessor(const Value& row)
271{
272 Host::Ptr host = static_cast<Host::Ptr>(row);
273
274 if (!host)
275 return Empty;
276
277 EventCommand::Ptr eventcommand = host->GetEventCommand();
278 if (eventcommand)
279 return CompatUtility::GetCommandName(eventcommand);
280
281 return Empty;
282}
283
284Value HostsTable::CheckPeriodAccessor(const Value& row)
285{

Callers

nothing calls this directly

Calls 1

GetEventCommandMethod · 0.80

Tested by

no test coverage detected