aboutsummaryrefslogtreecommitdiff
path: root/zenserver/monitoring/httpstats.h
diff options
context:
space:
mode:
Diffstat (limited to 'zenserver/monitoring/httpstats.h')
-rw-r--r--zenserver/monitoring/httpstats.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/zenserver/monitoring/httpstats.h b/zenserver/monitoring/httpstats.h
new file mode 100644
index 000000000..9da48233b
--- /dev/null
+++ b/zenserver/monitoring/httpstats.h
@@ -0,0 +1,26 @@
+// Copyright Epic Games, Inc. All Rights Reserved.
+
+#pragma once
+
+#include <zenhttp/httpserver.h>
+#include <zencore/logging.h>
+
+namespace zen {
+
+class HttpStatsService : public HttpService
+{
+public:
+ HttpStatsService();
+ ~HttpStatsService();
+
+ virtual const char* BaseUri() const override;
+ virtual void HandleRequest(HttpServerRequest& Request) override;
+
+private:
+ spdlog::logger& m_Log;
+ HttpRequestRouter m_Router;
+
+ inline spdlog::logger& Log() { return m_Log; }
+};
+
+} // namespace zen \ No newline at end of file