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, const std::string& new_name);
28
29/// @brief Replaces a node in Solomon sensor name.
30/// @deprecated Use utils::statistics::Writer instead.
31/// @warning Cannot be applied to leaf nodes.
32void SolomonRename(formats::json::ValueBuilder&& stats_node, const std::string& new_name);
33
34/// Moves statistic node name to label value for Solomon sensor.
35/// @deprecated Use utils::statistics::Writer instead.
36/// @warning Cannot be applied to leaf nodes.
37void SolomonLabelValue(formats::json::ValueBuilder& stats_node, const std::string& label_name);
38
39/// Moves statistic node name to label value for Solomon sensor.
40/// @deprecated Use utils::statistics::Writer instead.
41/// @warning Cannot be applied to leaf nodes.
42void SolomonLabelValue(formats::json::ValueBuilder&& stats_node, const std::string& label_name);
43
44/// Moves statistics node children names to label values for Solomon sensors.
45/// @deprecated Use utils::statistics::Writer instead.
46void SolomonChildrenAreLabelValues(formats::json::ValueBuilder& stats_node, 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, const std::string& label_name);
51
52} // namespace utils::statistics
53
54USERVER_NAMESPACE_END