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

Support iterating over multiple pages of response unless disabled #9

Open
JohnPeacockMessageSystems opened this issue May 13, 2020 · 0 comments

Comments

@JohnPeacockMessageSystems

If more records from an API call are returned that would fit into the default count (20), the API will include an additional header:

X-Circonus-More-Items: true

It would be really excellent if the Python API would support fetching all records automatically, either as a default option that could be disabled if that wasn't helpful, or an option to enable that behavior.

Due to a bug in the new API code, the /maintenance endpoint is currently returning expired windows, against the documented behavior, and if any given host has too many records to fit into the limited 20 count, you might not get any unexpired windows.

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