2021-06-18 12:39:13 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package v2ray.core.app.observatory.burst;
|
|
|
|
option csharp_namespace = "V2Ray.Core.App.Observatory.Burst";
|
2022-01-02 10:16:23 -05:00
|
|
|
option go_package = "github.com/v2fly/v2ray-core/v5/app/observatory/burst";
|
2021-06-18 12:39:13 -04:00
|
|
|
option java_package = "com.v2ray.core.app.observatory.burst";
|
|
|
|
option java_multiple_files = true;
|
|
|
|
|
2021-09-07 08:19:31 -04:00
|
|
|
import "common/protoext/extensions.proto";
|
|
|
|
|
2021-06-18 12:39:13 -04:00
|
|
|
message Config {
|
2021-09-07 08:19:31 -04:00
|
|
|
option (v2ray.core.common.protoext.message_opt).type = "service";
|
|
|
|
option (v2ray.core.common.protoext.message_opt).short_name = "burstObservatory";
|
|
|
|
|
2021-06-18 12:39:13 -04:00
|
|
|
/* @Document The selectors for outbound under observation
|
|
|
|
*/
|
|
|
|
repeated string subject_selector = 2;
|
|
|
|
|
|
|
|
HealthPingConfig ping_config = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message HealthPingConfig {
|
|
|
|
// destination url, need 204 for success return
|
2022-09-19 04:03:43 -04:00
|
|
|
// default https://connectivitycheck.gstatic.com/generate_204
|
2021-06-18 12:39:13 -04:00
|
|
|
string destination = 1;
|
|
|
|
// connectivity check url
|
|
|
|
string connectivity = 2;
|
|
|
|
// health check interval, int64 values of time.Duration
|
|
|
|
int64 interval = 3;
|
|
|
|
// sampling count is the amount of recent ping results which are kept for calculation
|
|
|
|
int32 samplingCount = 4;
|
|
|
|
// ping timeout, int64 values of time.Duration
|
|
|
|
int64 timeout = 5;
|
2022-09-19 04:03:43 -04:00
|
|
|
}
|