#pragma once #include #include #include #include namespace NLwTraceMonPage { class TDashboardRegistry { THashMap Dashboards; TMutex Mutex; public: void Register(const NLWTrace::TDashboard& dashboard); void Register(const TVector& dashboards); void Register(const TString& dashText); bool Get(const TString& name, NLWTrace::TDashboard& dash); void Output(TStringStream& ss); }; void RegisterPages(NMonitoring::TIndexMonPage* index, bool allowUnsafe = false); NLWTrace::TProbeRegistry& ProbeRegistry(); // This is not safe to use this function before main() NLWTrace::TManager& TraceManager(bool allowUnsafe = false); TDashboardRegistry& DashboardRegistry(); } // namespace NLwTraceMonPage