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

Side by Side Diff: trace/service/traceservice.proto

Issue 1411663004: Create gRPC client and server, traceservice, that stores trace data in a BoltDB backend. (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: fix vet Created 5 years, 2 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 | « trace/service/impl.go ('k') | trace/service/traceservice.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 syntax = "proto3";
2
3 package traceservice;
4
5 // TraceService stores trace information for both Gold and Perf.
6 service TraceService {
7
8 // Returns a list of traceids that don't have Params stored in the datastore.
9 rpc MissingParams(MissingParamsRequest) returns (MissingParamsResponse) {}
10
11 // Adds Params for a set of traceids.
12 rpc AddParams(AddParamsRequest) returns (EmptyResponse) {}
13
14 // Adds data for a set of traces for a particular commitid.
15 rpc Add(AddRequest) returns (EmptyResponse) {}
16
17 // Removes data for a particular commitid.
18 rpc Remove(RemoveRequest) returns (EmptyResponse) {}
19
20 // List returns all the CommitIDs that exist in the given time range.
21 rpc List(ListRequest) returns (ListResponse) {}
22
23 // GetValues returns all the trace values stored for the given CommitID.
24 rpc GetValues(GetValuesRequest) returns (GetValuesResponse) {}
25
26 // GetParams returns the Params for all of the given traces.
27 rpc GetParams(GetParamsRequest) returns (GetParamsResponse) {}
28 }
29
30 message EmptyResponse {
31 }
32
33 // CommitID identifies one commit, or trybot try.
34 message CommitID {
35 // The id of a commit, either a git hash, or a Reitveld patch id.
36 string id = 1;
37
38 // The source of the commit, either a git branch name, or a Reitveld issue id.
39 string source = 2;
40
41 // The timestamp of the commit or trybot patch.
42 int64 timestamp = 3;
43 }
44
45 // Params are the key-value pairs for a single trace.
46 //
47 // All of the key-value parameters should be present, the ones used to
48 // construct the traceid, along with optional parameters.
49 message Params {
50 map<string, string> params = 1;
51 }
52
53 message MissingParamsRequest {
54 repeated string traceids = 1;
55 }
56
57 message MissingParamsResponse {
58 repeated string traceids = 1;
59 }
60
61 message AddParamsRequest {
62 // maps traceid to the Params for that trace.
63 map<string, Params> params = 1;
64 }
65
66 // StoredEntry is used to serialize the Params to be stored in the BoltBD.
67 message StoredEntry {
68 // The parameters for the trace.
69 Params params = 2;
70 }
71
72 message AddRequest {
73 // The id of the commit/trybot we are adding data about.
74 CommitID commitid = 1;
75
76 // A map of traceid to Entry.
77 map<string, bytes> entries = 2;
78 }
79
80 message RemoveRequest {
81 // The id of the commit/trybot we are removing.
82 CommitID commitid = 1;
83 }
84
85 message ListRequest {
86 // begin is the unix timestamp to start searching from.
87 int64 begin = 1;
88
89 // end is the unix timestamp to search to (inclusive).
90 int64 end = 2;
91 }
92
93 message ListResponse {
94 // A list of CommitIDs that fall between the given timestamps in
95 // ListRequest.
96 repeated CommitID commitids = 3;
97 }
98
99 message GetValuesRequest {
100 CommitID commitid = 1;
101 }
102
103 message GetValuesResponse {
104 // Maps traceid's to their []byte serialized values.
105 map<string, bytes> values = 3;
106 }
107
108 message GetParamsRequest {
109 // A list of traceids.
110 repeated string traceids = 1;
111 }
112
113 message GetParamsResponse {
114 // Maps traceids to their Params.
115 map<string, Params> params = 3;
116 }
117
OLDNEW
« no previous file with comments | « trace/service/impl.go ('k') | trace/service/traceservice.pb.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698