diff --git a/openapi/openapiv2.json b/openapi/openapiv2.json index 12d163654..271a58753 100644 --- a/openapi/openapiv2.json +++ b/openapi/openapiv2.json @@ -18401,6 +18401,11 @@ "invalidScheduleError": { "type": "string", "description": "Deprecated." + }, + "stateSizeBytes": { + "type": "string", + "format": "int64", + "description": "Size of the schedule's internal state (including payloads) in bytes." } } }, @@ -18454,6 +18459,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 14a6a130c..931b02aa3 100644 --- a/openapi/openapiv3.yaml +++ b/openapi/openapiv3.yaml @@ -15453,6 +15453,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: @@ -15496,6 +15499,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.