Skip to content

Commit

Permalink
feat(optimus): add get replay list + its individual status (goto#11)
Browse files Browse the repository at this point in the history
* feat: add get replay list

* feat: add get replay
  • Loading branch information
deryrahman authored Apr 12, 2023
1 parent 1d611a9 commit 301ed22
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions gotocompany/optimus/core/v1beta1/replay.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,50 @@ service ReplayService {
body: "*"
};
}
rpc ListReplay(ListReplayRequest) returns (ListReplayResponse) {
option (google.api.http) = {
get: "/v1beta1/project/{project_name}/replay"
};
}
rpc GetReplay(GetReplayRequest) returns (GetReplayResponse) {
option (google.api.http) = {
get: "/v1beta1/project/{project_name}/replay/{replay_id}"
};
}
}

message ListReplayRequest {
string project_name = 1;
}

message ListReplayResponse {
repeated GetReplayResponse replays = 1;
}

message GetReplayRequest {
string replay_id = 1;
string project_name = 2;
}

message GetReplayResponse {
string id = 1;
string job_name = 2;
string status = 3;
ReplayConfig replay_config = 4;
repeated ReplayRun replay_runs = 5;
}

message ReplayConfig {
google.protobuf.Timestamp start_time = 1;
google.protobuf.Timestamp end_time = 2;
bool parallel = 3;
map<string, string> job_config = 4;
string description = 5;
}

message ReplayRun {
google.protobuf.Timestamp scheduled_at = 1;
string status = 2;
}

message ReplayRequest {
Expand Down

0 comments on commit 301ed22

Please sign in to comment.