![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <stats_output.h>
Classes | |
struct | StatItem |
Public Member Functions | |
ConsoleStatsOutput (bool debug=false) | |
virtual void | logMessage (const std::string &channel, const std::string &message) |
void | dumpStats () |
virtual void | close () |
virtual Json::Value | stats () const |
virtual void | clearStats () |
Definition at line 26 of file stats_output.h.
virtual void Datacratic::ConsoleStatsOutput::clearStats | ( | ) | [inline, virtual] |
Clears the current value of stats. Default implementation does nothing.
Reimplemented from Datacratic::LogOutput.
Definition at line 53 of file stats_output.h.
virtual void Datacratic::ConsoleStatsOutput::close | ( | ) | [inline, virtual] |
Should close whatever resources are being used by the output and join any threads that it's created.
Implements Datacratic::LogOutput.
Definition at line 51 of file stats_output.h.
void Datacratic::ConsoleStatsOutput::logMessage | ( | const std::string & | channel, |
const std::string & | message | ||
) | [virtual] |
This is the method that will be called whenever we need to log a message to something.
Implements Datacratic::LogOutput.
Definition at line 32 of file stats_output.cc.
virtual Json::Value Datacratic::ConsoleStatsOutput::stats | ( | ) | const [inline, virtual] |
Should return a JSON object containing whatever stats have been accumulated since last time clearStats() was called.
Default returns an empty JSON object.
Reimplemented from Datacratic::LogOutput.
Definition at line 52 of file stats_output.h.