Repository navigation
Expand file tree
/
Copy pathevent.proto
More file actions
134 lines (112 loc) · 2.26 KB
/
Copy pathevent.proto
File metadata and controls
134 lines (112 loc) · 2.26 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
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 ValueMap {
map<string, Value> fields = 1;
}
message ValueArray {
repeated Value items = 1;
}
enum ValueNull {
NULL_VALUE = 0;
}
message Value {
reserved 3;
oneof kind {
bytes raw_bytes = 1;
google.protobuf.Timestamp timestamp = 2;
int64 integer = 4;
double float = 5;
bool boolean = 6;
ValueMap map = 7;
ValueArray array = 8;
ValueNull null = 9;
}
}
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 value {
Counter counter = 5;
Gauge gauge = 6;
Set set = 7;
Distribution1 distribution1 = 8;
AggregatedHistogram1 aggregated_histogram1 = 9;
AggregatedSummary1 aggregated_summary1 = 10;
Distribution2 distribution2 = 12;
AggregatedHistogram2 aggregated_histogram2 = 13;
AggregatedSummary2 aggregated_summary2 = 14;
}
string namespace = 11;
}
message Counter {
double value = 1;
}
message Gauge {
double value = 1;
}
message Set {
repeated string values = 1;
}
enum StatisticKind {
Histogram = 0;
Summary = 1;
}
message Distribution1 {
repeated double values = 1;
repeated uint32 sample_rates = 2;
StatisticKind statistic = 3;
}
message Distribution2 {
repeated DistributionSample samples = 1;
StatisticKind statistic = 2;
}
message DistributionSample {
double value = 1;
uint32 rate = 2;
}
message AggregatedHistogram1 {
repeated double buckets = 1;
repeated uint32 counts = 2;
uint32 count = 3;
double sum = 4;
}
message AggregatedHistogram2 {
repeated HistogramBucket buckets = 1;
uint32 count = 2;
double sum = 3;
}
message HistogramBucket {
double upper_limit = 1;
uint32 count = 2;
}
message AggregatedSummary1 {
repeated double quantiles = 1;
repeated double values = 2;
uint32 count = 3;
double sum = 4;
}
message AggregatedSummary2 {
repeated SummaryQuantile quantiles = 1;
uint32 count = 2;
double sum = 3;
}
message SummaryQuantile {
double upper_limit = 1;
double value = 2;
}