Apache Mesos
Classes | Public Member Functions | List of all members
process::metrics::Counter Class Reference

#include <counter.hpp>

Inheritance diagram for process::metrics::Counter:
process::metrics::Metric

Public Member Functions

 Counter (const std::string &name, const Option< Duration > &window=None())
 
 ~Counter () override
 
Future< double > value () const override
 
void reset ()
 
Counteroperator++ ()
 
Counter operator++ (int)
 
Counteroperator+= (int64_t v)
 
- Public Member Functions inherited from process::metrics::Metric
virtual ~Metric ()
 
const std::string & name () const
 
Option< Statistics< double > > statistics () const
 

Additional Inherited Members

- Protected Member Functions inherited from process::metrics::Metric
 Metric (const std::string &name, const Option< Duration > &window)
 
void push (double value)
 

Constructor & Destructor Documentation

process::metrics::Counter::Counter ( const std::string &  name,
const Option< Duration > &  window = None() 
)
inline
process::metrics::Counter::~Counter ( )
inlineoverride

Member Function Documentation

Counter& process::metrics::Counter::operator++ ( )
inline
Counter process::metrics::Counter::operator++ ( int  )
inline
Counter& process::metrics::Counter::operator+= ( int64_t  v)
inline
void process::metrics::Counter::reset ( )
inline
Future<double> process::metrics::Counter::value ( ) const
inlineoverridevirtual

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