userver: utils::statistics::MetricView Struct Reference
Loading...
Searching...
No Matches
utils::statistics::MetricView Struct Referencefinal

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

Detailed Description

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.

Member Data Documentation

◆ labels

LabelsSpan utils::statistics::MetricView::labels

Non-owning view of the metric's labels.

Definition at line 71 of file testing.hpp.

◆ path

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.

◆ value

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.


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