Kagome
Polkadot Runtime Engine in C++17
kagome::metrics::PrometheusGauge Class Reference

#include <metrics_impl.hpp>

Inheritance diagram for kagome::metrics::PrometheusGauge:
Collaboration diagram for kagome::metrics::PrometheusGauge:

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
 

Detailed Description

Definition at line 31 of file metrics_impl.hpp.

Constructor & Destructor Documentation

kagome::metrics::PrometheusGauge::PrometheusGauge ( prometheus::Gauge &  m)

Definition at line 24 of file metrics_impl.cpp.

Member Function Documentation

void kagome::metrics::PrometheusGauge::dec ( )
overridevirtual

Decrement the gauge by 1.

Implements kagome::metrics::Gauge.

Definition at line 34 of file metrics_impl.cpp.

void kagome::metrics::PrometheusGauge::dec ( double  val)
overridevirtual

Decrement the gauge by the given amount.

Implements kagome::metrics::Gauge.

Definition at line 38 of file metrics_impl.cpp.

void kagome::metrics::PrometheusGauge::inc ( )
overridevirtual

Increment the gauge by 1.

Implements kagome::metrics::Gauge.

Definition at line 26 of file metrics_impl.cpp.

void kagome::metrics::PrometheusGauge::inc ( double  val)
overridevirtual

Increment the gauge by the given amount.

Implements kagome::metrics::Gauge.

Definition at line 30 of file metrics_impl.cpp.

void kagome::metrics::PrometheusGauge::set ( double  val)
overridevirtual

Set the gauge to the given value.

Implements kagome::metrics::Gauge.

Definition at line 42 of file metrics_impl.cpp.

Friends And Related Function Documentation

friend class PrometheusRegistry
friend

Definition at line 32 of file metrics_impl.hpp.

Member Data Documentation

prometheus::Gauge& kagome::metrics::PrometheusGauge::m_
private

Definition at line 33 of file metrics_impl.hpp.


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