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:

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
 
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

◆ acquire_percentile

template<typename Counter , typename PercentileAccumulator , typename MmaAccumulator >
PercentileAccumulator storages::postgres::InstanceStatisticsTemplate< Counter, PercentileAccumulator, MmaAccumulator >::acquire_percentile
inherited

Acquire connection percentile.

Definition at line 121 of file statistics.hpp.

◆ congestion_control

template<typename Counter , typename PercentileAccumulator , typename MmaAccumulator >
std::conditional_t<std::is_same_v<Counter, uint32_t>, std::byte , congestion_control::v2::Stats> storages::postgres::InstanceStatisticsTemplate< Counter, PercentileAccumulator, MmaAccumulator >::congestion_control {}
inherited

Congestion control statistics.

Definition at line 125 of file statistics.hpp.

◆ connection

template<typename Counter , typename PercentileAccumulator , typename MmaAccumulator >
ConnectionStatistics<Counter, MmaAccumulator> storages::postgres::InstanceStatisticsTemplate< Counter, PercentileAccumulator, MmaAccumulator >::connection
inherited

Connection statistics.

Definition at line 109 of file statistics.hpp.

◆ connection_percentile

template<typename Counter , typename PercentileAccumulator , typename MmaAccumulator >
PercentileAccumulator storages::postgres::InstanceStatisticsTemplate< Counter, PercentileAccumulator, MmaAccumulator >::connection_percentile
inherited

Connect time percentile.

Definition at line 119 of file statistics.hpp.

◆ per_statement_stats

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

Definition at line 227 of file statistics.hpp.

◆ pool_exhaust_errors

template<typename Counter , typename PercentileAccumulator , typename MmaAccumulator >
Counter storages::postgres::InstanceStatisticsTemplate< Counter, PercentileAccumulator, MmaAccumulator >::pool_exhaust_errors = 0
inherited

Error caused by pool exhaustion.

Definition at line 115 of file statistics.hpp.

◆ queue_size_errors

template<typename Counter , typename PercentileAccumulator , typename MmaAccumulator >
Counter storages::postgres::InstanceStatisticsTemplate< Counter, PercentileAccumulator, MmaAccumulator >::queue_size_errors = 0
inherited

Error caused by queue size overflow.

Definition at line 117 of file statistics.hpp.

◆ topology

template<typename Counter , typename PercentileAccumulator , typename MmaAccumulator >
InstanceTopologyStatistics<MmaAccumulator> storages::postgres::InstanceStatisticsTemplate< Counter, PercentileAccumulator, MmaAccumulator >::topology
inherited

Topology statistics.

Definition at line 113 of file statistics.hpp.

◆ transaction

template<typename Counter , typename PercentileAccumulator , typename MmaAccumulator >
TransactionStatistics<Counter, PercentileAccumulator> storages::postgres::InstanceStatisticsTemplate< Counter, PercentileAccumulator, MmaAccumulator >::transaction
inherited

Transaction statistics.

Definition at line 111 of file statistics.hpp.


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