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

Class representing a collection of Prometheus labels. More...

#include <Label.hpp>

Public Member Functions

 Labels (std::vector< Label > labels)
 Construct a new Labels object.
 
std::string serialize () const
 Serialize the labels to a string in Prometheus format (e.g. {"name1="value1",name2="value2"})
 

Detailed Description

Class representing a collection of Prometheus labels.

Constructor & Destructor Documentation

◆ Labels()

util::prometheus::Labels::Labels ( std::vector< Label > labels)
explicit

Construct a new Labels object.

Parameters
labelsThe labels to add

Member Function Documentation

◆ serialize()

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

Serialize the labels to a string in Prometheus format (e.g. {"name1="value1",name2="value2"})

Returns
The serialized labels

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