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

#include <service_base.h>

Inheritance diagram for Datacratic::EventRecorder:
Datacratic::CarbonStatsOutput Datacratic::ServiceBase Datacratic::SubServiceBase EchoService EchoService EchoService MockRestService Publisher RTBKIT::AdServerConnector RTBKIT::AgentConfigurationService RTBKIT::AugmentationLoop RTBKIT::Augmentor RTBKIT::BiddingAgent RTBKIT::DataLogger RTBKIT::ExchangeConnector RTBKIT::MasterBanker RTBKIT::MockExchange RTBKIT::MonitorEndpoint RTBKIT::PostAuctionLoop RTBKIT::Router RTBKIT::RouterStack

List of all members.

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< EventServiceevents_
std::shared_ptr< ServiceProxiesservices_

Detailed Description

Bridge class to an event recorder.

Definition at line 395 of file service_base.h.


Member Function Documentation

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.


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