encode.h 706 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "counters.h"
  3. #include <library/cpp/monlib/encode/encoder.h>
  4. #include <library/cpp/monlib/encode/format.h>
  5. namespace NMonitoring {
  6. THolder<ICountableConsumer> CreateEncoder(
  7. IOutputStream* out,
  8. EFormat format,
  9. TStringBuf nameLabel = "sensor",
  10. TCountableBase::EVisibility visibility = TCountableBase::EVisibility::Public
  11. );
  12. THolder<ICountableConsumer> AsCountableConsumer(
  13. NMonitoring::IMetricEncoderPtr encoder,
  14. TCountableBase::EVisibility visibility = TCountableBase::EVisibility::Public);
  15. void ToJson(const TDynamicCounters& counters, IOutputStream* out);
  16. TString ToJson(const TDynamicCounters& counters);
  17. }