const url = 'https://app.monitorly.cloud/api/v1/checks/CHECK_ID/latency?nodeId=NODE_ID';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://app.monitorly.cloud/api/v1/checks/CHECK_ID/latency?nodeId=NODE_ID' \ --header 'Authorization: Bearer <token>'Response time per location over a range, as average and 95th percentile per bucket. The bucket follows from the range: raw results up to 6 hours, 5 minutes up to 7 days, an hour up to 90 days, a day beyond, and at most 1000 points per location. Intervals a location has no data for are listed in noData.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The check’s id.
Example
CHECK_IDQuery Parameters
Section titled “Query Parameters”RFC 3339; default 24 h before to.
RFC 3339; default now.
Only this node’s results.
Example
NODE_IDIgnored: response times are not paged.
Ignored: response times are not paged.
Responses
Section titled “Responses”The series per location.
object
“No data” intervals overlapping the range, oldest first; at most 1000, the newest kept.
An interval a node reported as “no data”: results it evicted from its full spool. A result of a slot inside it that still arrived counts as that slot’s result (rules, “Node spool”).
object
More intervals overlap the range than noData carries.
The nodes of series and noData, revoked ones included.
A node as a run or a latency series refers to it. A revoked node no longer runs checks, but its results stay in the history under its name.
object
Null until the node is located.
object
object
Start of the bucket.
For aggregates: the highest 95th percentile of the merged source buckets.
Example
{ "noData": [ { "nodeId": "NODE_ID" } ], "nodes": [ { "id": "ID" } ], "resolution": "raw", "series": [ { "nodeId": "NODE_ID" } ]}Bad Request.
request.malformed: the body or a parameter is not of the expected shaperequest.invalid_cursor: the cursor is not one this list gaveauth.credentials_conflict: the request carries both a session cookie and a token
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Unauthorized.
auth.unauthenticated,auth.session_expired: no session, or it endedtoken.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Forbidden.
auth.forbidden: your role is too low for thistoken.scope_missing: the token lacks the scope this needs;detailnames it
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Not Found.
request.not_found: it does not exist, or you cannot see it
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Unprocessable Entity.
field.invalid,field.required: a parameter breaks a rule;errorspoints at it
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Too Many Requests.
token.rate_limited: more than 10 requests a second with this token
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Headers
Section titled “Headers”Seconds to wait before trying again.