18 using namespace jsoncollector;
27 snappedOnce_(
false), monitorableVars_(monitorableVariables),
56 outputFile << ss.str();
61 string inputStringCSV = ss.str();
69 vector<DataPoint*> dpToMerge;
78 dpToMerge.push_back(currentDP);
81 string outputJSONAsString;
85 mergedDP->
setSource(dpToMerge[0]->getSource());
87 for (
unsigned int i = 0;
i < dpToMerge.size();
i++)
static void writeStringToFile(std::string &filename, std::string &content)
JsonMonitorable * getVarForName(string name) const
FastMonitor(const std::vector< JsonMonitorable * > &monitorableVariables, std::string defPath)
static void getHostAndPID(std::string &sHPid)
static bool serialize(JsonSerializable *pObj, std::string &output)
std::vector< JsonMonitorable * > monitorableVars_
static DataPoint * csvToJson(std::string &olCSV, DataPointDefinition *dpd, std::string defPath)
static DataPoint * merge(const std::vector< DataPoint * > &objectsToMerge, std::string &outcomeMessage, bool onlyHistos)
std::vector< JsonMonitorable * > monitoredVars_
void snap(bool outputCSVFile, std::string path)
void setSource(std::string source)
std::vector< string > accumulatedCSV_
static bool getDataPointDefinitionFor(std::string defFilePath, DataPointDefinition &def)
void outputFullHistoDataPoint(std::string path)
volatile std::atomic< bool > shutdown_flag false
std::vector< LegendItem > getLegend() const