OLD | NEW |
1 syntax = "proto3"; | 1 syntax = "proto3"; |
2 | 2 |
3 package traceservice; | 3 package traceservice; |
4 | 4 |
5 // TraceService stores trace information for both Gold and Perf. | 5 // TraceService stores trace information for both Gold and Perf. |
6 service TraceService { | 6 service TraceService { |
7 | 7 |
8 // Returns a list of traceids that don't have Params stored in the datastore. | 8 // Returns a list of traceids that don't have Params stored in the datastore. |
9 rpc MissingParams(MissingParamsRequest) returns (MissingParamsResponse) {} | 9 rpc MissingParams(MissingParamsRequest) returns (MissingParamsResponse) {} |
10 | 10 |
11 // Adds Params for a set of traceids. | 11 // Adds Params for a set of traceids. |
12 rpc AddParams(AddParamsRequest) returns (EmptyResponse) {} | 12 rpc AddParams(AddParamsRequest) returns (Empty) {} |
13 | 13 |
14 // Adds data for a set of traces for a particular commitid. | 14 // Adds data for a set of traces for a particular commitid. |
15 rpc Add(AddRequest) returns (EmptyResponse) {} | 15 rpc Add(AddRequest) returns (Empty) {} |
16 | 16 |
17 // Removes data for a particular commitid. | 17 // Removes data for a particular commitid. |
18 rpc Remove(RemoveRequest) returns (EmptyResponse) {} | 18 rpc Remove(RemoveRequest) returns (Empty) {} |
19 | 19 |
20 // List returns all the CommitIDs that exist in the given time range. | 20 // List returns all the CommitIDs that exist in the given time range. |
21 rpc List(ListRequest) returns (ListResponse) {} | 21 rpc List(ListRequest) returns (ListResponse) {} |
22 | 22 |
23 // GetValues returns all the trace values stored for the given CommitID. | 23 // GetValues returns all the trace values stored for the given CommitID. |
24 rpc GetValues(GetValuesRequest) returns (GetValuesResponse) {} | 24 rpc GetValues(GetValuesRequest) returns (GetValuesResponse) {} |
25 | 25 |
26 // GetParams returns the Params for all of the given traces. | 26 // GetParams returns the Params for all of the given traces. |
27 rpc GetParams(GetParamsRequest) returns (GetParamsResponse) {} | 27 rpc GetParams(GetParamsRequest) returns (GetParamsResponse) {} |
| 28 |
| 29 // Ping should always succeed. Used to test if the service is up and |
| 30 // running. |
| 31 rpc Ping (GetParamsRequest) returns (Empty) {} |
28 } | 32 } |
29 | 33 |
30 message EmptyResponse { | 34 message Empty { |
31 } | 35 } |
32 | 36 |
33 // CommitID identifies one commit, or trybot try. | 37 // CommitID identifies one commit, or trybot try. |
34 message CommitID { | 38 message CommitID { |
35 // The id of a commit, either a git hash, or a Reitveld patch id. | 39 // The id of a commit, either a git hash, or a Reitveld patch id. |
36 string id = 1; | 40 string id = 1; |
37 | 41 |
38 // The source of the commit, either a git branch name, or a Reitveld issue id. | 42 // The source of the commit, either a git branch name, or a Reitveld issue id. |
39 string source = 2; | 43 string source = 2; |
40 | 44 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 message GetParamsRequest { | 112 message GetParamsRequest { |
109 // A list of traceids. | 113 // A list of traceids. |
110 repeated string traceids = 1; | 114 repeated string traceids = 1; |
111 } | 115 } |
112 | 116 |
113 message GetParamsResponse { | 117 message GetParamsResponse { |
114 // Maps traceids to their Params. | 118 // Maps traceids to their Params. |
115 map<string, Params> params = 3; | 119 map<string, Params> params = 3; |
116 } | 120 } |
117 | 121 |
OLD | NEW |