userver: userver/storages/postgres/statistics.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
statistics.hpp File Reference

Statistics helpers. More...

#include <unordered_map>
#include <vector>
#include <userver/storages/postgres/detail/time_types.hpp>
#include <userver/congestion_control/controllers/linear.hpp>
#include <userver/utils/statistics/min_max_avg.hpp>
#include <userver/utils/statistics/percentile.hpp>
#include <userver/utils/statistics/recentperiod.hpp>
#include <userver/utils/statistics/relaxed_counter.hpp>
#include <userver/utils/statistics/writer.hpp>
+ Include dependency graph for statistics.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >
 Template transaction statistics storage. More...
 
struct  storages::postgres::ConnectionStatistics< Counter, MmaAccumulator >
 Template connection statistics storage. More...
 
struct  storages::postgres::InstanceTopologyStatistics< MmaAccumulator >
 Template instance topology statistics storage. More...
 
struct  storages::postgres::InstanceStatisticsTemplate< Counter, PercentileAccumulator, MmaAccumulator >
 Template instance statistics storage. More...
 
struct  storages::postgres::InstanceStatisticsNonatomic
 
struct  storages::postgres::InstanceStatsDescriptor
 Instance statistics with description. More...
 
struct  storages::postgres::ClusterStatistics
 Cluster statistics storage. More...
 

Namespaces

namespace  storages
 Components, clients and helpers for different databases and storages.
 
namespace  storages::postgres
 Top namespace for uPg driver.
 

Typedefs

using storages::postgres::Percentile = ::utils::statistics::Percentile< 2048 >
 
using storages::postgres::MinMaxAvg = ::utils::statistics::MinMaxAvg< uint32_t >
 
using storages::postgres::InstanceStatistics = InstanceStatisticsTemplate< ::utils::statistics::RelaxedCounter< uint32_t >, ::utils::statistics::RecentPeriod< Percentile, Percentile, detail::SteadyClock >, ::utils::statistics::RecentPeriod< MinMaxAvg, MinMaxAvg, detail::SteadyClock > >
 
using storages::postgres::InstanceStatisticsNonatomicBase = InstanceStatisticsTemplate< uint32_t, Percentile, MinMaxAvg >
 
using storages::postgres::ClusterStatisticsPtr = std::unique_ptr< ClusterStatistics >
 

Functions

void storages::postgres::DumpMetric (::utils::statistics::Writer &writer, const InstanceStatisticsNonatomic &stats)
 
void storages::postgres::DumpMetric (::utils::statistics::Writer &writer, const InstanceStatsDescriptor &value)
 InstanceStatsDescriptor values support for utils::statistics::Writer.
 
void storages::postgres::DumpMetric (::utils::statistics::Writer &writer, const ClusterStatistics &value)
 ClusterStatistics values support for utils::statistics::Writer.
 

Detailed Description

Statistics helpers.

Definition in file statistics.hpp.