I have performance metrics for various tests over the past 6 months. When I request test results for the last 7 days, I see the latest test results:
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == “samples”)
|> filter(fn: (r) => r["_field"] == “duration”)
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield(name: “mean”)
But if I request test results for 1 year, I will not be able to see the latest test results for the last 14 days. Could you please help me, what could be the reason?
I am using Influxdb 2