-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuildlogger.proto
71 lines (58 loc) · 1.32 KB
/
buildlogger.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
syntax = "proto3";
package cedar;
option go_package = "rpc/internal";
import "google/protobuf/timestamp.proto";
message LogData {
LogInfo info = 1;
LogStorage storage = 2;
}
message LogInfo{
string project = 1;
string version = 2;
string variant = 3;
string task_name = 4;
string task_id = 5;
int32 execution = 6;
string test_name = 7;
int32 trial = 8;
string proc_name = 9;
LogFormat format = 10;
repeated string tags = 11;
map<string, string> arguments = 12;
bool mainline = 13;
}
enum LogStorage {
LOG_STORAGE_S3 = 0;
// Pail no longer supports GridFS
reserved 1;
reserved "LOG_STORAGE_GRIDFS";
LOG_STORAGE_LOCAL = 2;
}
enum LogFormat {
LOG_FORMAT_UNKNOWN = 0;
LOG_FORMAT_TEXT = 1;
LOG_FORMAT_JSON = 2;
LOG_FORMAT_BSON = 3;
}
message LogLines {
string log_id = 1;
repeated LogLine lines = 2;
}
message LogLine {
int32 priority = 1;
google.protobuf.Timestamp timestamp = 2;
bytes data = 3;
}
message LogEndInfo {
string log_id = 1;
int32 exit_code = 2;
}
message BuildloggerResponse {
string log_id = 1;
}
service Buildlogger {
rpc CreateLog(LogData) returns (BuildloggerResponse);
rpc AppendLogLines(LogLines) returns (BuildloggerResponse);
rpc StreamLogLines(stream LogLines) returns (BuildloggerResponse);
rpc CloseLog(LogEndInfo) returns (BuildloggerResponse);
}