Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc_core::XdsClusterDropStats Class Reference

#include <xds_client_stats.h>

Inheritance diagram for grpc_core::XdsClusterDropStats:
Inheritance graph
[legend]

Classes

struct  Snapshot
 

Public Types

using CategorizedDropsMap = std::map< std::string, uint64_t >
 
- Public Types inherited from grpc_core::RefCounted< XdsClusterDropStats >
using RefCountedChildType = XdsClusterDropStats
 

Public Member Functions

void AddCallDropped (const std::string &category)
 
void AddUncategorizedDrops ()
 
Snapshot GetSnapshotAndReset ()
 
 XdsClusterDropStats (RefCountedPtr< XdsClient > xds_client, const XdsBootstrap::XdsServer &lrs_server, absl::string_view cluster_name, absl::string_view eds_service_name)
 
 ~XdsClusterDropStats () override
 
- Public Member Functions inherited from grpc_core::RefCounted< XdsClusterDropStats >
RefCountedoperator= (const RefCounted &)=delete
 
RefCountedPtr< XdsClusterDropStatsRef () GRPC_MUST_USE_RESULT
 
RefCountedPtr< XdsClusterDropStatsRef (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedPtr< XdsClusterDropStatsRefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< XdsClusterDropStatsRefIfNonZero (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
void Unref ()
 
void Unref (const DebugLocation &location, const char *reason)
 
 ~RefCounted ()=default
 
- Public Member Functions inherited from grpc_core::PolymorphicRefCount
virtual ~PolymorphicRefCount ()=default
 

Private Member Functions

CategorizedDropsMap categorized_drops_ ABSL_GUARDED_BY (mu_)
 

Private Attributes

absl::string_view cluster_name_
 
absl::string_view eds_service_name_
 
const XdsBootstrap::XdsServerlrs_server_
 
Mutex mu_
 
std::atomic< uint64_tuncategorized_drops_ {0}
 
RefCountedPtr< XdsClientxds_client_
 

Additional Inherited Members

- Protected Member Functions inherited from grpc_core::RefCounted< XdsClusterDropStats >
 RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 

Detailed Description

Definition at line 104 of file xds_client_stats.h.

Member Typedef Documentation

◆ CategorizedDropsMap

Definition at line 108 of file xds_client_stats.h.

Constructor & Destructor Documentation

◆ XdsClusterDropStats()

grpc_core::XdsClusterDropStats::XdsClusterDropStats ( RefCountedPtr< XdsClient xds_client,
const XdsBootstrap::XdsServer lrs_server,
absl::string_view  cluster_name,
absl::string_view  eds_service_name 
)

Definition at line 43 of file xds_client_stats.cc.

◆ ~XdsClusterDropStats()

grpc_core::XdsClusterDropStats::~XdsClusterDropStats ( )
override

Definition at line 62 of file xds_client_stats.cc.

Member Function Documentation

◆ ABSL_GUARDED_BY()

CategorizedDropsMap categorized_drops_ grpc_core::XdsClusterDropStats::ABSL_GUARDED_BY ( mu_  )
private

◆ AddCallDropped()

void grpc_core::XdsClusterDropStats::AddCallDropped ( const std::string &  category)

Definition at line 87 of file xds_client_stats.cc.

◆ AddUncategorizedDrops()

void grpc_core::XdsClusterDropStats::AddUncategorizedDrops ( )

Definition at line 83 of file xds_client_stats.cc.

◆ GetSnapshotAndReset()

XdsClusterDropStats::Snapshot grpc_core::XdsClusterDropStats::GetSnapshotAndReset ( )

Definition at line 75 of file xds_client_stats.cc.

Member Data Documentation

◆ cluster_name_

absl::string_view grpc_core::XdsClusterDropStats::cluster_name_
private

Definition at line 147 of file xds_client_stats.h.

◆ eds_service_name_

absl::string_view grpc_core::XdsClusterDropStats::eds_service_name_
private

Definition at line 148 of file xds_client_stats.h.

◆ lrs_server_

const XdsBootstrap::XdsServer& grpc_core::XdsClusterDropStats::lrs_server_
private

Definition at line 146 of file xds_client_stats.h.

◆ mu_

Mutex grpc_core::XdsClusterDropStats::mu_
private

Definition at line 153 of file xds_client_stats.h.

◆ uncategorized_drops_

std::atomic<uint64_t> grpc_core::XdsClusterDropStats::uncategorized_drops_ {0}
private

Definition at line 149 of file xds_client_stats.h.

◆ xds_client_

RefCountedPtr<XdsClient> grpc_core::XdsClusterDropStats::xds_client_
private

Definition at line 145 of file xds_client_stats.h.


The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:38