diff --git a/openapi/openapiv2.json b/openapi/openapiv2.json index 65437ff15..a7045dd07 100644 --- a/openapi/openapiv2.json +++ b/openapi/openapiv2.json @@ -18499,6 +18499,11 @@ "invalidScheduleError": { "type": "string", "description": "Deprecated." + }, + "stateSizeBytes": { + "type": "string", + "format": "int64", + "description": "Size of the schedule's internal state (including payloads) in bytes." } } }, @@ -18552,6 +18557,11 @@ "type": "string", "format": "date-time" } + }, + "stateSizeBytes": { + "type": "string", + "format": "int64", + "description": "Size of the schedule's internal state (including payloads) in bytes." } }, "description": "ScheduleListInfo is an abbreviated set of values from Schedule and ScheduleInfo\nthat's returned in ListSchedules." diff --git a/openapi/openapiv3.yaml b/openapi/openapiv3.yaml index bb733a194..f8163a8a9 100644 --- a/openapi/openapiv3.yaml +++ b/openapi/openapiv3.yaml @@ -15483,6 +15483,9 @@ components: invalidScheduleError: type: string description: Deprecated. + stateSizeBytes: + type: string + description: Size of the schedule's internal state (including payloads) in bytes. ScheduleListEntry: type: object properties: @@ -15526,6 +15529,9 @@ components: items: type: string format: date-time + stateSizeBytes: + type: string + description: Size of the schedule's internal state (including payloads) in bytes. description: |- ScheduleListInfo is an abbreviated set of values from Schedule and ScheduleInfo that's returned in ListSchedules. diff --git a/temporal/api/schedule/v1/message.proto b/temporal/api/schedule/v1/message.proto index b35e1f0eb..3a0a9344c 100644 --- a/temporal/api/schedule/v1/message.proto +++ b/temporal/api/schedule/v1/message.proto @@ -349,6 +349,9 @@ message ScheduleInfo { // Deprecated. string invalid_schedule_error = 8 [deprecated = true]; + + // Size of the schedule's internal state (including payloads) in bytes. + int64 state_size_bytes = 12; } message Schedule { @@ -377,6 +380,9 @@ message ScheduleListInfo { // From info (maybe fewer entries): repeated ScheduleActionResult recent_actions = 5; repeated google.protobuf.Timestamp future_action_times = 6; + + // Size of the schedule's internal state (including payloads) in bytes. + int64 state_size_bytes = 7; } // ScheduleListEntry is returned by ListSchedules.