Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend "AggregateWindow" function for "offset" #472

Open
hexxone opened this issue Feb 23, 2023 · 0 comments
Open

Extend "AggregateWindow" function for "offset" #472

hexxone opened this issue Feb 23, 2023 · 0 comments

Comments

@hexxone
Copy link

hexxone commented Feb 23, 2023

Proposal:
The InfluxDb Docs talk about a offset parameter being available in the "aggregateWindow" function.
Right here:

https://docs.influxdata.com/flux/v0.x/stdlib/universe/aggregatewindow/#downsample-by-calendar-week-starting-on-monday

Which I would like to use for proper week aggregation, but it seems currently not possible?
Sorry if I have missed something.

Current behavior:
When querying Data for "This week" or 1w on every , it always starts from Thursdays.

Desired behavior:
It should be possible to pass any (TimeSpan?) offsets into the aggregateWindow function.

Alternatives considered:
I considered writing this part of the Query by hand, but since I was verry happy with InfluxDB.Client.Linq until now, I would only take it as a last resort.

Use case:
If you want to have a stats Display (say for your solar roof setup at home), showing the data from 1 year in weeks, it does not make much sense for the week to "start" on a thursday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant