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

Side by Side Diff: milo/api/proto/buildinfo.proto

Issue 2667353002: milo: Add barebones BuildInfo pRPC service. (Closed)
Patch Set: Swap order, users first. Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « milo/api/proto/buildbot.pb.go ('k') | milo/api/proto/buildinfo.pb.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file.
4
5 syntax = "proto3";
6
7 package milo;
8
9 import "github.com/luci/luci-go/common/proto/milo/annotations.proto";
10
11 // The BuildInfo service definition.
12 //
13 // BuildInfo offers a one-stop shop for users to query Milo about a specific
14 // build, referencing it using familiar terms, and receive canonical build data
15 // (mostly LogDog annotation protobufs) and metadata. It acts as an entry point
16 // for services that wish to learn about builds or view their logs.
17 service BuildInfo {
18 rpc Get(BuildInfoRequest) returns (BuildInfoResponse);
19 }
20
21 message BuildInfoRequest {
22 // The request for the name of a BuildBot built.
23 message BuildBot {
24 // The master name.
25 string master_name = 1;
26 // The builder name server.
27 string builder_name = 2;
28 // The build number.
29 int64 build_number = 3;
30 }
31
32 // The request containing a Swarming task.
33 message Swarming {
34 // Host is the hostname of the Swarming server to connect to
35 // (e.g., "swarming.example.com").
36 //
37 // This is optional. If omitted or empty, Milo's default Swarming server
38 // will be used.
39 string host = 1;
40
41 // The Swarming task name.
42 string task = 2;
43 }
44
45 oneof build {
46 // Request a BuildBot build.
47 BuildBot buildbot = 1;
48 // Request a Swarming build.
49 Swarming swarming = 2;
50 }
51
52 // Project hint is a LUCI project suggestion for this build. Some builds,
53 // notably older ones, may not contain enough metadata to resolve their
54 // project. Resolution may succeed if this hint is provided and correct.
55 //
56 // This field is optional, and its use is discouraged unless necessary.
57 string project_hint = 11;
58 }
59
60 // The request containing the name of the master.
61 message BuildInfoResponse {
62 // The LUCI project that this build belongs to.
63 string project = 1;
64
65 // The main build step.
66 milo.Step step = 2;
67
68 // The LogDog annotation stream for this build. The Prefix will be populated
69 // and can be used as the prefix for any un-prefixed LogdogStream in "step".
70 milo.LogdogStream annotation_stream = 3;
71 }
OLDNEW
« no previous file with comments | « milo/api/proto/buildbot.pb.go ('k') | milo/api/proto/buildinfo.pb.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698