diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-06-12 17:52:40 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-07-10 23:59:54 +0200 |
commit | 75eb2161c641f85dded64a99cb862abfab64eff7 (patch) | |
tree | c2c6c515e45bba9ca1b2e30fe392342cab643ae0 /src/plugins/supervisor-api.h | |
parent | 197d9acab4fb5097d3dce56227c2096abdc075bd (diff) |
Improved supervisor requests & events recording
Change-Id: I4eb52820d2bec4ca4f2e3e455db7eb79d1a09d12
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'src/plugins/supervisor-api.h')
-rw-r--r-- | src/plugins/supervisor-api.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/plugins/supervisor-api.h b/src/plugins/supervisor-api.h index beadeca..fddaf98 100644 --- a/src/plugins/supervisor-api.h +++ b/src/plugins/supervisor-api.h @@ -16,9 +16,9 @@ */ #pragma once -#include <stdbool.h> -#include "wrap-json.h" #include "filescan-utils.h" +#include "wrap-json.h" +#include <stdbool.h> #define SRV_HARVESTER_NAME "harvester" @@ -26,11 +26,19 @@ #define META_IDENTITY "" // FIXME #ifndef ERROR - #define ERROR -1 +#define ERROR -1 #endif +typedef enum { + SPVR_DATA_STRING = 0, + SPVR_DATA_INT, + SPVR_DATA_BOOL, + SPVR_DATA_FLOAT, +} SpvrDataTypeT; + typedef struct metric_t { char* name; - json_object* data; - struct timespec timestamp; + SpvrDataTypeT dataType; + void* data; + uint64_t timestamp; } METRIC_T; |