Kagome
Polkadot Runtime Engine in C++17
|
A counter metric to represent a monotonically increasing value. More...
#include <metrics.hpp>
Public Member Functions | |
virtual | ~Counter ()=default |
virtual void | inc ()=0 |
Increment the counter by 1. More... | |
virtual void | inc (double val)=0 |
A counter metric to represent a monotonically increasing value.
This class represents the metric type counter: https://prometheus.io/docs/concepts/metric_types/#counter
Definition at line 27 of file metrics.hpp.
|
virtualdefault |
|
pure virtual |
Increment the counter by 1.
Implemented in kagome::metrics::PrometheusCounter.
|
pure virtual |
The counter will not change if the given amount is negative.
Implemented in kagome::metrics::PrometheusCounter.