userver: utils::statistics::SnapshotLoadOptions Struct Reference
Loading...
Searching...
No Matches
utils::statistics::SnapshotLoadOptions Struct Reference

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

Detailed Description

Prefix and labels applied to every metric in utils::statistics::Snapshot::FromJson and utils::statistics::Snapshot::FromLayeredJson.

Definition at line 106 of file testing.hpp.

Public Attributes

std::string add_prefix {}
 Prepended to every path from the document. A dot separates it from the path.
std::vector< Label > add_labels {}

Member Data Documentation

◆ add_labels

std::vector<Label> utils::statistics::SnapshotLoadOptions::add_labels {}

Added to every metric. A label name that the metric already has throws utils::statistics::DuplicateLabelError.

Definition at line 112 of file testing.hpp.

◆ add_prefix

std::string utils::statistics::SnapshotLoadOptions::add_prefix {}

Prepended to every path from the document. A dot separates it from the path.

Definition at line 108 of file testing.hpp.


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