command.proto 808 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. syntax = "proto3";
  2. package v2ray.core.app.stats.command;
  3. option csharp_namespace = "V2Ray.Core.App.Stats.Command";
  4. option go_package = "command";
  5. option java_package = "com.v2ray.core.app.stats.command";
  6. option java_multiple_files = true;
  7. message GetStatsRequest {
  8. // Name of the stat counter.
  9. string name = 1;
  10. // Whether or not to reset the counter to fetching its value.
  11. bool reset = 2;
  12. }
  13. message Stat {
  14. string name = 1;
  15. int64 value = 2;
  16. }
  17. message GetStatsResponse {
  18. Stat stat = 1;
  19. }
  20. message QueryStatsRequest {
  21. string pattern = 1;
  22. bool reset = 2;
  23. }
  24. message QueryStatsResponse {
  25. repeated Stat stat = 1;
  26. }
  27. service StatsService {
  28. rpc GetStats(GetStatsRequest) returns (GetStatsResponse) {}
  29. rpc QueryStats(QueryStatsRequest) returns (QueryStatsResponse) {}
  30. }
  31. message Config {}