-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathenvelope.proto
72 lines (58 loc) · 1.22 KB
/
envelope.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
72
syntax = "proto3";
package loggregator.v2;
option go_package = "code.cloudfoundry.org/go-loggregator/v10/rpc/loggregator_v2";
option java_package = "org.cloudfoundry.loggregator.v2";
option java_outer_classname = "LoggregatorEnvelope";
message Envelope {
int64 timestamp = 1;
string source_id = 2 [json_name="source_id"];
string instance_id = 8 [json_name="instance_id"];
map<string, Value> deprecated_tags = 3 [json_name="deprecated_tags"];
map<string, string> tags = 9;
oneof message {
Log log = 4;
Counter counter = 5;
Gauge gauge = 6;
Timer timer = 7;
Event event = 10;
}
}
message EnvelopeBatch {
repeated Envelope batch = 1;
}
message Value {
oneof data {
string text = 1;
int64 integer = 2;
double decimal = 3;
}
}
message Log {
bytes payload = 1;
Type type = 2;
enum Type {
OUT = 0;
ERR = 1;
}
}
message Counter {
string name = 1;
uint64 delta = 2;
uint64 total = 3;
}
message Gauge {
map<string, GaugeValue> metrics = 1;
}
message GaugeValue {
string unit = 1;
double value = 2;
}
message Timer {
string name = 1;
int64 start = 2;
int64 stop = 3;
}
message Event {
string title = 1;
string body = 2;
}