github.com/v2fly/v2ray-core/v4@v4.45.2/app/stats/command/command.proto (about) 1 syntax = "proto3"; 2 3 package v2ray.core.app.stats.command; 4 option csharp_namespace = "V2Ray.Core.App.Stats.Command"; 5 option go_package = "github.com/v2fly/v2ray-core/v4/app/stats/command"; 6 option java_package = "com.v2ray.core.app.stats.command"; 7 option java_multiple_files = true; 8 9 message GetStatsRequest { 10 // Name of the stat counter. 11 string name = 1; 12 // Whether or not to reset the counter to fetching its value. 13 bool reset = 2; 14 } 15 16 message Stat { 17 string name = 1; 18 int64 value = 2; 19 } 20 21 message GetStatsResponse { 22 Stat stat = 1; 23 } 24 25 message QueryStatsRequest { 26 string pattern = 1; 27 bool reset = 2; 28 } 29 30 message QueryStatsResponse { 31 repeated Stat stat = 1; 32 } 33 34 message SysStatsRequest {} 35 36 message SysStatsResponse { 37 uint32 NumGoroutine = 1; 38 uint32 NumGC = 2; 39 uint64 Alloc = 3; 40 uint64 TotalAlloc = 4; 41 uint64 Sys = 5; 42 uint64 Mallocs = 6; 43 uint64 Frees = 7; 44 uint64 LiveObjects = 8; 45 uint64 PauseTotalNs = 9; 46 uint32 Uptime = 10; 47 } 48 49 service StatsService { 50 rpc GetStats(GetStatsRequest) returns (GetStatsResponse) {} 51 rpc QueryStats(QueryStatsRequest) returns (QueryStatsResponse) {} 52 rpc GetSysStats(SysStatsRequest) returns (SysStatsResponse) {} 53 } 54 55 message Config {}