#pragma once #include "counters.h" #include #include namespace NMonitoring { THolder CreateEncoder( IOutputStream* out, EFormat format, TStringBuf nameLabel = "sensor", TCountableBase::EVisibility visibility = TCountableBase::EVisibility::Public ); THolder AsCountableConsumer( NMonitoring::IMetricEncoderPtr encoder, TCountableBase::EVisibility visibility = TCountableBase::EVisibility::Public); void ToJson(const TDynamicCounters& counters, IOutputStream* out); TString ToJson(const TDynamicCounters& counters); }