Clio develop
The XRP Ledger API server.
|
Interface to create a metric. More...
#include <MetricBuilder.hpp>
Public Member Functions | |
virtual std::unique_ptr< MetricBase > | operator() (std::string name, std::string labelsString, MetricType type, std::vector< std::int64_t > const &buckets={})=0 |
Create a metric. | |
virtual std::unique_ptr< MetricBase > | operator() (std::string name, std::string labelsString, MetricType type, std::vector< double > const &buckets)=0 |
Create a metric double based histogram. | |
Interface to create a metric.
|
pure virtual |
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 |
Implemented in util::prometheus::MetricBuilder.
|
pure virtual |
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 |
Implemented in util::prometheus::MetricBuilder.