Skip to content

Commit 8687863

Browse files
davidporter-id-aufretz12
authored andcommitted
Feat/heartbeat count (#769)
<!-- Describe what has changed in this PR --> **What changed?** This adds a field for counting the total number of heartbeats given to an activity, as received by the server (as an aside, this may be less than the client activity.RecordHeartbeat() calls due to the client's throttling of this call. For this change, I'm just commandeering the work already done by @fretz12. <!-- Tell your future self why have you made these changes --> **Why?** This is to provide this information about the total number of heartbeats in the DescribeActivity API call / CLi invocation. <!-- Are there any breaking changes on binary or code level? --> **Breaking changes** Should be backwards compatible. <!-- If this breaks the Server, please provide the Server PR to merge right after this PR was merged. --> **Server PR** Should be backwards compatible. Co-authored-by: Fred Tzeng <fred.tzeng@temporal.io>
1 parent d30267c commit 8687863

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

openapi/openapiv2.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11465,6 +11465,11 @@
1146511465
"$ref": "#/definitions/v1Link"
1146611466
},
1146711467
"description": "Links to related entities, such as the entity that started this activity."
11468+
},
11469+
"totalHeartbeatCount": {
11470+
"type": "string",
11471+
"format": "int64",
11472+
"description": "Total number of heartbeats recorded across all attempts of this activity, including retries."
1146811473
}
1146911474
},
1147011475
"description": "Information about a standalone activity."

openapi/openapiv3.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8313,6 +8313,9 @@ components:
83138313
items:
83148314
$ref: '#/components/schemas/Link'
83158315
description: Links to related entities, such as the entity that started this activity.
8316+
totalHeartbeatCount:
8317+
type: string
8318+
description: Total number of heartbeats recorded across all attempts of this activity, including retries.
83168319
description: Information about a standalone activity.
83178320
ActivityExecutionListInfo:
83188321
type: object

temporal/api/activity/v1/message.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ message ActivityExecutionInfo {
165165

166166
// Links to related entities, such as the entity that started this activity.
167167
repeated temporal.api.common.v1.Link links = 33;
168+
169+
// Total number of heartbeats recorded across all attempts of this activity, including retries.
170+
int64 total_heartbeat_count = 34;
168171
}
169172

170173
// Limited activity information returned in the list response.

0 commit comments

Comments
 (0)