#pragma once #include "counters.h" #include #include #include // helper class to output json for Golovan. class TGolovanCountersPage: public NMonitoring::IMonPage { public: using TOutputCallback = std::function; const TIntrusivePtr Counters; TGolovanCountersPage(const TString& path, TIntrusivePtr counters, TOutputCallback outputCallback = nullptr); void Output(NMonitoring::IMonHttpRequest& request) override; private: TOutputCallback OutputCallback; };