networkDiagnostic.proto 654 B

123456789101112131415161718192021222324252627282930
  1. syntax = "proto3";
  2. package networkdiagnostic;
  3. option go_package = "./networkdiagnostic";
  4. option java_multiple_files = true;
  5. option java_package = "io.grpc.networkdiagnostic";
  6. option java_outer_classname = "NetworkDiagnosticProto";
  7. service NetworkDiagnosticService {
  8. rpc NetworkLatencyProbe (NetworkLatencyProbeRequest) returns (NetworkLatencyProbeReply) {}
  9. }
  10. // request
  11. message NetworkLatencyProbeRequest {
  12. string domainName = 1;
  13. int32 execCount = 2;
  14. int32 interval = 3;
  15. }
  16. // response
  17. message NetworkLatencyProbeReply {
  18. double latency = 1;
  19. int32 packetsReceive = 2;
  20. int32 packetsSend = 3;
  21. string ipAddr = 4;
  22. string error = 5;
  23. }