aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/encode/legacy_protobuf/legacy_protobuf.h
blob: 7cf8985d656c785befc5e6183248715f7f2d2545 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <google/protobuf/message.h>
#include <util/datetime/base.h>

namespace NMonitoring {
    // Unsupported features of the original format:
    // - histograms;
    // - memOnly;
    // - dropHost/ignorePath

    void DecodeLegacyProto(const NProtoBuf::Message& data, class IMetricConsumer* c, TInstant ts = TInstant::Zero());

    /// Does not open/close consumer stream unlike the above function.
    void DecodeLegacyProtoToStream(const NProtoBuf::Message& data, class IMetricConsumer* c, TInstant ts = TInstant::Zero());
}