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

Use specified bootstrapInterval to adjust start time in holtWinters* functions #776

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

carrieedwards
Copy link
Collaborator

This PR fixes an issue that was found with the holtWinters* functions. Previously, the code was adjusting the start time of these functions by 7 days, which is the default value for the bootstrapInterval parameter. However, if a different bootstrapInterval was specified, when the series was retrieved via GetSeriesArg, the from value in the request was altered by subtracting the bootstrapInterval, and the previously fetched data was not matching the request due to the altered start time. Thus, nil results were being returned. This PR fixes this by factoring in the specified bootstrapInterval when adjusting the start time for holtWinters* Functions, and only using the default of 7d if no bootstrapInterval is specified in the query.

See the Graphite-web implementation for more details (using holtWintersConfidenceBands as an example)

…functions (#154)

* Take specificed bootstrapInterval into consideration when adjusting holtWinters start times

* Adjust holtWintersConfidenceArea from

* Add tests for Metrics() function adjusting holtWinters from time
@Civil Civil added this pull request to the merge queue Jul 7, 2023
Merged via the queue into main with commit f6eca72 Jul 7, 2023
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

Successfully merging this pull request may close these issues.

Fix holtWinters* functions handling of the bootstrapInterval parameter
3 participants