![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
Public Member Functions | |
CarbonStatsOutput (const std::string &carbonConnection, const std::string &carbonPrefix) | |
CarbonStatsOutput (std::shared_ptr< EventService > eventService, std::string prefix) | |
virtual void | logMessage (const std::string &channel, const std::string &message) |
void | recordBytesWrittenToFile (const std::string &file, size_t bytes) |
void | recordLevel (const std::string &name, double val) |
virtual void | close () |
virtual Json::Value | stats () const |
virtual void | clearStats () |
Definition at line 68 of file stats_output.h.
virtual void Datacratic::CarbonStatsOutput::clearStats | ( | ) | [inline, virtual] |
Clears the current value of stats. Default implementation does nothing.
Reimplemented from Datacratic::LogOutput.
Definition at line 87 of file stats_output.h.
virtual void Datacratic::CarbonStatsOutput::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 85 of file stats_output.h.
void Datacratic::CarbonStatsOutput::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 106 of file stats_output.cc.
virtual Json::Value Datacratic::CarbonStatsOutput::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 86 of file stats_output.h.