Skip to content

Commit 94fe9e8

Browse files
committed
Add report_stats.
1 parent 412818a commit 94fe9e8

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

openapi/openapiv2.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1777,6 +1777,13 @@
17771777
"in": "query",
17781778
"required": false,
17791779
"type": "string"
1780+
},
1781+
{
1782+
"name": "reportStats",
1783+
"description": "Report stats for version's task queues.",
1784+
"in": "query",
1785+
"required": false,
1786+
"type": "boolean"
17801787
}
17811788
],
17821789
"tags": [
@@ -5378,6 +5385,13 @@
53785385
"in": "query",
53795386
"required": false,
53805387
"type": "string"
5388+
},
5389+
{
5390+
"name": "reportStats",
5391+
"description": "Report stats for version's task queues.",
5392+
"in": "query",
5393+
"required": false,
5394+
"type": "boolean"
53815395
}
53825396
],
53835397
"tags": [
@@ -6928,7 +6942,8 @@
69286942
"$ref": "#/definitions/v1TaskQueueType"
69296943
},
69306944
"stats": {
6931-
"$ref": "#/definitions/v1TaskQueueStats"
6945+
"$ref": "#/definitions/v1TaskQueueStats",
6946+
"description": "Only set if `report_stats` is set on the request."
69326947
}
69336948
}
69346949
},

openapi/openapiv3.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,6 +1590,11 @@ paths:
15901590
description: Identifies the Worker Deployment this Version is part of.
15911591
schema:
15921592
type: string
1593+
- name: reportStats
1594+
in: query
1595+
description: Report stats for version's task queues.
1596+
schema:
1597+
type: boolean
15931598
responses:
15941599
"200":
15951600
description: OK
@@ -4823,6 +4828,11 @@ paths:
48234828
description: Identifies the Worker Deployment this Version is part of.
48244829
schema:
48254830
type: string
4831+
- name: reportStats
4832+
in: query
4833+
description: Report stats for version's task queues.
4834+
schema:
4835+
type: boolean
48264836
responses:
48274837
"200":
48284838
description: OK
@@ -7555,7 +7565,9 @@ components:
75557565
type: string
75567566
format: enum
75577567
stats:
7558-
$ref: '#/components/schemas/TaskQueueStats'
7568+
allOf:
7569+
- $ref: '#/components/schemas/TaskQueueStats'
7570+
description: Only set if `report_stats` is set on the request.
75597571
DescribeWorkflowExecutionResponse:
75607572
type: object
75617573
properties:

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2026,6 +2026,8 @@ message DescribeWorkerDeploymentVersionRequest {
20262026
string version = 2 [deprecated = true];
20272027
// Required.
20282028
temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 3;
2029+
// Report stats for version's task queues.
2030+
bool report_stats = 4;
20292031
}
20302032

20312033
message DescribeWorkerDeploymentVersionResponse {
@@ -2037,6 +2039,7 @@ message DescribeWorkerDeploymentVersionResponse {
20372039
message VersionTaskQueue {
20382040
string name = 1;
20392041
temporal.api.enums.v1.TaskQueueType type = 2;
2042+
// Only set if `report_stats` is set on the request.
20402043
temporal.api.taskqueue.v1.TaskQueueStats stats = 3;
20412044
}
20422045
}

0 commit comments

Comments
 (0)