#pragma once #include #include #include namespace NMonitoring { template 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); request.Output() << NMonitoring::HTTPOKHTML; request.Output() << "

" << Title << "

"; request.Output() << "
";
            request.Output() << Smth->GetStatus();
            request.Output() << "
"; } }; using TBusQueueMonPage = TBusSmthMonPage; using TBusModuleMonPage = TBusSmthMonPage; class TBusNgMonPage: public NMonitoring::IMonPage { public: TIntrusivePtr BusWww; public: TBusNgMonPage() : IMonPage("messagebus", "MessageBus") , BusWww(new NBus::TBusWww) { } void Output(NMonitoring::IMonHttpRequest& request) override; }; }