userver: utils::statistics::MetricsStorage Class Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
utils::statistics::MetricsStorage Class Referencefinal

Your opinion will help to improve our service

Leave a feedback >

#include <userver/utils/statistics/metrics_storage.hpp>

Detailed Description

Storage of metrics registered with MetricTag<Metric>

Note
The class is thread-safe. See also the note about thread-safety on MetricTag<Metric>.

Definition at line 15 of file metrics_storage.hpp.

Public Member Functions

std::vector< EntryRegisterIn (Storage &statistics_storage)
 
template<typename Metric>
Metric & GetMetric (const MetricTag< Metric > &tag)
 Get metric data by type.
 
void ResetMetrics ()
 

Member Function Documentation

◆ GetMetric()

template<typename Metric>
Metric & utils::statistics::MetricsStorage::GetMetric ( const MetricTag< Metric > & tag)
inline

Get metric data by type.

Definition at line 23 of file metrics_storage.hpp.


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