Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
util::prometheus::Label Class Reference

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.
 

Detailed Description

Class representing a Prometheus label.

Constructor & Destructor Documentation

◆ Label()

util::prometheus::Label::Label ( std::string name,
std::string value )

Construct a new Label object.

Parameters
nameThe name of the label
valueThe value of the label

Member Function Documentation

◆ serialize()

std::string util::prometheus::Label::serialize ( ) const

Serialize the label to a string in Prometheus format (e.g. name="value"). The value is escaped.

Returns
The serialized label

The documentation for this class was generated from the following files: