Skip to main content
GET
/
metrics
/
monitors
/
{monitorId}
Get Monitor Metrics
curl --request GET \
  --url https://hub.griff.services/metrics/monitors/{monitorId} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "monitorId": "<string>",
    "monitorName": "<string>",
    "environment": "<string>",
    "period": "1h",
    "periodStart": "2023-11-07T05:31:56Z",
    "periodEnd": "2023-11-07T05:31:56Z",
    "status": "healthy",
    "runs": {
      "total": 123,
      "successful": 123,
      "failed": 123,
      "successRate": 123
    },
    "latency": {
      "minDurationMs": 123,
      "avgDurationMs": 123,
      "p50DurationMs": 123,
      "p95DurationMs": 123,
      "p99DurationMs": 123,
      "maxDurationMs": 123
    },
    "uptimePercent": 123,
    "recentFailures": [
      {
        "id": "<string>",
        "startedAt": "2023-11-07T05:31:56Z",
        "errors": [
          "<string>"
        ]
      }
    ],
    "errorDistribution": {},
    "lastRun": {
      "id": "<string>",
      "status": "<string>",
      "success": true,
      "startedAt": "2023-11-07T05:31:56Z",
      "durationMs": 123
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

monitorId
string
required

Query Parameters

environment
string
period
enum<string>
Available options:
1h,
6h,
24h,
7d,
30d

Response

Default Response

data
object
required