19 #ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_GRPCLB_GRPCLB_CLIENT_STATS_H 20 #define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_GRPCLB_GRPCLB_CLIENT_STATS_H 47 bool finished_known_received);
51 void Get(int64_t* num_calls_started, int64_t* num_calls_finished,
52 int64_t* num_calls_finished_with_client_failed_to_send,
53 int64_t* num_calls_finished_known_received,
54 std::unique_ptr<DroppedCallCounts>* drop_token_counts);
64 gpr_atm num_calls_finished_ = 0;
65 gpr_atm num_calls_finished_with_client_failed_to_send_ = 0;
66 gpr_atm num_calls_finished_known_received_ = 0;
68 std::unique_ptr<DroppedCallCounts> drop_token_counts_;
Definition: inlined_vector.h:60
DropTokenCount(grpc_core::UniquePtr< char > token, int64_t count)
Definition: grpclb_client_stats.h:39
InlinedVector< DropTokenCount, 10 > DroppedCallCounts
Definition: grpclb_client_stats.h:43
Definition: grpclb_client_stats.h:35
void AddCallStarted()
Definition: grpclb_client_stats.cc:32
Definition: grpclb_client_stats.h:33
Round Robin Policy.
Definition: backend_metric.cc:24
static void Destroy(void *arg)
Definition: grpclb_client_stats.h:58
void AddCallFinished(bool finished_with_client_failed_to_send, bool finished_known_received)
Definition: grpclb_client_stats.cc:36
intptr_t gpr_atm
Definition: atm_gcc_atomic.h:30
void Unref()
Definition: ref_counted.h:268
std::unique_ptr< T, DefaultDeleteChar > UniquePtr
Definition: memory.h:45
int64_t count
Definition: grpclb_client_stats.h:37
Definition: ref_counted.h:248
void AddCallDropped(const char *token)
Definition: grpclb_client_stats.cc:48
grpc_core::UniquePtr< char > token
Definition: grpclb_client_stats.h:36
void Get(int64_t *num_calls_started, int64_t *num_calls_finished, int64_t *num_calls_finished_with_client_failed_to_send, int64_t *num_calls_finished_known_received, std::unique_ptr< DroppedCallCounts > *drop_token_counts)
Definition: grpclb_client_stats.cc:76