Hello, I have time-series data coming in at these timestamps
time
00:00:02
00:15:03
00:30:03
00:45:02
01:00:02
I want to run a continuous query that will calculate the delta for an hour. So it should calculate (value at 01:00:02) - (value at 00:00:02) and put it in another measurement table with timestamp as 01:00:00. This I want to be done for every hour. How can I achieve this using groupby() and offset_interval?
From what I read, the groupby interval for 1 hours will have a fixed non-overlapping boundary, say from 00:00:00 to 00:59:59. Whereas I want it to be something overlapping like:
00:00:00 to 01:05:00
01:00:00 to 02:05:00
02:00:00 to 03:05:00
and so on.
Thanks.