mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
parent
cb21086d6c
commit
3d841d5f64
@ -36,13 +36,15 @@ void JsonRpcConnection::HandleAndWriteHeartbeats(boost::asio::yield_context yc)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
SendMessageInternal(new Dictionary({
|
if (m_Endpoint) {
|
||||||
{ "jsonrpc", "2.0" },
|
SendMessageInternal(new Dictionary({
|
||||||
{ "method", "event::Heartbeat" },
|
{ "jsonrpc", "2.0" },
|
||||||
{ "params", new Dictionary({
|
{ "method", "event::Heartbeat" },
|
||||||
{ "timeout", 120 }
|
{ "params", new Dictionary({
|
||||||
}) }
|
{ "timeout", 120 }
|
||||||
}));
|
}) }
|
||||||
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user