v5

OpenAPI 3.1.02026-08-081,0211,3082.1 MB
QUERIES_V2

Get Task Runs Summary

Aggregate (summary cards) for ONE Snowflake task on the task-detail drill-down. Scoped to the qualified (database_name, schema_name, name) identity, summed across every warehouse the task ran on. start_date / end_date are optional (the UI date picker): when supplied the aggregate is limited to that range; when omitted it covers the task's full retained history. Warehouse RBAC is enforced inline; a missing user_group_id on an RBAC tenant fails closed to a zeroed summary.

get/query/v2/tasks/runs_summary

Query parameters

database_namestring required
schema_namestring required
namestring required
start_datestring date-time nullable
end_datestring date-time nullable
navigationSourcestring nullable

Headers

x-tenantstring required

Response

Successful Response

database_namestring required
schema_namestring required
namestring required
total_costnumber required
avg_costnumber required
run_countinteger required
success_countinteger required
failure_countinteger required
execution_time_msnumber required
queued_time_msnumber required
avg_execution_time_msnumber required
avg_queued_time_msnumber required
compute_costnumber required
serverless_costnumber required
credits_usednumber required
serverless_credits_usednumber required
last_run_datestring date nullable