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