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

Method GetStatusFields

lib/db_ido/endpointdbobject.cpp:42–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42Dictionary::Ptr EndpointDbObject::GetStatusFields() const
43{
44 Endpoint::Ptr endpoint = static_pointer_cast<Endpoint>(GetObject());
45
46
47 Log(LogDebug, "EndpointDbObject")
48 << "update status for endpoint '" << endpoint->GetName() << "'";
49
50 return new Dictionary({
51 { "identity", endpoint->GetName() },
52 { "node", IcingaApplication::GetInstance()->GetNodeName() },
53 { "zone_object_id", endpoint->GetZone() },
54 { "is_connected", EndpointIsConnected(endpoint) }
55 });
56}
57
58void EndpointDbObject::UpdateConnectedStatus(const Endpoint::Ptr& endpoint)
59{

Callers

nothing calls this directly

Calls 4

LogClass · 0.85
GetNodeNameMethod · 0.80
GetNameMethod · 0.45
GetZoneMethod · 0.45

Tested by

no test coverage detected