get_deployment_stats
Fetches query volume, outcome split, and run durations for a deployment, with configurable rolling window and granularity. Use it to monitor performance and diagnose issues.
Instructions
Fetches query volume, outcome split, and run durations for a deployment. :param deployment_id: ID of the deployment. :param days: Size of the rolling window, in days (1-90, default 30). :param granularity: Bucket width for the returned series, "DAY" (default) or "HOUR". :param time_zone: IANA time zone used to bucket the series (default "UTC"). :returns: Deployment statistics or error message.
The output is automatically stored and can be referenced in other functions.
Returns a formatted preview with an object ID (e.g., @obj_123).
Use the object store tools in combination with the object ID to view nested properties of the object.
Use the returned object ID to pass this result to other functions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| time_zone | No | UTC | |
| granularity | No | DAY | |
| deployment_id | Yes |