Batch Job Duration Stats
get_job_durationsRetrieve average, minimum, and maximum durations for multiple Zuul jobs in one API call. Computes statistics from build history in parallel, eliminating the need for separate calls per job.
Instructions
Get avg/min/max duration for multiple jobs in a single call.
Fetches build history for each job in parallel and computes duration statistics. Designed for monitoring tools that need avg durations for an entire pipeline chain without making N separate API calls.
Args: job_names: List of job names to get stats for tenant: Tenant name (uses default if empty) result: Filter by result (default "SUCCESS" for clean averages) limit: Builds per job to analyze (default 10, max 50)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| result | No | SUCCESS | |
| tenant | No | ||
| job_names | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |