-
Notifications
You must be signed in to change notification settings - Fork 12
/
metrics.proto
44 lines (36 loc) · 922 Bytes
/
metrics.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
syntax = "proto3";
package poplar;
option go_package = "rpc/internal";
import "poplar.proto";
message IntervalSummary {
string collector = 1;
oneof value {
SummaryInteger number = 2;
SummaryIntegerSlice number_values = 3;
SummaryDouble point = 4;
SummaryDoubleSlice point_values = 5;
}
}
message SummaryIntegerSlice {
string name = 1;
repeated int64 value = 2;
}
message SummaryInteger {
string name = 1;
int64 value = 2;
}
message SummaryDoubleSlice {
string name = 1;
repeated double value = 2;
}
message SummaryDouble {
string name = 1;
double value = 2;
}
service PoplarMetricsCollector {
rpc CreateCollector(CreateOptions) returns (PoplarResponse);
rpc CloseCollector(PoplarID) returns (PoplarResponse);
rpc ResetSample(PoplarID) returns (PoplarResponse);
rpc FlushSample(PoplarID) returns (PoplarResponse);
rpc Add(IntervalSummary) returns (PoplarResponse);
}