#include <userver/utils/statistics/metrics_storage.hpp>
Storage of metrics registered with MetricTag<Metric>
Definition at line 15 of file metrics_storage.hpp.
Public Member Functions | |
| MetricsStorage () | |
Creates MetricStorage that considers all MetricTag<Metric> instances. | |
| MetricsStorage (const std::optional< std::vector< std::string > > &allowed_metric_paths) | |
Creates MetricStorage that considers only MetricTag<Metric> instances whose paths are listed in allowed_metric_paths. If allowed_metric_paths equals std::nullopt, then all MetricTag<Metric> instances considered. | |
| std::vector< Entry > | RegisterIn (Storage &statistics_storage) |
| template<typename Metric> | |
| Metric & | GetMetric (const MetricTag< Metric > &tag) |
| Get metric data by type. | |
| void | ResetMetrics () |
| utils::statistics::MetricsStorage::MetricsStorage | ( | const std::optional< std::vector< std::string > > & | allowed_metric_paths | ) |
|
inline |
Get metric data by type.
Definition at line 31 of file metrics_storage.hpp.