Get task runs completed count
render_get_task_runs_completedRetrieve the count of completed task runs, with options to filter by state, task ID, or time range, and aggregate results by state.
Instructions
Get task runs completed count. Get the total number of task runs completed for one or more tasks. Optionally filter by state (succeeded/failed) or aggregate by state. Calls GET /metrics/task-runs-completed on the Render Public API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | The state of task runs to filter to. When multiple state query params are provided, they are ORed together | |
| endTime | No | Epoch/Unix timestamp of end of time range to return. Defaults to `now()`. | |
| resource | No | Task ID to query. When multiple task IDs are provided, they are ORed together | |
| startTime | No | Epoch/Unix timestamp of start of time range to return. Defaults to `now() - 1 hour`. | |
| aggregateBy | No | The field to aggregate by | |
| resolutionSeconds | No | The resolution of the returned data |