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

#include <metrics_impl.hpp>

Inheritance diagram for kagome::metrics::PrometheusCounter:
Collaboration diagram for kagome::metrics::PrometheusCounter:

Public Member Functions

 PrometheusCounter (prometheus::Counter &m)
 
void inc () override
 Increment the counter by 1. More...
 
void inc (double val) override
 
- Public Member Functions inherited from kagome::metrics::Counter
virtual ~Counter ()=default
 

Private Attributes

prometheus::Counter & m_
 

Friends

class PrometheusRegistry
 

Detailed Description

Definition at line 19 of file metrics_impl.hpp.

Constructor & Destructor Documentation

kagome::metrics::PrometheusCounter::PrometheusCounter ( prometheus::Counter &  m)

Definition at line 14 of file metrics_impl.cpp.

Member Function Documentation

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

Increment the counter by 1.

Implements kagome::metrics::Counter.

Definition at line 16 of file metrics_impl.cpp.

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

The counter will not change if the given amount is negative.

Implements kagome::metrics::Counter.

Definition at line 20 of file metrics_impl.cpp.

Friends And Related Function Documentation

friend class PrometheusRegistry
friend

Definition at line 20 of file metrics_impl.hpp.

Member Data Documentation

prometheus::Counter& kagome::metrics::PrometheusCounter::m_
private

Definition at line 21 of file metrics_impl.hpp.


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