mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2026-01-27 12:50:39 +03:00
test1
This commit is contained in:
@@ -1,47 +1,46 @@
|
||||
#ifdef ENABLE_INFLUXDB
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef CLASSFINFLUXDBv2_H
|
||||
#define CLASSFINFLUXDBv2_H
|
||||
|
||||
#include "ClassFlow.h"
|
||||
|
||||
#include "ClassFlowPostProcessing.h"
|
||||
|
||||
#include "interface_influxdb.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class ClassFlowInfluxDBv2 :
|
||||
public ClassFlow
|
||||
#include "ClassFlow.h"
|
||||
#include "ClassFlowPostProcessing.h"
|
||||
#include "interface_influxdb.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
bool enabled;
|
||||
std::string uri;
|
||||
std::string bucket;
|
||||
std::string dborg;
|
||||
std::string dbtoken;
|
||||
std::string dbfield;
|
||||
std::string oldValue;
|
||||
|
||||
} influxDBv2_controll_config_t;
|
||||
|
||||
extern influxDBv2_controll_config_t influxDBv2_controll_config;
|
||||
|
||||
class ClassFlowInfluxDBv2 : public ClassFlow
|
||||
{
|
||||
protected:
|
||||
std::string uri, bucket;
|
||||
std::string dborg, dbtoken, dbfield;
|
||||
std::string OldValue;
|
||||
ClassFlowPostProcessing* flowpostprocessing;
|
||||
bool InfluxDBenable;
|
||||
|
||||
InfluxDB influxdb;
|
||||
|
||||
void SetInitialParameter(void);
|
||||
|
||||
void handleFieldname(string _decsep, string _value);
|
||||
void handleMeasurement(string _decsep, string _value);
|
||||
InfluxDB influxDB;
|
||||
ClassFlowPostProcessing *flowpostprocessing;
|
||||
|
||||
void SetInitialParameter(void);
|
||||
void handleFieldname(std::string _decsep, std::string _value);
|
||||
void handleMeasurement(std::string _decsep, std::string _value);
|
||||
|
||||
public:
|
||||
ClassFlowInfluxDBv2();
|
||||
ClassFlowInfluxDBv2(std::vector<ClassFlow*>* lfc);
|
||||
ClassFlowInfluxDBv2(std::vector<ClassFlow*>* lfc, ClassFlow *_prev);
|
||||
ClassFlowInfluxDBv2(std::vector<ClassFlow *> *lfc);
|
||||
ClassFlowInfluxDBv2(std::vector<ClassFlow *> *lfc, ClassFlow *_prev);
|
||||
|
||||
// string GetInfluxDBMeasurement();
|
||||
|
||||
bool ReadParameter(FILE* pfile, string& aktparamgraph);
|
||||
bool doFlow(string time);
|
||||
string name(){return "ClassFlowInfluxDBv2";};
|
||||
bool ReadParameter(FILE *pFile, std::string &aktparamgraph);
|
||||
bool doFlow(std::string temp_time);
|
||||
std::string name() { return "ClassFlowInfluxDBv2"; };
|
||||
};
|
||||
|
||||
#endif //CLASSFINFLUXDBv2_H
|
||||
#endif //ENABLE_INFLUXDB
|
||||
#endif // CLASSFINFLUXDBv2_H
|
||||
|
||||
Reference in New Issue
Block a user