![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <service_base.h>
Public Member Functions | |
EventRecorder (const std::string &eventPrefix, const std::shared_ptr< EventService > &events) | |
EventRecorder (const std::string &eventPrefix, const std::shared_ptr< ServiceProxies > &services) | |
void | recordEvent (const char *eventName, EventType type=ET_COUNT, float value=1.0) const |
void | recordEventFmt (EventType type, float value, const char *fmt,...) const JML_FORMAT_STRING(4 |
template<typename... Args> | |
void void | recordHit (const std::string &event, Args...args) const |
template<typename... Args> | |
JML_ALWAYS_INLINE void | recordHit (const char *event, Args...args) const |
void | recordHit (const char *event) const |
void | recordHit (const std::string &event) const |
template<typename... Args> | |
void | recordCount (float count, const std::string &event, Args...args) const |
template<typename... Args> | |
JML_ALWAYS_INLINE void | recordCount (float count, const char *event, Args...args) const |
void | recordCount (float count, const char *event) const |
void | recordCount (float count, const std::string &event) const |
template<typename... Args> | |
void | recordOutcome (float outcome, const std::string &event, Args...args) const |
template<typename... Args> | |
void | recordOutcome (float outcome, const char *event, Args...args) const |
void | recordOutcome (float outcome, const char *event) const |
void | recordOutcome (float outcome, const std::string &event) const |
template<typename... Args> | |
void | recordLevel (float level, const std::string &event, Args...args) const |
template<typename... Args> | |
void | recordLevel (float level, const char *event, Args...args) const |
void | recordLevel (float level, const char *event) const |
void | recordLevel (float level, const std::string &event) const |
Protected Attributes | |
std::string | eventPrefix_ |
std::shared_ptr< EventService > | events_ |
std::shared_ptr< ServiceProxies > | services_ |
Bridge class to an event recorder.
Definition at line 395 of file service_base.h.
void Datacratic::EventRecorder::recordEvent | ( | const char * | eventName, |
EventType | type = ET_COUNT , |
||
float | value = 1.0 |
||
) | const [inline] |
Notify that an event has happened. Fields are: eventNum: an ID for the event; eventName: the name of the event; eventType: the type of the event. Default is ET_COUNT; value: the value of the event (quantity being measured). Default is 1.0; units: the units of the event (eg, ms). Default is unitless.
Definition at line 416 of file service_base.h.