Skip to main content
GET
/
metrics
/
monitors
List Monitors with Metrics
curl --request GET \
  --url https://hub.griff.services/metrics/monitors \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "monitorId": "<string>",
      "monitorName": "<string>",
      "environment": "<string>",
      "status": "healthy",
      "successRate": 123,
      "runCount": 123,
      "p50DurationMs": 123,
      "p95DurationMs": 123,
      "lastRunAt": "2023-11-07T05:31:56Z",
      "lastSuccessAt": "2023-11-07T05:31:56Z",
      "lastFailureAt": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 123,
  "limit": 123,
  "offset": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

environment
string
period
enum<string>
Available options:
1h,
6h,
24h,
7d,
30d
status
enum<string>
Available options:
healthy,
degraded,
failing
sort
enum<string>
Available options:
name,
success_rate,
p95_duration_ms,
run_count
order
Available options:
asc
limit
number
Required range: 1 <= x <= 100
offset
number
Required range: x >= 0

Response

Default Response

data
object[]
required
total
number
required
limit
number
required
offset
number
required