![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
Information about a agent. More...
#include <router_types.h>
Classes | |
| struct | PingInfo |
Public Types | |
| enum | BidRequestFormat { BRF_JSON_RAW, BRF_JSON_NORM, BRF_BINARY_V1 } |
Public Member Functions | |
| const std::string & | encodeBidRequest (const BidRequest &br) const |
| const std::string & | encodeBidRequest (const Auction &auction) const |
| const std::string & | getBidRequestEncoding (const Auction &auction) const |
| void | setBidRequestFormat (const std::string &val) |
| void | gotPong (int level, Date sent, Date received, Date finished) |
| bool | sendPing (int level, Date &start) |
| Json::Value | toJson (bool includeConfig=true, bool includeStats=true) const |
| void | gotHeartbeat (Date when=Date::now()) |
| template<typename Fn > | |
| void | forEachInFlight (const Fn &fn) const |
| size_t | numBidsInFlight () const |
| bool | expireBidInFlight (const Id &id) |
| bool | trackBidInFlight (const Id &id, Date date=Date::now()) |
Public Attributes | |
|
enum RTBKIT::AgentInfo::BidRequestFormat | bidRequestFormat |
| bool | configured |
|
std::shared_ptr< const AgentConfig > | config |
| std::shared_ptr< AgentStatus > | status |
| std::shared_ptr< AgentStats > | stats |
| double | throttleProbability |
| std::string | address |
| PingInfo | pingInfo [2] |
Information about a agent.
Definition at line 108 of file router_types.h.
| BRF_JSON_RAW |
Send raw exchangeJSON bid requests. |
| BRF_JSON_NORM |
Send normalized JSON bid requests. |
| BRF_BINARY_V1 |
Send binary bid requests. |
Definition at line 118 of file router_types.h.
| const std::string & RTBKIT::AgentInfo::encodeBidRequest | ( | const BidRequest & | br | ) | const |
Encode the given bid request ready to be sent to the given agent in its configured format.
Definition at line 118 of file router_types.cc.
| void RTBKIT::AgentInfo::setBidRequestFormat | ( | const std::string & | val | ) |
Set the bid request format.
Definition at line 139 of file router_types.cc.
| std::string RTBKIT::AgentInfo::address |
Address of the zeromq socket for this agent.
Definition at line 131 of file router_types.h.
1.7.6.1