Batch Job Duration Stats
get_job_durationsRetrieve average, minimum, and maximum build durations for multiple jobs in one API call. Ideal for monitoring pipeline chains without repeated requests.
Instructions
Get avg/min/max duration for multiple jobs in a single call.
Fetches build history per job in parallel. Designed for monitoring tools that need durations for an entire pipeline chain.
Args: job_names: List of job names to get stats for tenant: Tenant (default from env) result: Result filter (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 |