Fawkes API
Fawkes Development Version
|
Interface for a RRD connection creator. More...
#include <>>
Public Member Functions | |
virtual | ~RRDManager () |
Virtual empty destructor. More... | |
virtual void | add_rrd (RRDDefinition *rrd_def)=0 |
Add RRD. More... | |
virtual void | remove_rrd (RRDDefinition *rrd_def)=0 |
Remove RRD. More... | |
virtual void | add_graph (RRDGraphDefinition *rrd_graph_def)=0 |
Add graph. More... | |
virtual void | add_data (const char *rrd_name, const char *format,...)=0 |
Add data. More... | |
virtual const RWLockVector< RRDDefinition * > & | get_rrds () const =0 |
Get RRDs. More... | |
virtual const RWLockVector< RRDGraphDefinition * > & | get_graphs () const =0 |
Get graphs. More... | |
Interface for a RRD connection creator.
Definition at line 40 of file rrd_manager.h.
|
inlinevirtual |
Virtual empty destructor.
Definition at line 44 of file rrd_manager.h.
References add_data(), add_graph(), add_rrd(), get_graphs(), get_rrds(), and remove_rrd().
|
pure virtual |
Add data.
Add data to an RRF.
rrd_name | name of the RRD to add data to |
format | format string. It must have the form TIMESTAMP|N:DATA, where TIMESTAMP|N is either a timestamp (in seconds since the epoch), or the letter N to use the current time. DATA is a concatenation of formats according to man sprintf and concatenated by colons, e.g. 1:2:3:4.5. |
Implemented in RRDThread.
Referenced by RRDExampleThread::loop(), ProcRRDThread::loop(), MongoRRDThread::loop(), and ~RRDManager().
|
pure virtual |
Add graph.
Add a graph definition from which to generate graphs.
rrd_graph_def | RRD graph definition |
Implemented in RRDThread.
Referenced by ProcRRDThread::finalize(), MongoRRDThread::finalize(), RRDExampleThread::init(), ProcRRDThread::init(), MongoRRDThread::init(), and ~RRDManager().
|
pure virtual |
Add RRD.
Add an RRD which can then be fed with data using add_data().
rrd_def | RRD definition |
Implemented in RRDThread.
Referenced by ProcRRDThread::finalize(), MongoRRDThread::finalize(), RRDExampleThread::init(), ProcRRDThread::init(), MongoRRDThread::init(), and ~RRDManager().
|
pure virtual |
Get graphs.
Implemented in RRDThread.
Referenced by ~RRDManager().
|
pure virtual |
Get RRDs.
Implemented in RRDThread.
Referenced by ~RRDManager().
|
pure virtual |
Remove RRD.
Remove a RRD definition. This also removes all associated graphs.
rrd_def | RRD definition |
Implemented in RRDThread.
Referenced by RRDExampleThread::finalize(), ProcRRDThread::finalize(), MongoRRDThread::finalize(), fawkes::RRDDefinition::operator=(), fawkes::RRDDefinition::~RRDDefinition(), and ~RRDManager().