-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis.proto
93 lines (75 loc) · 2.06 KB
/
analysis.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
syntax = "proto2";
package analysis;
message Protocol {
required string id = 1;
required uint32 activeMetrics = 2;
optional uint32 clientIp = 3;
repeated uint32 clientPorts = 4;
optional uint32 serverIp = 5;
repeated uint32 serverPorts = 6;
};
message NetInt {
required string id = 1;
repeated Protocol protocols = 2;
};
message Init {
repeated NetInt netInts = 1;
required uint32 interval = 2;
required uint32 duration = 3;
};
message Data {
required int64 time = 1;
required string netInt = 2;
optional double rstAvg = 3;
optional double rstMin = 4;
optional double rstMax = 5;
optional double rstClient = 6;
optional double errRate = 7;
optional double errRateMin = 8;
optional double errRateMax = 9;
optional double errRateClient = 10;
optional double reqRate = 11;
optional double reqRateMin = 12;
optional double reqRateMax = 13;
optional double reqRateClient = 14;
optional double connRate = 15;
optional double connRateMin = 16;
optional double connRateMax = 17;
repeated Freq client = 18;
repeated Freq req_path = 19;
repeated Freq req_method = 20;
repeated Freq req_type = 21;
repeated Freq rsp_status = 22;
optional double tpAvg = 23;
optional double tpMin = 24;
optional double tpMax = 25;
optional double tpRevAvg = 26;
optional double tpRevMin = 27;
optional double tpRevMax = 28;
};
message MetricMsg {
required string name = 1;
required string netInt = 2;
required uint32 netIntId = 3;
required string protocol = 4;
required uint32 protocolId = 5;
required int64 time = 6;
required int64 clientId = 7;
oneof values {
MetricAvgMsg metricAvg = 8;
MetricCumDistrMsg metricCumDistr = 9;
}
};
message MetricAvgMsg {
required double avg = 5;
required double min = 6;
required double max = 7;
}
message Freq {
required string name = 1;
required double freq = 2;
}
message MetricCumDistrMsg {
repeated Freq freqs = 1;
}
message Close {}