userver: userver/utils/statistics/min_max_avg.hpp File Reference
Loading...
Searching...
No Matches
min_max_avg.hpp File Reference

Detailed Description

Class for concurrent safe calculation of minimum, maximum and average over series of values.

Definition in file min_max_avg.hpp.

Go to the source code of this file.

#include <atomic>
#include <chrono>
#include <cstddef>
#include <type_traits>
#include <userver/formats/json/inline.hpp>
#include <userver/formats/serialize/to.hpp>
#include <userver/utils/assert.hpp>
#include <userver/utils/statistics/writer.hpp>
+ Include dependency graph for min_max_avg.hpp:
+ This graph shows which files directly or indirectly include this file:

Classes

class  utils::statistics::MinMaxAvg< ValueType, AverageType >
 Class for concurrent safe calculation of minimum, maximum and average over series of values. More...
 
struct  utils::statistics::MinMaxAvg< ValueType, AverageType >::Current
 

Namespaces

namespace  utils
 Utilities.
 

Functions

template<typename ValueType , typename AverageType >
auto utils::statistics::Serialize (const MinMaxAvg< ValueType, AverageType > &mma, formats::serialize::To< formats::json::Value >)
 
template<typename ValueType , typename AverageType >
void utils::statistics::DumpMetric (Writer &writer, const MinMaxAvg< ValueType, AverageType > &value)
 

Function Documentation

◆ DumpMetric()

template<typename ValueType , typename AverageType >
void utils::statistics::DumpMetric ( Writer & writer,
const MinMaxAvg< ValueType, AverageType > & value )

Definition at line 145 of file min_max_avg.hpp.

◆ Serialize()

template<typename ValueType , typename AverageType >
auto utils::statistics::Serialize ( const MinMaxAvg< ValueType, AverageType > & mma,
formats::serialize::To< formats::json::Value >  )

Definition at line 137 of file min_max_avg.hpp.