Strait Docs
API Reference

Performance analytics insights

Performance analytics

GET
/v1/analytics/performance

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

period_hours?integer

Time window in hours (1-720)

Default24

Response Body

application/json

curl -X GET "http://localhost:8080/v1/analytics/performance"
{
  "slowest_jobs": [
    {
      "job_id": "string",
      "job_slug": "string",
      "avg_duration_secs": 0,
      "p95_duration_secs": 0,
      "total_runs": 0,
      "failed_runs": 0
    }
  ],
  "throughput": {
    "completed": 0,
    "failed": 0,
    "timed_out": 0,
    "canceled": 0,
    "period_hours": 0
  },
  "health_summary": {
    "total_jobs": 0,
    "active_jobs": 0,
    "success_rate": 0,
    "avg_duration_secs": 0,
    "queue_depth": 0
  }
}
Was this page helpful?