Skip to content

Commit ea05099

Browse files
committed
feat: add total_runs in response of GET /runs endpoint
1 parent c3b1985 commit ea05099

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

openapi/components/schemas/RunListResponse.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@ properties:
99
next_page_token:
1010
type: string
1111
description: A token which may be supplied as `page_token` in workflow run list request to get the next page of results. An empty string indicates there are no more items to return.
12+
total_runs:
13+
type: integer
14+
description: >-
15+
Total count of workflow runs that the service has executed or is executing and the caller has permission to see.
1216
description: The service will return a RunListResponse when receiving a successful RunListRequest.

openapi/workflow_execution_service.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@
150150
"next_page_token": {
151151
"type": "string",
152152
"description": "A token which may be supplied as `page_token` in workflow run list request to get the next page of results. An empty string indicates there are no more items to return."
153+
},
154+
"total_runs": {
155+
"type": "integer",
156+
"description": "Total count of workflow runs that the service has executed or is executing and the caller has permission to see."
153157
}
154158
},
155159
"description": "The service will return a RunListResponse when receiving a successful RunListRequest."

openapi/workflow_execution_service.swagger.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,10 @@ definitions:
548548
description: >-
549549
A token which may be supplied as `page_token` in workflow run list request to get the next page
550550
of results. An empty string indicates there are no more items to return.
551+
total_runs:
552+
type: integer
553+
description: >-
554+
Total count of workflow runs that the service has executed or is executing and the caller has permission to see.
551555
description: The service will return a RunListResponse when receiving a successful RunListRequest.
552556
RunLog:
553557
type: object

0 commit comments

Comments
 (0)