#pragma once #include #include #include #include namespace prometheus { // структура, в которую копируются значения метрик перед их сериализацией struct ClientMetric { // Label struct Label { std::string name; std::string value; Label(const std::string name_, const std::string value_) : name(name_), value(value_) {} bool operator<(const Label& rhs) const { return std::tie(name, value) < std::tie(rhs.name, rhs.value); } bool operator==(const Label& rhs) const { return std::tie(name, value) == std::tie(rhs.name, rhs.value); } }; std::vector