blob: 3c2192c3c54b74b339840f09133b84fee77686b0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
};
}
|