config.proto 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. syntax = "proto3";
  2. package v2ray.core.app.observatory;
  3. option csharp_namespace = "V2Ray.Core.App.Observatory";
  4. option go_package = "github.com/v2fly/v2ray-core/v4/app/observatory";
  5. option java_package = "com.v2ray.core.app.observatory";
  6. option java_multiple_files = true;
  7. message ObservationResult {
  8. repeated OutboundStatus status = 1;
  9. }
  10. message OutboundStatus{
  11. /* @Document Whether this outbound is usable
  12. @Restriction ReadOnlyForUser
  13. */
  14. bool alive = 1;
  15. /* @Document The time for probe request to finish.
  16. @Type time.ms
  17. @Restriction ReadOnlyForUser
  18. */
  19. int64 delay = 2;
  20. /* @Document The last error caused this outbound failed to relay probe request
  21. @Restriction NotMachineReadable
  22. */
  23. string last_error_reason = 3;
  24. /* @Document The outbound tag for this Server
  25. @Type id.outboundTag
  26. */
  27. string outbound_tag = 4;
  28. /* @Document The time this outbound is known to be alive
  29. @Type id.outboundTag
  30. */
  31. int64 last_seen_time = 5;
  32. /* @Document The time this outbound is tried
  33. @Type id.outboundTag
  34. */
  35. int64 last_try_time = 6;
  36. }
  37. message ProbeResult{
  38. /* @Document Whether this outbound is usable
  39. @Restriction ReadOnlyForUser
  40. */
  41. bool alive = 1;
  42. /* @Document The time for probe request to finish.
  43. @Type time.ms
  44. @Restriction ReadOnlyForUser
  45. */
  46. int64 delay = 2;
  47. /* @Document The error caused this outbound failed to relay probe request
  48. @Restriction NotMachineReadable
  49. */
  50. string last_error_reason = 3;
  51. }
  52. message Intensity{
  53. /* @Document The time interval for a probe request in ms.
  54. @Type time.ms
  55. */
  56. uint32 probe_interval = 1;
  57. }
  58. message Config {
  59. /* @Document The selectors for outbound under observation
  60. */
  61. repeated string subject_selector = 2;
  62. }