cURL
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 } } }
Detailed metrics for a single monitor, including runs summary, latency stats, recent failures, and error distribution.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
1h
6h
24h
7d
30d
Default Response
Show child attributes