aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/dynamic_counters/encode.h
blob: 81e924a0344775db75df6f0607ae8c89302e4bd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once 
 
#include "counters.h" 
 
#include <library/cpp/monlib/encode/encoder.h>
#include <library/cpp/monlib/encode/format.h> 
 
namespace NMonitoring { 
 
    THolder<ICountableConsumer> CreateEncoder(
        IOutputStream* out,
        EFormat format,
        TCountableBase::EVisibility visibility = TCountableBase::EVisibility::Public
    );
 
    THolder<ICountableConsumer> AsCountableConsumer(
        NMonitoring::IMetricEncoderPtr encoder,
        TCountableBase::EVisibility visibility = TCountableBase::EVisibility::Public);

    void ToJson(const TDynamicCounters& counters, IOutputStream* out); 
 
    TString ToJson(const TDynamicCounters& counters); 
}