diff options
author | Markos Fountoulakis <44345837+mfundul@users.noreply.github.com> | 2019-08-28 17:33:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-28 17:33:51 +0300 |
commit | 2a06960117fa020b94783c54785fa6e3b8b6ee5c (patch) | |
tree | a80cc7a7f12ba5276db10d8193bd0e8a4ce74852 /database/rrd.h | |
parent | dab0eeeea4d4ff77ba1d37fde842e13ab987146d (diff) |
Variable Granularity support for data collection (#6430)
* Variable Granularity support for data collection in the dbengine.
* Variable Granularity support for data collection in the daemon.
* Added tests to validate the data being queried after having been collected by changing data collection interval
* Fix memory corruption
* Updated database engine documentation about data collection frequency behaviour
Diffstat (limited to 'database/rrd.h')
-rw-r--r-- | database/rrd.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/database/rrd.h b/database/rrd.h index 5b09c2dda6..39e881252d 100644 --- a/database/rrd.h +++ b/database/rrd.h @@ -273,8 +273,9 @@ struct rrddim_query_handle { struct rrdeng_page_descr *descr; struct rrdengine_instance *ctx; struct pg_cache_page_index *page_index; - time_t now; //TODO: remove now to implement next point iteration - time_t dt; //TODO: remove dt to implement next point iteration + time_t next_page_time; + time_t now; + unsigned position; } rrdeng; // state the database engine uses #endif }; @@ -307,7 +308,7 @@ struct rrddim_volatile { void (*init)(RRDDIM *rd, struct rrddim_query_handle *handle, time_t start_time, time_t end_time); // run this to load each metric number from the database - storage_number (*next_metric)(struct rrddim_query_handle *handle); + storage_number (*next_metric)(struct rrddim_query_handle *handle, time_t *current_time); // run this to test if the series of next_metric() database queries is finished int (*is_finished)(struct rrddim_query_handle *handle); |