userver: userver/utils/statistics/metadata.hpp Source File
Loading...
Searching...
No Matches
metadata.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/utils/statistics/metadata.hpp
4/// @deprecated Use utils::statistics::Writer instead.
5
6#include <string>
7
8#include <userver/formats/json/value_builder.hpp>
9
10USERVER_NAMESPACE_BEGIN
11
12namespace utils::statistics {
13
14/// @brief Marks statistics node to be excluded from Solomon sensor name.
15/// @deprecated Use utils::statistics::Writer instead.
16/// @warning Cannot be applied to leaf nodes.
17void SolomonSkip(formats::json::ValueBuilder& stats_node);
18
19/// @brief Marks statistics node to be excluded from Solomon sensor name.
20/// @deprecated Use utils::statistics::Writer instead.
21/// @warning Cannot be applied to leaf nodes.
22void SolomonSkip(formats::json::ValueBuilder&& stats_node);
23
24/// @brief Replaces a node in Solomon sensor name.
25/// @deprecated Use utils::statistics::Writer instead.
26/// @warning Cannot be applied to leaf nodes.
27void SolomonRename(formats::json::ValueBuilder& stats_node,
28 const std::string& new_name);
29
30/// @brief Replaces a node in Solomon sensor name.
31/// @deprecated Use utils::statistics::Writer instead.
32/// @warning Cannot be applied to leaf nodes.
33void SolomonRename(formats::json::ValueBuilder&& stats_node,
34 const std::string& new_name);
35
36/// Moves statistic node name to label value for Solomon sensor.
37/// @deprecated Use utils::statistics::Writer instead.
38/// @warning Cannot be applied to leaf nodes.
39void SolomonLabelValue(formats::json::ValueBuilder& stats_node,
40 const std::string& label_name);
41
42/// Moves statistic node name to label value for Solomon sensor.
43/// @deprecated Use utils::statistics::Writer instead.
44/// @warning Cannot be applied to leaf nodes.
45void SolomonLabelValue(formats::json::ValueBuilder&& stats_node,
46 const std::string& label_name);
47
48/// Moves statistics node children names to label values for Solomon sensors.
49/// @deprecated Use utils::statistics::Writer instead.
50void SolomonChildrenAreLabelValues(formats::json::ValueBuilder& stats_node,
51 const std::string& label_name);
52
53/// Moves statistics node children names to label values for Solomon sensors.
54/// @deprecated Use utils::statistics::Writer instead.
55void SolomonChildrenAreLabelValues(formats::json::ValueBuilder&& stats_node,
56 const std::string& label_name);
57
58} // namespace utils::statistics
59
60USERVER_NAMESPACE_END