userver: storages::postgres::InstanceStatisticsNonatomic Struct Reference
Loading...
Searching...
No Matches
storages::postgres::InstanceStatisticsNonatomic Struct Reference

Detailed Description

Definition at line 153 of file statistics.hpp.

+ Inheritance diagram for storages::postgres::InstanceStatisticsNonatomic:
+ Collaboration diagram for storages::postgres::InstanceStatisticsNonatomic:

Public Member Functions

template<typename Statistics >
 InstanceStatisticsNonatomic (const Statistics &stats)
 
 InstanceStatisticsNonatomic (InstanceStatisticsNonatomic &&)=default
 
InstanceStatisticsNonatomicoperator= (InstanceStatisticsNonatomic &&)=default
 
InstanceStatisticsNonatomicAdd (const InstanceStatistics &stats, const decltype(InstanceStatistics::topology)&topology_stats)
 
InstanceStatisticsNonatomicAdd (const std::unordered_map< std::string, StatementStatistics > &stats)
 

Public Attributes

std::unordered_map< std::string, StatementStatisticsper_statement_stats
 
- Public Attributes inherited from storages::postgres::InstanceStatisticsTemplate< Counter, PercentileAccumulator, MmaAccumulator >
ConnectionStatistics< Counter, MmaAccumulator > connection
 Connection statistics.
 
TransactionStatistics< Counter, PercentileAccumulator > transaction
 Transaction statistics.
 
InstanceTopologyStatistics< MmaAccumulator > topology
 Topology statistics.
 
Counter pool_exhaust_errors = 0
 Error caused by pool exhaustion.
 
Counter queue_size_errors = 0
 Error caused by queue size overflow.
 
PercentileAccumulator connection_percentile
 Connect time percentile.
 
PercentileAccumulator acquire_percentile
 Acquire connection percentile.
 
std::conditional_t< std::is_same_v< Counter, uint32_t >, std::byte, congestion_control::v2::Statscongestion_control {}
 Congestion control statistics.
 

Constructor & Destructor Documentation

◆ InstanceStatisticsNonatomic()

template<typename Statistics >
storages::postgres::InstanceStatisticsNonatomic::InstanceStatisticsNonatomic ( const Statistics & stats)
inline

Definition at line 157 of file statistics.hpp.

Member Function Documentation

◆ Add() [1/2]

InstanceStatisticsNonatomic & storages::postgres::InstanceStatisticsNonatomic::Add ( const InstanceStatistics & stats,
const decltype(InstanceStatistics::topology)& topology_stats )
inline

Definition at line 164 of file statistics.hpp.

◆ Add() [2/2]

InstanceStatisticsNonatomic & storages::postgres::InstanceStatisticsNonatomic::Add ( const std::unordered_map< std::string, StatementStatistics > & stats)
inline

Definition at line 214 of file statistics.hpp.

Member Data Documentation

◆ per_statement_stats

std::unordered_map<std::string, StatementStatistics> storages::postgres::InstanceStatisticsNonatomic::per_statement_stats

Definition at line 227 of file statistics.hpp.


The documentation for this struct was generated from the following file: