summaryrefslogtreecommitdiffstats
path: root/src/plugins/tsdb.h
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2019-07-05 09:32:26 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2019-08-01 17:45:11 +0200
commit132d8131ae287bb0ab148aef545b9337e9703db6 (patch)
tree557c41a338b210eae081843e7d9d1dd9e7ee54ec /src/plugins/tsdb.h
parent4bcea9804e13134d2e0f45ae158c17825cff1b76 (diff)
Add comments and re-ident code
Change-Id: Ibb4636bd968d6e4fd564ab40d5cf59e5a6ec6210 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'src/plugins/tsdb.h')
-rw-r--r--src/plugins/tsdb.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/plugins/tsdb.h b/src/plugins/tsdb.h
index 8469ac0..ac5a103 100644
--- a/src/plugins/tsdb.h
+++ b/src/plugins/tsdb.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2018 "IoT.bzh"
+ * Copyright (C) 2018-2019 "IoT.bzh"
* Author "Romain Forlot" <romain.forlot@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,27 +18,27 @@
#ifndef _TSDB_H
#define _TSDB_H
-#include <json-c/json.h>
#include "curl-wrap.h"
+#include <json-c/json.h>
#define ERROR -1
#define DEFAULT_DB "agl-garner"
#define DEFAULT_DBHOST "localhost"
#define DEFAULT_DBPORT "8086"
-#define URL_MAXIMUM_LENGTH 2047
+#define URL_MAXIMUM_LENGTH 4096
enum db_available {
- NODB = 0,
- INFLUX = 1,
- GRAPHITE = 2,
- OPENTSDB = 4
+ NODB = 0,
+ INFLUX = 1,
+ GRAPHITE = 2,
+ OPENTSDB = 4
};
struct reader_args {
- const char *host;
- const char *port;
- u_int32_t delay;
+ const char* host;
+ const char* port;
+ u_int32_t delay;
};
u_int64_t get_ts();