mirror of
https://github.com/Icinga/icinga2.git
synced 2026-02-03 20:40:17 -05:00
Drop ApiListener#m_RelayQueue
This commit is contained in:
parent
55f2b7bca8
commit
92072981aa
2 changed files with 0 additions and 8 deletions
|
|
@ -57,7 +57,6 @@ REGISTER_APIFUNCTION(Hello, icinga, &ApiListener::HelloAPIHandler);
|
|||
|
||||
ApiListener::ApiListener()
|
||||
{
|
||||
m_RelayQueue.SetName("ApiListener, RelayQueue");
|
||||
m_SyncQueue.SetName("ApiListener, SyncQueue");
|
||||
}
|
||||
|
||||
|
|
@ -1677,10 +1676,8 @@ std::pair<Dictionary::Ptr, Dictionary::Ptr> ApiListener::GetStatus()
|
|||
size_t jsonRpcAnonymousClients = GetAnonymousClients().size();
|
||||
size_t httpClients = GetHttpClients().size();
|
||||
size_t syncQueueItems = m_SyncQueue.GetLength();
|
||||
size_t relayQueueItems = m_RelayQueue.GetLength();
|
||||
double workQueueItemRate = JsonRpcConnection::GetWorkQueueRate();
|
||||
double syncQueueItemRate = m_SyncQueue.GetTaskCount(60) / 60.0;
|
||||
double relayQueueItemRate = m_RelayQueue.GetTaskCount(60) / 60.0;
|
||||
|
||||
Dictionary::Ptr status = new Dictionary({
|
||||
{ "identity", GetIdentity() },
|
||||
|
|
@ -1695,10 +1692,8 @@ std::pair<Dictionary::Ptr, Dictionary::Ptr> ApiListener::GetStatus()
|
|||
{ "json_rpc", new Dictionary({
|
||||
{ "anonymous_clients", jsonRpcAnonymousClients },
|
||||
{ "sync_queue_items", syncQueueItems },
|
||||
{ "relay_queue_items", relayQueueItems },
|
||||
{ "work_queue_item_rate", workQueueItemRate },
|
||||
{ "sync_queue_item_rate", syncQueueItemRate },
|
||||
{ "relay_queue_item_rate", relayQueueItemRate }
|
||||
}) },
|
||||
|
||||
{ "http", new Dictionary({
|
||||
|
|
@ -1714,11 +1709,9 @@ std::pair<Dictionary::Ptr, Dictionary::Ptr> ApiListener::GetStatus()
|
|||
perfdata->Set("num_json_rpc_anonymous_clients", jsonRpcAnonymousClients);
|
||||
perfdata->Set("num_http_clients", httpClients);
|
||||
perfdata->Set("num_json_rpc_sync_queue_items", syncQueueItems);
|
||||
perfdata->Set("num_json_rpc_relay_queue_items", relayQueueItems);
|
||||
|
||||
perfdata->Set("num_json_rpc_work_queue_item_rate", workQueueItemRate);
|
||||
perfdata->Set("num_json_rpc_sync_queue_item_rate", syncQueueItemRate);
|
||||
perfdata->Set("num_json_rpc_relay_queue_item_rate", relayQueueItemRate);
|
||||
|
||||
return std::make_pair(status, perfdata);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -199,7 +199,6 @@ private:
|
|||
);
|
||||
void ListenerCoroutineProc(boost::asio::yield_context yc, const Shared<boost::asio::ip::tcp::acceptor>::Ptr& server);
|
||||
|
||||
WorkQueue m_RelayQueue;
|
||||
WorkQueue m_SyncQueue{0, 4};
|
||||
|
||||
std::mutex m_LogLock;
|
||||
|
|
|
|||
Loading…
Reference in a new issue