#include <FastMonitor.h>
Public Member Functions | |
FastMonitor (const std::vector< JsonMonitorable * > &monitorableVariables, std::string defPath) | |
void | outputFullHistoDataPoint (std::string path) |
void | snap (bool outputCSVFile, std::string path) |
virtual | ~FastMonitor () |
Private Member Functions | |
JsonMonitorable * | getVarForName (string name) const |
Private Attributes | |
std::vector< string > | accumulatedCSV_ |
std::string | defPath_ |
DataPointDefinition | dpd_ |
std::vector< JsonMonitorable * > | monitorableVars_ |
std::vector< JsonMonitorable * > | monitoredVars_ |
bool | snappedOnce_ |
Definition at line 17 of file FastMonitor.h.
FastMonitor::FastMonitor | ( | const std::vector< JsonMonitorable * > & | monitorableVariables, |
std::string | defPath | ||
) |
Definition at line 25 of file FastMonitor.cc.
References defPath_, dpd_, jsoncollector::ObjectMerger::getDataPointDefinitionFor(), jsoncollector::DataPointDefinition::getLegend(), getVarForName(), i, jsoncollector::DataPointDefinition::isPopulated(), and monitoredVars_.
|
virtual |
Definition at line 39 of file FastMonitor.cc.
|
private |
Definition at line 99 of file FastMonitor.cc.
References i, and monitorableVars_.
Referenced by FastMonitor().
void FastMonitor::outputFullHistoDataPoint | ( | std::string | path | ) |
Definition at line 65 of file FastMonitor.cc.
References accumulatedCSV_, gather_cfg::cout, jsoncollector::ObjectMerger::csvToJson(), defPath_, dpd_, jsoncollector::Utils::getHostAndPID(), i, jsoncollector::ObjectMerger::merge(), lumiQueryAPI::msg, jsoncollector::JSONSerializer::serialize(), jsoncollector::DataPoint::setSource(), snappedOnce_, and jsoncollector::FileIO::writeStringToFile().
void FastMonitor::snap | ( | bool | outputCSVFile, |
std::string | path | ||
) |
Definition at line 42 of file FastMonitor.cc.
References accumulatedCSV_, defPath_, i, monitoredVars_, dbtoconf::out, download_sqlite_cfg::outputFile, and estimatePileup_makeJSON::trunc.
|
private |
Definition at line 37 of file FastMonitor.h.
Referenced by outputFullHistoDataPoint(), and snap().
|
private |
Definition at line 38 of file FastMonitor.h.
Referenced by FastMonitor(), outputFullHistoDataPoint(), and snap().
|
private |
Definition at line 34 of file FastMonitor.h.
Referenced by FastMonitor(), and outputFullHistoDataPoint().
|
private |
Definition at line 35 of file FastMonitor.h.
Referenced by getVarForName().
|
private |
Definition at line 36 of file FastMonitor.h.
Referenced by FastMonitor(), and snap().
|
private |
Definition at line 33 of file FastMonitor.h.
Referenced by outputFullHistoDataPoint().