summaryrefslogtreecommitdiffstats
path: root/src/plugins/influxdb.h
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-04-17 10:23:07 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-07-10 23:41:14 +0200
commit4b6d97da2d4bc1a9e328cf861e75f5ee1bb968e3 (patch)
tree5d05a7fef6ddb17ec938dd9959ed33b856cfb607 /src/plugins/influxdb.h
parent5d50f0426699a06b5720e10f1feaef35c8b59f57 (diff)
Fully handle array of metrics to be writen in DB
Move a function code. Change-Id: I35a90e08e7019e634676915858aa0a666d46f711 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/plugins/influxdb.h')
-rw-r--r--src/plugins/influxdb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/influxdb.h b/src/plugins/influxdb.h
index 859e101..ae40e77 100644
--- a/src/plugins/influxdb.h
+++ b/src/plugins/influxdb.h
@@ -23,20 +23,20 @@
#include "tsdb.h"
#include "../utils/list.h"
-struct series_columns_t {
+struct serie_columns_t {
struct list *tags;
struct list *fields;
};
struct series_t {
const char *name;
- struct series_columns_t series_columns;
+ struct serie_columns_t serie_columns;
uint64_t timestamp;
};
int create_database();
-int unpack_metric_from_api(json_object *m, struct series_t **serie);
+int unpack_metric_from_api(json_object *m, struct series_t *serie);
void concatenate(char* dest, const char* source, const char *sep);