Skip to content

Commit 355166e

Browse files
committed
fix: update message name and comments
1 parent 9f11073 commit 355166e

4 files changed

Lines changed: 13 additions & 11 deletions

File tree

openapi/openapiv2.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10054,7 +10054,7 @@
1005410054
}
1005510055
}
1005610056
},
10057-
"v1ActionsMetering": {
10057+
"v1ActionMetadata": {
1005810058
"type": "object",
1005910059
"properties": {
1006010060
"actions": {
@@ -10063,7 +10063,7 @@
1006310063
"type": "object",
1006410064
"$ref": "#/definitions/v1Action"
1006510065
},
10066-
"description": "A history event can be attributed to multiple metering subtypes\nEx: EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED is used for both\ngrpc:SignalWorkflowExecution and grpc:SignalWithStartWorkflowExecution subtypes."
10066+
"title": "A history event can be attributed to multiple metering subtypes\nEx. EVENT_TYPE_WORKFLOW_EXECUTION_STARTED, which is used by both Start\nWorkflow Execution and Scheduled Workflow Executions.\ngrpc:StartWorkflowExecution and grpc:StartWorkflowExecution.Scheduled.Adjusted"
1006710067
}
1006810068
}
1006910069
},
@@ -12484,7 +12484,7 @@
1248412484
"description": "Links associated with the event."
1248512485
},
1248612486
"actionMetadata": {
12487-
"$ref": "#/definitions/v1ActionsMetering",
12487+
"$ref": "#/definitions/v1ActionMetadata",
1248812488
"description": "Actions metering metadata for the event."
1248912489
},
1249012490
"workflowExecutionStartedEventAttributes": {

openapi/openapiv3.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7243,7 +7243,7 @@ components:
72437243
actionCount:
72447244
type: integer
72457245
format: int32
7246-
ActionsMetering:
7246+
ActionMetadata:
72477247
type: object
72487248
properties:
72497249
actions:
@@ -7252,8 +7252,9 @@ components:
72527252
$ref: '#/components/schemas/Action'
72537253
description: |-
72547254
A history event can be attributed to multiple metering subtypes
7255-
Ex: EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED is used for both
7256-
grpc:SignalWorkflowExecution and grpc:SignalWithStartWorkflowExecution subtypes.
7255+
Ex. EVENT_TYPE_WORKFLOW_EXECUTION_STARTED, which is used by both Start
7256+
Workflow Execution and Scheduled Workflow Executions.
7257+
grpc:StartWorkflowExecution and grpc:StartWorkflowExecution.Scheduled.Adjusted
72577258
ActivityExecutionInfo:
72587259
type: object
72597260
properties:
@@ -9726,7 +9727,7 @@ components:
97269727
description: Links associated with the event.
97279728
actionMetadata:
97289729
allOf:
9729-
- $ref: '#/components/schemas/ActionsMetering'
9730+
- $ref: '#/components/schemas/ActionMetadata'
97309731
description: Actions metering metadata for the event.
97319732
workflowExecutionStartedEventAttributes:
97329733
$ref: '#/components/schemas/WorkflowExecutionStartedEventAttributes'

temporal/api/history/v1/message.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ message HistoryEvent {
11161116
// Links associated with the event.
11171117
repeated temporal.api.common.v1.Link links = 302;
11181118
// Actions metering metadata for the event.
1119-
temporal.api.server.v1.ActionsMetering action_metadata = 303;
1119+
temporal.api.server.v1.ActionMetadata action_metadata = 303;
11201120

11211121
oneof attributes {
11221122
WorkflowExecutionStartedEventAttributes workflow_execution_started_event_attributes = 6;

temporal/api/server/v1/message.proto

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ option java_package = "io.temporal.api.server.v1";
77
option java_outer_classname = "MessageProto";
88
option java_multiple_files = true;
99

10-
message ActionsMetering {
10+
message ActionMetadata {
1111
// A history event can be attributed to multiple metering subtypes
12-
// Ex: EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED is used for both
13-
// grpc:SignalWorkflowExecution and grpc:SignalWithStartWorkflowExecution subtypes.
12+
// Ex. EVENT_TYPE_WORKFLOW_EXECUTION_STARTED, which is used by both Start
13+
// Workflow Execution and Scheduled Workflow Executions.
14+
// grpc:StartWorkflowExecution and grpc:StartWorkflowExecution.Scheduled.Adjusted
1415
repeated Action actions = 1;
1516
}
1617

0 commit comments

Comments
 (0)