1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-27 20:46:51 -05:00
v2fly/app/stats/command/command.proto

59 lines
1.3 KiB
Protocol Buffer
Raw Normal View History

2018-03-31 04:30:12 -04:00
syntax = "proto3";
package v2ray.core.app.stats.command;
option csharp_namespace = "V2Ray.Core.App.Stats.Command";
2021-02-16 15:31:50 -05:00
option go_package = "github.com/v2fly/v2ray-core/v4/app/stats/command";
2018-03-31 04:30:12 -04:00
option java_package = "com.v2ray.core.app.stats.command";
option java_multiple_files = true;
message GetStatsRequest {
// Name of the stat counter.
string name = 1;
// Whether or not to reset the counter to fetching its value.
bool reset = 2;
}
message Stat {
string name = 1;
int64 value = 2;
}
message GetStatsResponse {
Stat stat = 1;
}
2018-07-10 17:40:58 -04:00
message QueryStatsRequest {
// Deprecated, use Patterns instead
2018-07-10 17:40:58 -04:00
string pattern = 1;
bool reset = 2;
repeated string patterns = 3;
bool regexp = 4;
2018-07-10 17:40:58 -04:00
}
message QueryStatsResponse {
repeated Stat stat = 1;
}
message SysStatsRequest {}
2019-07-08 02:12:17 -04:00
message SysStatsResponse {
uint32 NumGoroutine = 1;
uint32 NumGC = 2;
uint64 Alloc = 3;
uint64 TotalAlloc = 4;
uint64 Sys = 5;
uint64 Mallocs = 6;
uint64 Frees = 7;
uint64 LiveObjects = 8;
uint64 PauseTotalNs = 9;
uint32 Uptime = 10;
}
2018-03-31 04:30:12 -04:00
service StatsService {
rpc GetStats(GetStatsRequest) returns (GetStatsResponse) {}
2018-07-10 17:40:58 -04:00
rpc QueryStats(QueryStatsRequest) returns (QueryStatsResponse) {}
2019-07-08 02:12:17 -04:00
rpc GetSysStats(SysStatsRequest) returns (SysStatsResponse) {}
2018-03-31 04:30:12 -04:00
}
message Config {}