Skip to content

Commit

Permalink
remove get failover history api
Browse files Browse the repository at this point in the history
  • Loading branch information
yux0 committed Apr 15, 2024
1 parent 1a0e91f commit ab8b508
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 41 deletions.
17 changes: 0 additions & 17 deletions temporal/api/cloud/cloudservice/v1/request_response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -227,23 +227,6 @@ message FailoverNamespaceResponse {
temporal.api.cloud.operation.v1.AsyncOperation async_operation = 1;
}

message GetNamespaceFailoverHistoryRequest {
// The requested size of the page to retrieve - optional.
// Cannot exceed 1000. Defaults to 100.
int32 page_size = 1;
// The page token if this is continuing from another response - optional.
string page_token = 2;
// The namespace to get failover history.
string namespace = 3;
}

message GetNamespaceFailoverHistoryResponse {
// The page token if this is continuing from another response
string page_token = 1;
// Namespace failover history
repeated temporal.api.cloud.namespace.v1.FailoverRecord failover_history = 2;
}

message AddNamespaceRegionRequest {
// The namespace to failover.
string namespace = 1;
Expand Down
7 changes: 0 additions & 7 deletions temporal/api/cloud/cloudservice/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,6 @@ service CloudService {
};
}

// Get failover history on a namespace
rpc GetNamespaceFailoverHistory (GetNamespaceFailoverHistoryRequest) returns (GetNamespaceFailoverHistoryResponse) {
option (google.api.http) = {
get: "/api/v1/namespaces/{namespace}/failover-history",
};
}

// Add a new region to a namespace
rpc AddNamespaceRegion (AddNamespaceRegionRequest) returns (AddNamespaceRegionResponse) {
option (google.api.http) = {
Expand Down
17 changes: 0 additions & 17 deletions temporal/api/cloud/namespace/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -124,20 +124,3 @@ message Namespace {
// Will not be set if the namespace has never been modified.
google.protobuf.Timestamp last_modified_time = 11;
}

message FailoverRecord {
// The type of a failover. Values: Graceful, Forceful.
string failover_type = 1;
// The source region of the failover.
string source_region_id = 2;
// The target region of the failover.
string target_region_id = 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;
// The status of a failover. Values: Succeeded, Failed.
string failover_status = 6;
// The operator started the failover.
string operator = 7;
}

0 comments on commit ab8b508

Please sign in to comment.