diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2023-03-31 10:54:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2023-03-31 12:28:07 +0300 |
commit | fc1cffcfa7f0497a1f97b384a24bcbf23362f3be (patch) | |
tree | c15f7ab5b9e9b20fd0ef8fc07d598d28e8b32004 /library/cpp/unified_agent_client/counters.h | |
parent | 8a749596d40e91c896a1907afcd108d9221fbde1 (diff) | |
download | ydb-e9cbe5c5cf67db853d223fd365c9f05b695f7b96.tar.gz |
Ydb stable 23-1-1923.1.19
x-stable-origin-commit: c5d5a396e89d0a72e0267a55e93d8404d4fb54fe
Diffstat (limited to 'library/cpp/unified_agent_client/counters.h')
-rw-r--r-- | library/cpp/unified_agent_client/counters.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/library/cpp/unified_agent_client/counters.h b/library/cpp/unified_agent_client/counters.h new file mode 100644 index 0000000000..3c2192c3c5 --- /dev/null +++ b/library/cpp/unified_agent_client/counters.h @@ -0,0 +1,38 @@ +#pragma once + +#include <library/cpp/unified_agent_client/dynamic_counters_wrapper.h> + +namespace NUnifiedAgent { + struct TClientSessionCounters; + + struct TClientCounters: public TDynamicCountersWrapper { + explicit TClientCounters(const NMonitoring::TDynamicCounterPtr& counters = + MakeIntrusive<NMonitoring::TDynamicCounters>()); + + NMonitoring::TDeprecatedCounter& ActiveSessionsCount; + NMonitoring::TDeprecatedCounter& ClientLogDroppedBytes; + + public: + TIntrusivePtr<TClientSessionCounters> GetDefaultSessionCounters(); + }; + + struct TClientSessionCounters: public TDynamicCountersWrapper { + explicit TClientSessionCounters(const NMonitoring::TDynamicCounterPtr& counters = + MakeIntrusive<NMonitoring::TDynamicCounters>()); + + NMonitoring::TDeprecatedCounter& ReceivedMessages; + NMonitoring::TDeprecatedCounter& ReceivedBytes; + NMonitoring::TDeprecatedCounter& AcknowledgedMessages; + NMonitoring::TDeprecatedCounter& AcknowledgedBytes; + NMonitoring::TDeprecatedCounter& InflightMessages; + NMonitoring::TDeprecatedCounter& InflightBytes; + NMonitoring::TDeprecatedCounter& GrpcWriteBatchRequests; + NMonitoring::TDeprecatedCounter& GrpcInflightMessages; + NMonitoring::TDeprecatedCounter& GrpcInflightBytes; + NMonitoring::TDeprecatedCounter& GrpcCalls; + NMonitoring::TDeprecatedCounter& GrpcCallsInitialized; + NMonitoring::TDeprecatedCounter& DroppedMessages; + NMonitoring::TDeprecatedCounter& DroppedBytes; + NMonitoring::TDeprecatedCounter& ErrorsCount; + }; +} |