RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions
Datacratic::GaugeAggregator Struct Reference

#include <stat_aggregator.h>

Inheritance diagram for Datacratic::GaugeAggregator:
Datacratic::StatAggregator

List of all members.

Public Member Functions

virtual void record (float value)
std::pair< ML::distribution
< float > *, Date
reset ()
virtual std::vector< StatReadingread (const std::string &prefix)

Detailed Description

Class that aggregates a gauge over a period of time.

Definition at line 91 of file stat_aggregator.h.


Member Function Documentation

std::vector< StatReading > Datacratic::GaugeAggregator::read ( const std::string &  prefix) [virtual]

Read and reset the counter, providing output in Graphite's preferred format.

Implements Datacratic::StatAggregator.

Definition at line 138 of file stat_aggregator.cc.

void Datacratic::GaugeAggregator::record ( float  value) [virtual]

Record a new value of the stat. Lock-free but may spin briefly.

Implements Datacratic::StatAggregator.

Definition at line 106 of file stat_aggregator.cc.

std::pair< ML::distribution< float > *, Date > Datacratic::GaugeAggregator::reset ( )

Obtain a the current statistics and replace with a new version.

Definition at line 121 of file stat_aggregator.cc.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator