From 6abf3dab1cfdf59a54401d9881bda44841003491 Mon Sep 17 00:00:00 2001 From: iddqd <iddqd@yandex-team.com> Date: Tue, 8 Oct 2024 13:17:57 +0300 Subject: Virtual CreateEncoder in TDynamicCountersPage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Идея в том, чтобы фильтровать нулевые метрики на выводе при помощи вот такого класса: <HIDDEN_URL> commit_hash:296137b0e9503a932eeb1bd5586772c9e4d6c1f8 --- library/cpp/monlib/dynamic_counters/page.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'library/cpp/monlib/dynamic_counters/page.h') diff --git a/library/cpp/monlib/dynamic_counters/page.h b/library/cpp/monlib/dynamic_counters/page.h index 1f0ef6a5ea..75d03b0224 100644 --- a/library/cpp/monlib/dynamic_counters/page.h +++ b/library/cpp/monlib/dynamic_counters/page.h @@ -2,6 +2,7 @@ #include "counters.h" +#include <library/cpp/monlib/encode/format.h> #include <library/cpp/monlib/service/pages/pre_mon_page.h> #include <util/generic/ptr.h> @@ -46,5 +47,8 @@ namespace NMonitoring { /// If set to Error, responds with 404 if the requested subgroup is not found. This is the default. /// If set to Ignore, responds with 204 if the requested subgroup is not found void SetUnknownGroupPolicy(EUnknownGroupPolicy value); + + protected: + virtual THolder<ICountableConsumer> CreateEncoder(IOutputStream* out, EFormat format, TStringBuf nameLabel, TCountableBase::EVisibility visibility) const; }; } -- cgit v1.2.3