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

Added optional use of new v1 StatusCake API #10

Merged
merged 2 commits into from
Oct 27, 2021

Conversation

CloudPlatformer
Copy link
Collaborator

StatusCake have a new beta API available https://www.statuscake.com/api/v1/

The new Get all uptime tests endpoint https://www.statuscake.com/api/v1/#operation/list-uptime-tests provides paged responses to get all tests, overcoming the limit of only 100 tests in the response from the legacy API https://www.statuscake.com/api/Tests/Get%20All%20Tests.md

Environment variables USE_V1_UPTIME_ENDPOINTS and USE_V1_MAINTENANCE_WINDOWS_ENDPOINTS are used to enable use of the v1 API.

As per https://www.statuscake.com/api/v1/#tag/uptime:

NOTE: the API endpoints concerned with maintenance windows will only work with accounts registed to use the newer version of maintenance windows. This version of maintenance windows is incompatible with the original version and all existing windows will require migrating to be further used. Presently a tool to automate the migration of maintenance windows is under development.

Similarly, if an account is registered to use the newer version of maintenance windows, the legacy API's maintenance windows endpoints cannot be used.

Resolves #6

@chelnak chelnak merged commit fd3ede5 into chelnak:main Oct 27, 2021
@chelnak chelnak added the enhancement New feature or request label Oct 27, 2021
@CloudPlatformer CloudPlatformer deleted the add-optional-beta-api-usage branch October 27, 2021 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

StatusCake API Response is now paged - need to handle this
2 participants