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

Method ExecutionTimeAccessor

lib/livestatus/hoststable.cpp:830–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828}
829
830Value HostsTable::ExecutionTimeAccessor(const Value& row)
831{
832 Host::Ptr host = static_cast<Host::Ptr>(row);
833
834 if (!host)
835 return Empty;
836
837 CheckResult::Ptr cr = host->GetLastCheckResult();
838
839 if (!cr)
840 return Empty;
841
842 return cr->CalculateExecutionTime();
843}
844
845Value HostsTable::PercentStateChangeAccessor(const Value& row)
846{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected