Sirikata
|
TimeSeries tracks numeric, time series data. More...
#include <TimeSeries.hpp>
Public Member Functions | |
TimeSeries (Context *ctx) | |
virtual | ~TimeSeries () |
virtual void | report (const String &name, float64 val) |
Protected Attributes | |
Context * | mContext |
TimeSeries tracks numeric, time series data.
It's very generic, just reporting a value for a given key. Keys are just strings, but are encouraged to be hierarchical, split with '.', e.g. space.server0.objects, allowing the receiver to better organize data for exploration and display. Time values are read from the current context, so you only need to specify the key and value. Note that this data must *not* be sensitive to drops -- in order to remain low cost, implementations may drop the data if they cannot quickly and efficiently store or relay it.
Sirikata::Trace::TimeSeries::TimeSeries | ( | Context * | ctx | ) |
References mContext, and Sirikata::Context::timeSeries.
Sirikata::Trace::TimeSeries::~TimeSeries | ( | ) | [virtual] |
void Sirikata::Trace::TimeSeries::report | ( | const String & | name, |
float64 | val | ||
) | [virtual] |
Reimplemented in Sirikata::Trace::GraphiteTimeSeries.
Referenced by Sirikata::Server::finishAddObject(), Sirikata::Server::handleMigration(), Sirikata::Server::handleMigrationEvent(), Sirikata::Server::handleObjectHostConnectionClosed(), Sirikata::Server::handleSessionMessage(), Sirikata::LocalForwarder::poll(), Sirikata::SessionManager::poll(), Sirikata::Server::processAlreadyMigrating(), Sirikata::Forwarder::reportStats(), Sirikata::Proximity::reportStats(), and Sirikata::AlwaysLocationUpdatePolicy::reportStats().
Context* Sirikata::Trace::TimeSeries::mContext [protected] |