Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(optimus): new sensor api #120

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions gotocompany/optimus/core/v1beta1/job_run.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ service JobRunService {
body: "*"
};
}

// GetInterval gets interval on specific job given reference time.
rpc AreAllUpstreamRunsSuccessful(AreAllUpstreamRunsSuccessfulRequest) returns (AreAllUpstreamRunsSuccessfulResponse) {
option (google.api.http) = {
get: "/v1beta1/project/{project_name}/job/{job_name}/upstream/runs"
};
}

// JobRun returns the current and past run status of jobs on a given range
rpc JobRun(JobRunRequest) returns (JobRunResponse) {
option (google.api.http) = {
Expand Down Expand Up @@ -63,6 +71,27 @@ service JobRunService {
}
}

message AreAllUpstreamRunsSuccessfulRequest {
string job_name = 1;
string project_name = 2;
google.protobuf.Timestamp schedule_time = 3;

string upstream_job_name = 4;
string upstream_project_name = 5;
string upstream_namespace_name = 6;
string upstream_host = 7;

repeated string filter = 8;
}

message AreAllUpstreamRunsSuccessfulResponse {
bool all_success = 1;
google.protobuf.Timestamp window_interval_start = 2;
google.protobuf.Timestamp window_interval_end = 3;
repeated JobRun job_runs = 4;
bool force_pass = 5;
}

message GetIntervalRequest {
google.protobuf.Timestamp reference_time = 1;
string project_name = 2;
Expand Down
Loading