Retrieve Check-In Stats for an Organization's Monitors

ExperimentalThis API is under active development and may change.
GET /api/0/organizations/{organization_id_or_slug}/monitors-stats/

Return check-in counts by status for each requested monitor, in time buckets. The response maps each monitor GUID to a list of [timestamp, counts] pairs, one for every bucket in the range, where timestamp is the bucket start as a Unix timestamp and counts maps each environment name to its counts by status.

Path Parameters

organization_id_or_slug (string)
REQUIRED

The ID or slug of the organization the resource belongs to.

Query Parameters:

monitor (array(string))

The GUIDs of the monitors to return stats for, up to 20. Monitors you can't access are left out.

since (number)

Start of the time range, as a Unix timestamp in seconds. Defaults to one day before until.

until (number)

End of the time range, as a Unix timestamp in seconds. Defaults to now.

resolution (string)

Size of each bucket, as a number followed by s, m, h or d, such as 30m. Defaults to a size picked for the time range. At most 2,500 buckets are allowed.

project (array(undefined))

The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. -1 is also accepted to include all accessible projects. For example, the following are valid parameters:

  • /?project=1234&project=56789
  • /?project=android&project=javascript-react
  • /?project=-1
environment (array(string))

The name of environments to filter by.

Scopes

<auth_token> requires one of the following scopes:
  • org:admin
  • org:read
  • org:write
Copied
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/monitors-stats/ \
 -H 'Authorization: Bearer <auth_token>'
RESPONSESCHEMA
Copied
.
Was this helpful?