Apache Mesos
Classes | Public Member Functions | Protected Member Functions | List of all members
process::metrics::Metric Class Referenceabstract

#include <metric.hpp>

Inheritance diagram for process::metrics::Metric:
process::metrics::Counter process::metrics::Gauge process::metrics::Timer< T > process::metrics::Timer< Milliseconds >

Public Member Functions

virtual ~Metric ()
 
virtual Future< double > value () const =0
 
const std::string & name () const
 
Option< Statistics< double > > statistics () const
 

Protected Member Functions

 Metric (const std::string &name, const Option< Duration > &window)
 
void push (double value)
 

Constructor & Destructor Documentation

virtual process::metrics::Metric::~Metric ( )
inlinevirtual
process::metrics::Metric::Metric ( const std::string &  name,
const Option< Duration > &  window 
)
inlineprotected

Member Function Documentation

const std::string& process::metrics::Metric::name ( ) const
inline
void process::metrics::Metric::push ( double  value)
inlineprotected
Option<Statistics<double> > process::metrics::Metric::statistics ( ) const
inline
virtual Future<double> process::metrics::Metric::value ( ) const
pure virtual

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