forked from storj/eventkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacket.proto
48 lines (42 loc) · 979 Bytes
/
packet.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
syntax = "proto3";
package eventkit;
option go_package = "github.com/jtolio/eventkit/pb";
message Timestamp {
int64 seconds = 1;
int32 nanos = 2;
}
message Tag {
string key = 1;
oneof value {
bytes string = 2;
int64 int64 = 3;
double double = 4;
bytes bytes = 5;
bool bool = 6;
int64 duration_ns = 7;
Timestamp timestamp = 8;
}
}
message Event {
string name = 1;
repeated string scope = 2;
int64 timestamp_offset_ns = 3;
repeated Tag tags = 4;
}
message Packet {
string application = 1;
string application_version = 2;
string instance = 3;
Timestamp start_timestamp = 4;
int64 send_offset_ns = 5;
repeated Event events = 6;
}
message Record {
string application = 1;
string application_version = 2;
string instance = 3;
string source_addr = 4;
Timestamp timestamp = 5;
int64 timestamp_correction_ns = 6;
repeated Tag tags = 7;
}