filesaver
filesaver::services::stats::InMemoryMetricsReporter Class Reference

#include <InMemoryMetricsReporter.h>

Inheritance diagram for filesaver::services::stats::InMemoryMetricsReporter:
filesaver::services::stats::MetricsReporter

Public Member Functions

 INJECT (InMemoryMetricsReporter())=default
 
 ~InMemoryMetricsReporter () override=default
 
long long int getGauge (const std::string &name)
 
long long int getCount (const std::string &name)
 
std::optional< TimerStat::InfogetTiming (const std::string &name)
 
void counter (const std::string &name, long long int increment) override
 
void gauge (const std::string &name, long long int value) override
 
void timing (const std::string &name, double time) override
 
- Public Member Functions inherited from filesaver::services::stats::MetricsReporter
virtual ~MetricsReporter ()=default
 

Detailed Description

Definition at line 73 of file InMemoryMetricsReporter.h.

Constructor & Destructor Documentation

◆ ~InMemoryMetricsReporter()

filesaver::services::stats::InMemoryMetricsReporter::~InMemoryMetricsReporter ( )
overridedefault

Member Function Documentation

◆ counter()

void filesaver::services::stats::InMemoryMetricsReporter::counter ( const std::string &  name,
long long int  increment 
)
overridevirtual

◆ gauge()

void filesaver::services::stats::InMemoryMetricsReporter::gauge ( const std::string &  name,
long long int  value 
)
overridevirtual

◆ getCount()

long long int filesaver::services::stats::InMemoryMetricsReporter::getCount ( const std::string &  name)

Definition at line 38 of file InMemoryMetricsReporter.cpp.

◆ getGauge()

long long int filesaver::services::stats::InMemoryMetricsReporter::getGauge ( const std::string &  name)

Definition at line 32 of file InMemoryMetricsReporter.cpp.

◆ getTiming()

std::optional< TimerStat::Info > filesaver::services::stats::InMemoryMetricsReporter::getTiming ( const std::string &  name)

Definition at line 44 of file InMemoryMetricsReporter.cpp.

◆ INJECT()

filesaver::services::stats::InMemoryMetricsReporter::INJECT ( InMemoryMetricsReporter()  )
default

◆ timing()

void filesaver::services::stats::InMemoryMetricsReporter::timing ( const std::string &  name,
double  time 
)
overridevirtual

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