config.proto 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. syntax = "proto3";
  2. package v2ray.core.app.observatory.burst;
  3. option csharp_namespace = "V2Ray.Core.App.Observatory.Burst";
  4. option go_package = "github.com/v2fly/v2ray-core/v5/app/observatory/burst";
  5. option java_package = "com.v2ray.core.app.observatory.burst";
  6. option java_multiple_files = true;
  7. import "common/protoext/extensions.proto";
  8. message Config {
  9. option (v2ray.core.common.protoext.message_opt).type = "service";
  10. option (v2ray.core.common.protoext.message_opt).short_name = "burstObservatory";
  11. /* @Document The selectors for outbound under observation
  12. */
  13. repeated string subject_selector = 2;
  14. HealthPingConfig ping_config = 3;
  15. }
  16. message HealthPingConfig {
  17. // destination url, need 204 for success return
  18. // default https://connectivitycheck.gstatic.com/generate_204
  19. string destination = 1;
  20. // connectivity check url
  21. string connectivity = 2;
  22. // health check interval, int64 values of time.Duration
  23. int64 interval = 3;
  24. // sampling count is the amount of recent ping results which are kept for calculation
  25. int32 samplingCount = 4;
  26. // ping timeout, int64 values of time.Duration
  27. int64 timeout = 5;
  28. }