Qv2ray/tools/v2ray_api_commands.proto
Leroy.H.Y 622389bfd0 Added connection statistics. (#84)
* [add] Added gRPC support, however this will make all CI fail.

* [add] Add full support for up/download speed.

* [Trigger-CI]

* [CI] add gRPC for travis linux

* [CI] fixed CI for linux

* [CI] Added ci script for Windows

* APPV

* [Fixed] Fixed Windows CI

Signed-off-by: Leroy.H.Y <lhy20010403@hotmail.com>

* Update .appveyor.yml

* Update .appveyor.yml

* Update .travis.yml

* Update .travis.yml

* Update grpc_gen.bat

* [Trigger-CI]

* Update .appveyor.yml

* Signed-off-by: Leroy.H.Y <lhy20010403@hotmail.com>

* Update grpc_gen.sh

* [macOS] Added macOS gRPC

* [macOS] Added macOS gRPC

* Update .travis.yml

Former-commit-id: b2e54a7ac2
2019-09-30 10:08:41 +08:00

57 lines
1.1 KiB
Protocol Buffer

syntax = "proto3";
package v2ray.core.app.stats.command;
option csharp_namespace = "V2Ray.Core.App.Stats.Command";
option go_package = "command";
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;
}
message QueryStatsRequest {
string pattern = 1;
bool reset = 2;
}
message QueryStatsResponse {
repeated Stat stat = 1;
}
message SysStatsRequest {
}
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;
}
service StatsService {
rpc GetStats(GetStatsRequest) returns (GetStatsResponse) {}
rpc QueryStats(QueryStatsRequest) returns (QueryStatsResponse) {}
rpc GetSysStats(SysStatsRequest) returns (SysStatsResponse) {}
}
message Config {}