| 40 | } |
| 41 | |
| 42 | Dictionary::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 | |
| 58 | void EndpointDbObject::UpdateConnectedStatus(const Endpoint::Ptr& endpoint) |
| 59 | { |
nothing calls this directly
no test coverage detected