2018-03-31 04:30:12 -04:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2018-07-10 17:40:58 -04:00
|
|
|
message QueryStatsRequest {
|
|
|
|
string pattern = 1;
|
|
|
|
bool reset = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message QueryStatsResponse {
|
|
|
|
repeated Stat stat = 1;
|
|
|
|
}
|
|
|
|
|
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) {}
|
2018-03-31 04:30:12 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
message Config {}
|