TARAXA
taraxa::metrics::PbftMetrics Class Reference

#include <pbft_metrics.hpp>

Collaboration diagram for taraxa::metrics::PbftMetrics:

Public Member Functions

 PbftMetrics (std::shared_ptr< prometheus::Registry > registry)
 
- Public Member Functions inherited from taraxa::metrics::MetricsGroup
 MetricsGroup (std::shared_ptr< prometheus::Registry > registry)
 
virtual ~MetricsGroup ()=default
 
template<class Type >
prometheus::Family< Type > & addMetric (const std::string &name, const std::string &help)
 template method to add metric family. Family is a metric, but additional labels could be specified for it. Labels if optional. More...
 
void updateData ()
 method that is used to call registered updaters for the specific class More...
 

Static Public Attributes

static const std::string group_name = "pbft"
 

Additional Inherited Members

- Public Types inherited from taraxa::metrics::MetricsGroup
using MetricGetter = std::function< double()>
 
using MetricUpdater = std::function< void()>
 
- Protected Attributes inherited from taraxa::metrics::MetricsGroup
std::shared_ptr< prometheus::Registry > registry_
 
std::vector< MetricUpdaterupdaters_
 

Constructor & Destructor Documentation

◆ PbftMetrics()

taraxa::metrics::PbftMetrics::PbftMetrics ( std::shared_ptr< prometheus::Registry >  registry)
inline

Member Data Documentation

◆ group_name

const std::string taraxa::metrics::PbftMetrics::group_name = "pbft"
inlinestatic

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