stats

Get aggregate stats

Returns run totals for the environment.

Includes total runs, completed, failed and cancelled counts, and the number of tool calls for runs queued in the date range. Defaults to the last 30 days.

Required permission: stats.view.

get/v1/projects/{project_id}/stats/aggregate

Request

  • Base URL: https://api.connic.co
  • URL: https://api.connic.co/v1/projects/{project_id}/stats/aggregate
  • Auth: HTTP bearer

Path parameters

project_idstring uuid required

ID of the project the API key belongs to.

Query parameters

environment_idstring uuid required

Environment to count runs in.

start_datestring date-time nullable

Only runs queued at or after this time. Defaults to 30 days ago; no offset means UTC.

end_datestring date-time nullable

Only runs queued at or before this time. Defaults to now; no offset means UTC.

Response

Successful Response

total_runsinteger required

Runs queued in the date range.

total_successinteger required

Runs that completed.

total_failedinteger required

Runs that failed.

total_cancelledinteger required

Runs that were cancelled.

total_tool_callsinteger required

Tool calls made by those runs.

Changes

No recorded changes to this operation across all 1 revision of this API.