Go to the documentation of this file.
19 #ifndef GRPC_CORE_EXT_XDS_XDS_CLIENT_STATS_H
20 #define GRPC_CORE_EXT_XDS_XDS_CLIENT_STATS_H
30 #include "absl/base/thread_annotations.h"
31 #include "absl/strings/str_format.h"
32 #include "absl/strings/string_view.h"
51 if (lhs ==
nullptr || rhs ==
nullptr)
return QsortCompare(lhs, rhs);
57 return (*
this)(lhs.
get(), rhs.
get());
72 return !(*
this == other);
77 if (cmp_result != 0)
return cmp_result;
79 if (cmp_result != 0)
return cmp_result;
126 if (p.second != 0)
return false;
200 if (!p.second.IsZero())
return false;
236 std::map<std::string, BackendMetric> backend_metrics_
const std::string & sub_zone() const
void AddCallDropped(const std::string &category)
ABSL_MUST_USE_RESULT std::string StrFormat(const FormatSpec< Args... > &format, const Args &... args)
const std::string & region() const
absl::string_view eds_service_name_
bool operator()(const RefCountedPtr< XdsLocalityName > &lhs, const RefCountedPtr< XdsLocalityName > &rhs) const
uint64_t num_requests_finished_with_metric
absl::string_view cluster_name_
const std::string & zone() const
void AddCallFinished(bool fail=false)
~XdsClusterLocalityStats() override
uint64_t total_error_requests
const XdsBootstrap::XdsServer & lrs_server_
bool operator==(const XdsLocalityName &other) const
BackendMetric & operator+=(const BackendMetric &other)
uint64_t uncategorized_drops
void AddUncategorizedDrops()
XdsClusterLocalityStats(RefCountedPtr< XdsClient > xds_client, const XdsBootstrap::XdsServer &lrs_server_, absl::string_view cluster_name, absl::string_view eds_service_name, RefCountedPtr< XdsLocalityName > name)
CategorizedDropsMap categorized_drops
std::string human_readable_string_
uint64_t total_successful_requests
XdsClusterDropStats(RefCountedPtr< XdsClient > xds_client, const XdsBootstrap::XdsServer &lrs_server, absl::string_view cluster_name, absl::string_view eds_service_name)
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
bool operator()(const XdsLocalityName *lhs, const XdsLocalityName *rhs) const
Poll< absl::StatusOr< std::tuple< T... > > > fail()
unsigned __int64 uint64_t
std::atomic< uint64_t > total_successful_requests_
uint64_t total_requests_in_progress
std::map< std::string, BackendMetric > backend_metrics
std::atomic< uint64_t > total_issued_requests_
RefCountedPtr< XdsLocalityName > name_
CategorizedDropsMap categorized_drops_ ABSL_GUARDED_BY(mu_)
std::map< std::string, uint64_t > CategorizedDropsMap
std::atomic< uint64_t > total_requests_in_progress_
bool operator!=(const XdsLocalityName &other) const
Snapshot GetSnapshotAndReset()
Snapshot & operator+=(const Snapshot &other)
XdsLocalityName(std::string region, std::string zone, std::string sub_zone)
std::string eds_service_name
Snapshot & operator+=(const Snapshot &other)
int QsortCompare(const T &a, const T &b)
int Compare(const XdsLocalityName &other) const
uint64_t total_issued_requests
double total_metric_value
RefCountedPtr< XdsClient > xds_client_
absl::string_view cluster_name_
const std::string & AsHumanReadableString()
absl::string_view eds_service_name_
std::map< std::string, BackendMetric > backend_metrics_ ABSL_GUARDED_BY(backend_metrics_mu_)
const XdsBootstrap::XdsServer & lrs_server_
~XdsClusterDropStats() override
Mutex backend_metrics_mu_
Snapshot GetSnapshotAndReset()
std::atomic< uint64_t > uncategorized_drops_
std::atomic< uint64_t > total_error_requests_
RefCountedPtr< XdsClient > xds_client_
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:55