config.proto 990 B

1234567891011121314151617181920212223242526272829303132
  1. syntax = "proto3";
  2. package xray.core.app.observatory.burst;
  3. option csharp_namespace = "Xray.App.Observatory.Burst";
  4. option go_package = "github.com/xtls/xray-core/app/observatory/burst";
  5. option java_package = "com.xray.app.observatory.burst";
  6. option java_multiple_files = true;
  7. message Config {
  8. /* @Document The selectors for outbound under observation
  9. */
  10. repeated string subject_selector = 2;
  11. HealthPingConfig ping_config = 3;
  12. }
  13. message HealthPingConfig {
  14. // destination url, need 204 for success return
  15. // default https://connectivitycheck.gstatic.com/generate_204
  16. string destination = 1;
  17. // connectivity check url
  18. string connectivity = 2;
  19. // health check interval, int64 values of time.Duration
  20. int64 interval = 3;
  21. // sampling count is the amount of recent ping results which are kept for calculation
  22. int32 samplingCount = 4;
  23. // ping timeout, int64 values of time.Duration
  24. int64 timeout = 5;
  25. // http method to make request
  26. string httpMethod = 6;
  27. }