#include <userver/utils/statistics/testing.hpp>
A non-owning view of a single metric: its path, labels and value.
The referenced path, labels and histogram data must remain alive while the view is used.
Definition at line 67 of file testing.hpp.
Public Attributes | |
| std::string_view | path |
| Dot-separated metric path, e.g. "http.requests". May be empty for a root metric. | |
| LabelsSpan | labels |
| Non-owning view of the metric's labels. | |
| MetricValue | value |
| Metric value. Numeric values are stored by value; utils::statistics::HistogramView refers to external data. | |
| LabelsSpan utils::statistics::MetricView::labels |
Non-owning view of the metric's labels.
Definition at line 71 of file testing.hpp.
| std::string_view utils::statistics::MetricView::path |
Dot-separated metric path, e.g. "http.requests". May be empty for a root metric.
Definition at line 69 of file testing.hpp.
| MetricValue utils::statistics::MetricView::value |
Metric value. Numeric values are stored by value; utils::statistics::HistogramView refers to external data.
Definition at line 73 of file testing.hpp.