|
@@ -0,0 +1,30 @@
|
|
|
+syntax = "proto3";
|
|
|
+
|
|
|
+package networkdiagnostic;
|
|
|
+
|
|
|
+option go_package = "./networkdiagnostic";
|
|
|
+option java_multiple_files = true;
|
|
|
+option java_package = "io.grpc.networkdiagnostic";
|
|
|
+option java_outer_classname = "NetworkDiagnosticProto";
|
|
|
+
|
|
|
+service NetworkDiagnosticService {
|
|
|
+ rpc NetworkLatencyProbe (NetworkLatencyProbeRequest) returns (NetworkLatencyProbeReply) {}
|
|
|
+}
|
|
|
+
|
|
|
+// request
|
|
|
+message NetworkLatencyProbeRequest {
|
|
|
+ string domainName = 1;
|
|
|
+ int32 execCount = 2;
|
|
|
+ int32 interval = 3;
|
|
|
+}
|
|
|
+
|
|
|
+// response
|
|
|
+message NetworkLatencyProbeReply {
|
|
|
+ double latency = 1;
|
|
|
+ int32 packetsReceive = 2;
|
|
|
+ int32 packetsSend = 3;
|
|
|
+ string ipAddr = 4;
|
|
|
+ string error = 5;
|
|
|
+}
|
|
|
+
|
|
|
+
|