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