aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/encode/legacy_protobuf/legacy_protobuf.h
blob: c1bd7cd436374e34be0cd1c049199b1ee653eace (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());
}