forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevent.proto
More file actions
77 lines (65 loc) · 1.27 KB
/
Copy pathevent.proto
File metadata and controls
77 lines (65 loc) · 1.27 KB
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
73
74
75
76
77
syntax = "proto3";
import "google/protobuf/timestamp.proto";
package event.proto;
message EventWrapper {
oneof event {
Log log = 1;
Metric metric = 2;
}
}
message Log {
map<string, Value> fields = 1;
}
message Value {
oneof kind {
bytes raw_bytes = 1;
google.protobuf.Timestamp timestamp = 2;
int64 integer = 4;
double float = 5;
bool boolean = 6;
}
bool explicit = 3;
}
message Metric {
string name = 1;
google.protobuf.Timestamp timestamp = 2;
map<string, string> tags = 3;
enum Kind {
Incremental = 0;
Absolute = 1;
}
Kind kind = 4;
oneof metric {
Counter counter = 5;
Gauge gauge = 6;
Set set = 7;
Distribution distribution = 8;
AggregatedHistogram aggregated_histogram = 9;
AggregatedSummary aggregated_summary = 10;
}
}
message Counter {
double value = 1;
}
message Gauge {
double value = 1;
}
message Set {
repeated string values = 1;
}
message Distribution {
repeated double values = 1;
repeated uint32 sample_rates = 2;
}
message AggregatedHistogram {
repeated double buckets = 1;
repeated uint32 counts = 2;
uint32 count = 3;
double sum = 4;
}
message AggregatedSummary {
repeated double quantiles = 1;
repeated double values = 2;
uint32 count = 3;
double sum = 4;
}