Get Job Runtime Metrics
GET/api/v2/queue-admin/job-metrics
Per-class Horizon job duration metrics. Returns the top-N slowest classes (by average runtime in milliseconds) and a full per-class breakdown that the UI can sort client-side.
Backed by Laravel Horizon's MetricsRepository — runtimeForJob() for average runtime in ms and throughputForJob() for the throughput counter since the last metric reset. Snapshots are recorded by Horizon every minute; metrics persist until POST /metrics/reset is called.
Read-only — no audit row is written.
Query parameters:
top_slowest(optional, integer, default 5): how many rows to include intop_slowest. Theper_classlist always contains every measured class.
Response fields per row:
class: FQCN of the job (e.g.App\Jobs\ProcessOrderJob)short_class: trailing class name without namespace (e.g.ProcessOrderJob) — convenience for UI displayruntime_avg_ms: average runtime in milliseconds (float)throughput: jobs processed since last metric reset (int)
Authentication: Requires Bearer token and is_power_user middleware.
Request
Responses
- 200
Successful response