aboutsummaryrefslogblamecommitdiffstats
path: root/library/cpp/monlib/encode/legacy_protobuf/legacy_protobuf.h
blob: 7cf8985d656c785befc5e6183248715f7f2d2545 (plain) (tree)
1
2
3
            
                                    











                                                                                                                             
#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());
}