diff options
author | miktorius <miktorius@yandex-team.com> | 2025-03-03 12:16:59 +0300 |
---|---|---|
committer | miktorius <miktorius@yandex-team.com> | 2025-03-03 12:35:24 +0300 |
commit | e5e00e2a402f3028369f177f5919182949a71ba6 (patch) | |
tree | d06a7353708c3ed2fdf2db2a20eab8e7c6f24746 /library/cpp/monlib/encode/protobuf/protobuf_encoder.cpp | |
parent | 5fc9035f13cbbee5e75a9f7933bb877454a40c24 (diff) | |
download | ydb-e5e00e2a402f3028369f177f5919182949a71ba6.tar.gz |
monlib : adding memOnly flag support for cpp lib
commit_hash:cffc55ecd6d0ea22c3c2ce52f21e6aba6da16a15
Diffstat (limited to 'library/cpp/monlib/encode/protobuf/protobuf_encoder.cpp')
-rw-r--r-- | library/cpp/monlib/encode/protobuf/protobuf_encoder.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/cpp/monlib/encode/protobuf/protobuf_encoder.cpp b/library/cpp/monlib/encode/protobuf/protobuf_encoder.cpp index 2d11b9d5ba..2cffda13ac 100644 --- a/library/cpp/monlib/encode/protobuf/protobuf_encoder.cpp +++ b/library/cpp/monlib/encode/protobuf/protobuf_encoder.cpp @@ -227,6 +227,11 @@ namespace NMonitoring { FillLogHistogram(*snapshot, point->MutableLogHistogram()); } + void OnMemOnly(bool isMemOnly) override { + Y_ENSURE(Sample_, "metric not started"); + Sample_->SetIsMemOnly(isMemOnly); + } + void Close() override { } |