blob: ae04cd753f2e8ce116bbc5869731af4b95a5e705 (
plain)
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
|
syntax = "proto3";
package spark;
option java_package = "me.lucko.spark.proto";
option java_outer_classname = "SparkProtos";
message PlatformMetadata {
Type type = 1;
string name = 2;
string version = 3;
string minecraft_version = 4; // optional
int32 spark_version = 7;
// replaced
reserved 5, 6;
reserved "n_cpus", "heap_usage";
enum Type {
SERVER = 0;
CLIENT = 1;
PROXY = 2;
}
}
message SystemStatistics {
Cpu cpu = 1;
Memory memory = 2;
map<string, Gc> gc = 3;
Disk disk = 4;
Os os = 5;
Java java = 6;
int64 uptime = 7;
message Cpu {
int32 threads = 1;
Usage process_usage = 2;
Usage system_usage = 3;
string model_name = 4; // optional
message Usage {
double last1m = 1;
double last15m = 2;
}
}
message Memory {
MemoryPool physical = 1;
MemoryPool swap = 2;
message MemoryPool {
int64 used = 1;
int64 total = 2;
}
}
message Gc {
int64 total = 1;
double avg_time = 2;
double avg_frequency = 3;
}
message Disk {
int64 used = 1;
int64 total = 2;
}
message Os {
string arch = 1;
string name = 2;
string version = 3;
}
message Java {
string vendor = 1;
string version = 2;
string vendor_version = 3;
string vm_args = 4;
}
}
message PlatformStatistics {
Memory memory = 1;
map<string, Gc> gc = 2;
int64 uptime = 3;
Tps tps = 4; // optional
Mspt mspt = 5; // optional
message Memory {
MemoryPool heap = 1;
message MemoryPool {
int64 used = 1;
int64 total = 2;
}
}
message Gc {
int64 total = 1;
double avg_time = 2;
double avg_frequency = 3;
}
message Tps {
double last1m = 1;
double last5m = 2;
double last15m = 3;
}
message Mspt {
Values last1m = 1;
Values last5m = 2;
message Values {
double mean = 1;
double max = 2;
double min = 3;
double median = 4;
double percentile95 = 5;
}
}
}
message CommandSenderMetadata {
Type type = 1;
string name = 2;
string unique_id = 3;
enum Type {
OTHER = 0;
PLAYER = 1;
}
}
|