diff options
Diffstat (limited to 'src/plugins/tsdb.h')
-rw-r--r-- | src/plugins/tsdb.h | 20 |
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(); |