unistat.h 538 B

12345678910111213
  1. #pragma once
  2. #include <util/generic/fwd.h>
  3. #include <util/datetime/base.h>
  4. namespace NMonitoring {
  5. /// Decodes unistat-style metrics
  6. /// https://wiki.yandex-team.ru/golovan/stat-handle
  7. void DecodeUnistat(TStringBuf data, class IMetricConsumer* c, TStringBuf metricNameLabel = "sensor", TInstant ts = TInstant::Zero());
  8. /// Assumes consumer's stream is open by the caller
  9. void DecodeUnistatToStream(TStringBuf data, class IMetricConsumer* c, TStringBuf metricNameLabel = "sensor", TInstant ts = TInstant::Zero());
  10. }