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

Detailed Description

Definition at line 148 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 152 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 159 of file statistics.hpp.

◆ Add() [2/2]

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

Definition at line 199 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 120 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 123 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 108 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 118 of file statistics.hpp.

◆ per_statement_stats

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

Definition at line 210 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 114 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 116 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 112 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 110 of file statistics.hpp.


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