![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <stat_aggregator.h>
Public Member Functions | |
| virtual void | record (float value) |
| std::pair< ML::distribution < float > *, Date > | reset () |
| virtual std::vector< StatReading > | read (const std::string &prefix) |
Class that aggregates a gauge over a period of time.
Definition at line 91 of file stat_aggregator.h.
| 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.
1.7.6.1