Clio develop
The XRP Ledger API server.
|
Implementation for building a metric. More...
#include <MetricBuilder.hpp>
Public Member Functions | |
std::unique_ptr< MetricBase > | operator() (std::string name, std::string labelsString, MetricType type, std::vector< std::int64_t > const &buckets={}) override |
Create a metric. | |
std::unique_ptr< MetricBase > | operator() (std::string name, std::string labelsString, MetricType type, std::vector< double > const &buckets) override |
Create a metric double based histogram. | |
![]() |
Implementation for building a metric.
|
overridevirtual |
Create a metric double based histogram.
name | The name of the metric |
labelsString | The labels of the metric in serialized format, e.g. {name="value",name2="value2"} |
type | The type of the metric. Must be HISOTGRAM_DOUBLE |
buckets | The buckets of the histogram |
Implements util::prometheus::MetricBuilderInterface.
|
overridevirtual |
Create a metric.
name | The name of the metric |
labelsString | The labels of the metric in serialized format, e.g. {name="value",name2="value2"} |
type | The type of the metric |
buckets | The buckets of the int based histogram. It is ignored for other metric types |
Implements util::prometheus::MetricBuilderInterface.