Skip to content

Get response times

GET
/api/v1/checks/{checkId}/latency
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.

checkId
required
string format: uuid

The check’s id.

Example

CHECK_ID
from
string

RFC 3339; default 24 h before to.

to
string

RFC 3339; default now.

nodeId
string format: uuid

Only this node’s results.

Example

NODE_ID
cursor
deprecated
string

Ignored: response times are not paged.

limit
deprecated
integer format: int32

Ignored: response times are not paged.

The series per location.

Media typeapplication/json
object
bucketSecs
required
integer format: int64
from
required
string
noData
required

“No data” intervals overlapping the range, oldest first; at most 1000, the newest kept.

Array<object>

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
from
required
string
nodeId
required
string format: uuid
to
required
string
noDataTruncated
required

More intervals overlap the range than noData carries.

boolean
nodes
required

The nodes of series and noData, revoked ones included.

Array<object>

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
city
string | null
countryCode

Null until the node is located.

string | null
id
required
string format: uuid
name
required
string
revoked
required
boolean
resolution
required
string
Allowed values: raw 5m 1h 1d
series
required
Array<object>
object
nodeId
required
string format: uuid
points
required
Array<object>
object
at
required

Start of the bucket.

string
avgMs
number | null format: double
failed
required
integer format: int64
p95Ms

For aggregates: the highest 95th percentile of the merged source buckets.

number | null format: double
runs
required
integer format: int64
to
required
string

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 shape
  • request.invalid_cursor: the cursor is not one this list gave
  • auth.credentials_conflict: the request carries both a session cookie and a token
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

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 ended
  • token.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

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 this
  • token.scope_missing: the token lacks the scope this needs; detail names it
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

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
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

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; errors points at it
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

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
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}
Retry-After
integer
>= 1

Seconds to wait before trying again.