X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Finclude%2Fcore%2Fstore.h;h=e432cab428130252e517b72b0855fc210468c5c7;hp=5f60c8dfb0a4a1091953ab3a82d8d4a36632fefb;hb=1bde17786b9a0b342daae5faa46a54b3eeab6558;hpb=98439daa576d4dbc533e9d4b8a5f493926389554 diff --git a/src/include/core/store.h b/src/include/core/store.h index 5f60c8d..e432cab 100644 --- a/src/include/core/store.h +++ b/src/include/core/store.h @@ -125,6 +125,7 @@ typedef struct { typedef struct { const char *type; const char *id; + sdb_time_t last_update; } sdb_metric_store_t; /* @@ -133,17 +134,14 @@ typedef struct { typedef struct { const char *hostname; const char *name; - struct { - const char *type; - const char *id; - } store; + sdb_metric_store_t store; sdb_time_t last_update; sdb_time_t interval; const char * const *backends; size_t backends_num; } sdb_store_metric_t; -#define SDB_STORE_METRIC_INIT { NULL, NULL, { NULL, NULL }, 0, 0, NULL, 0 } +#define SDB_STORE_METRIC_INIT { NULL, NULL, { NULL, NULL, 0 }, 0, 0, NULL, 0 } /* * sdb_store_attribute_t represents a stored attribute.