Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
MetricsBackend Class Reference

#include <metricsbackend.h>

Public Types

typedef std::initializer_list< std::pair< const std::string, std::string > > Labels
 

Public Member Functions

 MetricsBackend ()=default
 
virtual ~MetricsBackend ()
 
virtual MetricCounterPtr addCounter (const std::string &name, const std::string &help_str, Labels labels={})
 
virtual MetricGaugePtr addGauge (const std::string &name, const std::string &help_str, Labels labels={})
 

Member Typedef Documentation

◆ Labels

typedef std::initializer_list<std::pair<const std::string, std::string> > MetricsBackend::Labels

Constructor & Destructor Documentation

◆ MetricsBackend()

MetricsBackend::MetricsBackend ( )
default

◆ ~MetricsBackend()

virtual MetricsBackend::~MetricsBackend ( )
inlinevirtual

Member Function Documentation

◆ addCounter()

MetricCounterPtr MetricsBackend::addCounter ( const std::string & name,
const std::string & help_str,
Labels labels = {} )
virtual

Referenced by EmergeManager::EmergeManager(), Server::Server(), ServerEnvironment::ServerEnvironment(), and ServerMap::ServerMap().

+ Here is the caller graph for this function:

◆ addGauge()

MetricGaugePtr MetricsBackend::addGauge ( const std::string & name,
const std::string & help_str,
Labels labels = {} )
virtual

Referenced by Server::Server(), ServerEnvironment::ServerEnvironment(), and ServerMap::ServerMap().

+ Here is the caller graph for this function:

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