Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Unified Diff: scheduler/api/scheduler/v1/scheduler.proto

Issue 2945843002: scheduler WIP: add GetAllJobs api. (Closed)
Patch Set: meh Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scheduler/api/scheduler/v1/pb.discovery.go ('k') | scheduler/api/scheduler/v1/scheduler.pb.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scheduler/api/scheduler/v1/scheduler.proto
diff --git a/scheduler/api/scheduler/v1/scheduler.proto b/scheduler/api/scheduler/v1/scheduler.proto
index 3926529a61a9a9fe35b08c14380cd89dabafe263..4c707e285cfeb53e43d3276bc51f039a4f90faed 100644
--- a/scheduler/api/scheduler/v1/scheduler.proto
+++ b/scheduler/api/scheduler/v1/scheduler.proto
@@ -9,5 +9,29 @@ package scheduler;
// Scheduler exposes the public API of the Scheduler service.
service Scheduler {
- // TODO
+ // TODO: still in progress.
+
+ // GetJobs fetches all jobs satisfying JobsRequest and visibility ACLs.
+ rpc GetJobs(JobsRequest) returns (JobsReply);
+}
+
+message JobsRequest {
+ // If not specified or "", all projects' jobs are returned.
+ string project = 1;
+}
+
+message JobsReply {
+ repeated Job jobs = 1;
+}
+
+message Job {
+ string id = 1;
+ string project = 2;
+ string schedule = 3;
+
+ JobState state = 4;
+}
+
+message JobState {
+ string ui_status = 1;
}
« no previous file with comments | « scheduler/api/scheduler/v1/pb.discovery.go ('k') | scheduler/api/scheduler/v1/scheduler.pb.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698