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 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 gc = 2; int64 uptime = 3; Tps tps = 4; // optional Mspt mspt = 5; // optional Ping ping = 6; // 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 { RollingAverageValues last1m = 1; RollingAverageValues last5m = 2; } message Ping { RollingAverageValues last15m = 1; } message RollingAverageValues { 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; } }