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 rate limits and missing performance data #29

Merged
merged 2 commits into from
Mar 5, 2024
Merged

Support rate limits and missing performance data #29

merged 2 commits into from
Mar 5, 2024

Conversation

Jeff-SearchPilot
Copy link
Contributor

As mentioned in #13 , the statuscake API is pretty quick to rate limit requests. This checks the HTTP response code and adds a delay where required. Note that I have only implemented this on the performance-related endpoint for now, I had no issues being rate limited on the other endpoints.

It also includes a change to ignore performance data being absent for some tests - its normal for things like failed/paused tests to not have this field.

Its normal for some tests (eg paused, failed etc) to not have any performance data
@chelnak
Copy link
Owner

chelnak commented Mar 5, 2024

Looks great, thank you

@chelnak chelnak merged commit f245a02 into chelnak:main Mar 5, 2024
1 check failed
@Jeff-SearchPilot
Copy link
Contributor Author

Great, thanks. Any chance of a release too @chelnak? I have a bit of time to get this tested with the new metrics today

@chelnak chelnak added the bug Something isn't working label Mar 5, 2024
@chelnak
Copy link
Owner

chelnak commented Mar 5, 2024

Hey, v1.1.1 should be available in a few minutes 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants