Batch Job Duration Stats
get_job_durationsRetrieve average, minimum, and maximum build durations for multiple jobs in one call, enabling efficient pipeline monitoring without individual API requests.
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 |