Default locations for a new uptime monitor.
const url = 'https://api.siteqwality.com/check-locations/default?run_interval_seconds=1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.siteqwality.com/check-locations/default?run_interval_seconds=1' \ --header 'Authorization: Bearer <token>'What a create that leaves out check_regions stores: the check type’s default location,
or on an uptime plan with multi-location checks the default plus a healthy location on
another provider in its country, while the account’s projected checks stay within half
its quota. A type that only one provider runs in that country gets one location. The
projection is returned either way.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”How often it runs, 60 to 86400 seconds.
Runs every 30 seconds (needs run_interval_seconds 60). Default false.
Pairs a daily TLS check, as on create. Default true for http; always false for
tcp and ping.
Pairs a daily domain check, as on create. Default true for http, false otherwise.
Responses
Section titled “ Responses ”The default locations and the projected checks
What a new HTTP monitor runs on when its create names no check_regions, and the
projected usage behind the choice (GET /check-locations/default).
object
The default location, or it plus a healthy location on another provider in its country.
1: a pair alerts only when both locations fail.
Projected uptime checks over 30 days. Each location result is one check.
object
One location at this interval.
The daily TLS and domain checks paired with the monitor.
The new monitor on check_regions, paired checks included.
The account’s active HTTP monitors before this one.
The account’s uptime quota per usage period.
The pair is the default only while the account stays within this percent of quota.
What a create without recheck_on_failure stores: another_cloud on a paid
plan where another provider can run the check, same_location otherwise.
Example
{ "single_location_reason": "plan", "recheck_on_failure": "off"}Invalid run interval
Missing or invalid authentication
Internal server error