Kagome
Polkadot Runtime Engine in C++17
|
#include <metrics_impl.hpp>
Public Member Functions | |
PrometheusGauge (prometheus::Gauge &m) | |
void | inc () override |
Increment the gauge by 1. More... | |
void | inc (double val) override |
Increment the gauge by the given amount. More... | |
void | dec () override |
Decrement the gauge by 1. More... | |
void | dec (double val) override |
Decrement the gauge by the given amount. More... | |
void | set (double val) override |
Set the gauge to the given value. More... | |
Public Member Functions inherited from kagome::metrics::Gauge | |
virtual | ~Gauge ()=default |
template<typename T > | |
void | set (T val) |
Private Attributes | |
prometheus::Gauge & | m_ |
Friends | |
class | PrometheusRegistry |
Definition at line 31 of file metrics_impl.hpp.
kagome::metrics::PrometheusGauge::PrometheusGauge | ( | prometheus::Gauge & | m | ) |
Definition at line 24 of file metrics_impl.cpp.
|
overridevirtual |
Decrement the gauge by 1.
Implements kagome::metrics::Gauge.
Definition at line 34 of file metrics_impl.cpp.
|
overridevirtual |
Decrement the gauge by the given amount.
Implements kagome::metrics::Gauge.
Definition at line 38 of file metrics_impl.cpp.
|
overridevirtual |
Increment the gauge by 1.
Implements kagome::metrics::Gauge.
Definition at line 26 of file metrics_impl.cpp.
|
overridevirtual |
Increment the gauge by the given amount.
Implements kagome::metrics::Gauge.
Definition at line 30 of file metrics_impl.cpp.
|
overridevirtual |
Set the gauge to the given value.
Implements kagome::metrics::Gauge.
Definition at line 42 of file metrics_impl.cpp.
|
friend |
Definition at line 32 of file metrics_impl.hpp.
|
private |
Definition at line 33 of file metrics_impl.hpp.