Get Execution Metrics
Changed onGet execution metrics for a trigger.
Returns aggregated counts, success rate, execution time and spend. Spend is the cost of the tasks those runs created, joined at read time — a run is recorded when its task starts, the bill accrues afterwards.
Args: trigger_id: The unique identifier of the trigger hours: Time period in hours to analyze; omitted means the whole history user_context: Authentication context trigger_service: Injected trigger service db_session: Session used for the spend join
Returns: Execution metrics for the trigger
Raises: HTTPException: If trigger not found
Request
- The document declares no server URL.
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Slug of the workspace the request acts in
Query parameters
Time period in hours (max 1 year). Omit for the trigger's whole history.
Response
Successful Response
Changes
- info
added the required property
to the response with the status
- info
- info
endpoint added
- info