Code

Store a separate last_update timestamp for metric stores.
[sysdb.git] / src / include / core / store.h
index 7a9a209b788d0f2d9c616ff3550e66eb09fb4f3d..e432cab428130252e517b72b0855fc210468c5c7 100644 (file)
@@ -125,6 +125,7 @@ typedef struct {
 typedef struct {
        const char *type;
        const char *id;
+       sdb_time_t last_update;
 } sdb_metric_store_t;
 
 /*
@@ -140,7 +141,7 @@ typedef struct {
        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.