Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (61 sloc) 1.17 KB
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> structured = 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 {
oneof metric {
Counter counter = 1;
Histogram histogram = 2;
Gauge gauge = 3;
Set set = 4;
}
}
message Counter {
string name = 1;
double val = 2;
google.protobuf.Timestamp timestamp = 3;
map<string, string> tags = 4;
}
message Histogram {
string name = 1;
double val = 2;
uint32 sample_rate = 3;
google.protobuf.Timestamp timestamp = 4;
map<string, string> tags = 5;
}
message Gauge {
string name = 1;
double val = 2;
enum Direction {
None = 0;
Plus = 1;
Minus = 2;
}
Direction direction = 3;
google.protobuf.Timestamp timestamp = 4;
map<string, string> tags = 5;
}
message Set {
string name = 1;
string val = 2;
google.protobuf.Timestamp timestamp = 3;
map<string, string> tags = 4;
}
You can’t perform that action at this time.