Monk
1
I’m inserting points with timestamps in the future. Is there a way to query them using Flux?
Something like:
from(bucket: "pool")
|> range(start: now() + 24h, stop: now())
Which in this case ends up on my side with
type error @5:29-5:30: record is missing label windowPeriod
Hey hey, you can make use of > experimental.subDuration() function | Flux 0.x Documentation
In your case something like:
import "experimental"
from(bucket: "pool")
|> range(start: experimental.subDuration(d: 24h, from: now()), stop:now())
2 Likes
Monk
3
Did not work for me. But following did the trick:
import "experimental"
from(bucket: "pool")
|> range(start: now(), stop: experimental.addDuration(d: 24h, to: now()))
Many thanks for leading me on the right track!
1 Like
This works for me as well.
But how can I get only the data e.g. from tomorrow?