123456789101112131415161718192021222324 |
- #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,
- TStringBuf nameLabel = "sensor",
- 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);
- }
|