aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/messagebus/mon_messagebus.h
diff options
context:
space:
mode:
authorSergey Polovko <sergey@polovko.me>2022-02-10 16:47:02 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:02 +0300
commit3e0b762a82514bac89c1dd6ea7211e381d8aa248 (patch)
treec2d1b379ecaf05ca8f11ed0b5da9d1a950e6e554 /library/cpp/monlib/messagebus/mon_messagebus.h
parentab3783171cc30e262243a0227c86118f7080c896 (diff)
downloadydb-3e0b762a82514bac89c1dd6ea7211e381d8aa248.tar.gz
Restoring authorship annotation for Sergey Polovko <sergey@polovko.me>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/monlib/messagebus/mon_messagebus.h')
-rw-r--r--library/cpp/monlib/messagebus/mon_messagebus.h64
1 files changed, 32 insertions, 32 deletions
diff --git a/library/cpp/monlib/messagebus/mon_messagebus.h b/library/cpp/monlib/messagebus/mon_messagebus.h
index e1fa73c69f..2cf46ecbbc 100644
--- a/library/cpp/monlib/messagebus/mon_messagebus.h
+++ b/library/cpp/monlib/messagebus/mon_messagebus.h
@@ -3,44 +3,44 @@
#include <library/cpp/messagebus/ybus.h>
#include <library/cpp/messagebus/www/www.h>
-#include <library/cpp/monlib/service/pages/mon_page.h>
+#include <library/cpp/monlib/service/pages/mon_page.h>
namespace NMonitoring {
- template <class TBusSmth>
- class TBusSmthMonPage: public NMonitoring::IMonPage {
- private:
- TBusSmth* Smth;
-
- public:
- explicit TBusSmthMonPage(const TString& name, const TString& title, TBusSmth* smth)
- : IMonPage("msgbus/" + name, title)
- , Smth(smth)
- {
- }
+ template <class TBusSmth>
+ class TBusSmthMonPage: public NMonitoring::IMonPage {
+ private:
+ TBusSmth* Smth;
+
+ public:
+ explicit TBusSmthMonPage(const TString& name, const TString& title, TBusSmth* smth)
+ : IMonPage("msgbus/" + name, title)
+ , Smth(smth)
+ {
+ }
void Output(NMonitoring::IMonHttpRequest& request) override {
- Y_UNUSED(request);
+ Y_UNUSED(request);
request.Output() << NMonitoring::HTTPOKHTML;
request.Output() << "<h2>" << Title << "</h2>";
request.Output() << "<pre>";
request.Output() << Smth->GetStatus();
request.Output() << "</pre>";
- }
- };
-
- using TBusQueueMonPage = TBusSmthMonPage<NBus::TBusMessageQueue>;
- using TBusModuleMonPage = TBusSmthMonPage<NBus::TBusModule>;
-
- class TBusNgMonPage: public NMonitoring::IMonPage {
- public:
- TIntrusivePtr<NBus::TBusWww> BusWww;
-
- public:
- TBusNgMonPage()
- : IMonPage("messagebus", "MessageBus")
- , BusWww(new NBus::TBusWww)
- {
- }
+ }
+ };
+
+ using TBusQueueMonPage = TBusSmthMonPage<NBus::TBusMessageQueue>;
+ using TBusModuleMonPage = TBusSmthMonPage<NBus::TBusModule>;
+
+ class TBusNgMonPage: public NMonitoring::IMonPage {
+ public:
+ TIntrusivePtr<NBus::TBusWww> BusWww;
+
+ public:
+ TBusNgMonPage()
+ : IMonPage("messagebus", "MessageBus")
+ , BusWww(new NBus::TBusWww)
+ {
+ }
void Output(NMonitoring::IMonHttpRequest& request) override;
- };
-
-}
+ };
+
+}