Returns health metrics for a job including success rate and latency.
curl --request GET \
--url https://api.strait.dev/v1/jobs/{jobID}/health \
--header 'Authorization: Bearer <token>'{
"avg_duration_secs": 123,
"canceled_runs": 123,
"completed_runs": 123,
"crashed_runs": 123,
"expired_runs": 123,
"failed_runs": 123,
"health_score": 123,
"job_id": "<string>",
"p95_duration_secs": 123,
"p99_duration_secs": 123,
"since": "2023-11-07T05:31:56Z",
"success_rate": 123,
"timed_out_runs": 123,
"total_runs": 123,
"window": "<string>",
"$schema": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.strait.dev/llms.txt
Use this file to discover all available pages before exploring further.
API key passed as Bearer token
OK
A URL to the JSON Schema for this object.
"https://api.strait.dev/schemas/JobHealthResponse.json"
curl --request GET \
--url https://api.strait.dev/v1/jobs/{jobID}/health \
--header 'Authorization: Bearer <token>'{
"avg_duration_secs": 123,
"canceled_runs": 123,
"completed_runs": 123,
"crashed_runs": 123,
"expired_runs": 123,
"failed_runs": 123,
"health_score": 123,
"job_id": "<string>",
"p95_duration_secs": 123,
"p99_duration_secs": 123,
"since": "2023-11-07T05:31:56Z",
"success_rate": 123,
"timed_out_runs": 123,
"total_runs": 123,
"window": "<string>",
"$schema": "<string>"
}