aboutsummaryrefslogtreecommitdiff
path: root/zenserver/monitoring/httpstats.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-05-02 10:01:47 +0200
committerGitHub <[email protected]>2023-05-02 10:01:47 +0200
commit075d17f8ada47e990fe94606c3d21df409223465 (patch)
treee50549b766a2f3c354798a54ff73404217b4c9af /zenserver/monitoring/httpstats.h
parentfix: bundle shouldn't append content zip to zen (diff)
downloadzen-075d17f8ada47e990fe94606c3d21df409223465.tar.xz
zen-075d17f8ada47e990fe94606c3d21df409223465.zip
moved source directories into `/src` (#264)
* moved source directories into `/src` * updated bundle.lua for new `src` path * moved some docs, icon * removed old test trees
Diffstat (limited to 'zenserver/monitoring/httpstats.h')
-rw-r--r--zenserver/monitoring/httpstats.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/zenserver/monitoring/httpstats.h b/zenserver/monitoring/httpstats.h
deleted file mode 100644
index 732815a9a..000000000
--- a/zenserver/monitoring/httpstats.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright Epic Games, Inc. All Rights Reserved.
-
-#pragma once
-
-#include <zencore/logging.h>
-#include <zenhttp/httpserver.h>
-
-#include <map>
-
-namespace zen {
-
-struct IHttpStatsProvider
-{
- virtual void HandleStatsRequest(HttpServerRequest& Request) = 0;
-};
-
-class HttpStatsService : public HttpService
-{
-public:
- HttpStatsService();
- ~HttpStatsService();
-
- virtual const char* BaseUri() const override;
- virtual void HandleRequest(HttpServerRequest& Request) override;
- void RegisterHandler(std::string_view Id, IHttpStatsProvider& Provider);
- void UnregisterHandler(std::string_view Id, IHttpStatsProvider& Provider);
-
-private:
- spdlog::logger& m_Log;
- HttpRequestRouter m_Router;
-
- inline spdlog::logger& Log() { return m_Log; }
-
- RwLock m_Lock;
- std::map<std::string, IHttpStatsProvider*> m_Providers;
-};
-
-} // namespace zen \ No newline at end of file