#include "remote/jsonrpcconnection.hpp"
#include "remote/endpoint.hpp"
#include "remote/jsonrpc.hpp"
+#include "remote/apifunction.hpp"
#include "base/convert.hpp"
#include "base/netstring.hpp"
#include "base/json.hpp"
REGISTER_STATSFUNCTION(ApiListenerStats, &ApiListener::StatsFunc);
+REGISTER_APIFUNCTION(Hello, icinga, &ApiListener::HelloAPIHandler);
+
ApiListener::ApiListener(void)
: m_LogMessageCount(0)
{ }
ObjectLock olock(this);
return m_HttpClients;
}
+
+Value ApiListener::HelloAPIHandler(const MessageOrigin& origin, const Dictionary::Ptr& params)
+{
+ return Empty;
+}
static Value ConfigUpdateHandler(const MessageOrigin& origin, const Dictionary::Ptr& params);
+ static Value HelloAPIHandler(const MessageOrigin& origin, const Dictionary::Ptr& params);
protected:
virtual void OnConfigLoaded(void);
virtual void OnAllConfigLoaded(void);