Skip to content

Commit

Permalink
remove enums
Browse files Browse the repository at this point in the history
  • Loading branch information
yux0 committed Apr 4, 2024
1 parent b586146 commit c6d79f6
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions temporal/api/cloud/namespace/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -125,24 +125,19 @@ message Namespace {
google.protobuf.Timestamp last_modified_time = 11;
}

enum FailoverType {
FAILOVER_TYPE_UNSPECIFIED = 0;
FAILOVER_TYPE_GRACEFUL = 1;
FAILOVER_TYPE_FORCEFUL = 2;
}

enum FailoverStatus {
FAILOVER_STATUS_UNSPECIFIED = 0;
FAILOVER_STATUS_SUCCEEDED = 1;
FAILOVER_STATUS_FAILED = 2;
}

message FailoverRecord {
FailoverType failover_type = 1;
// The type of a failover. Values: Graceful, Forceful.
string failover_type = 1;
// The source region of the failover.
temporal.api.cloud.region.v1.Region source_region = 2;
// The target region of the failover.
temporal.api.cloud.region.v1.Region target_region = 3;
// The start time of the failover.
google.protobuf.Timestamp start_time_utc = 4;
// The end time of the failover.
google.protobuf.Timestamp end_time_utc = 5;
FailoverStatus status = 6;
// The status of a failover. Values: Succeeded, Failed.
string failover_status = 6;
// The operator started the failover.
string operator = 7;
}

0 comments on commit c6d79f6

Please sign in to comment.