Clio develop
The XRP Ledger API server.
|
Class representing a Prometheus label. More...
#include <Label.hpp>
Public Member Functions | |
Label (std::string name, std::string value) | |
Construct a new Label object. | |
auto | operator<=> (Label const &rhs) const =default |
std::string | serialize () const |
Serialize the label to a string in Prometheus format (e.g. name="value"). The value is escaped. | |
Class representing a Prometheus label.
util::prometheus::Label::Label | ( | std::string | name, |
std::string | value ) |
Construct a new Label object.
name | The name of the label |
value | The value of the label |
std::string util::prometheus::Label::serialize | ( | ) | const |
Serialize the label to a string in Prometheus format (e.g. name="value"). The value is escaped.