Add message and service definition for querying test client's real-time stats.

pull/24435/head
Chengyuan Zhang 4 years ago
parent 09ace01cc1
commit 4565d8fb64
  1. 10
      src/proto/grpc/testing/messages.proto
  2. 7
      src/proto/grpc/testing/test.proto

@ -212,3 +212,13 @@ message LoadBalancerStatsResponse {
int32 num_failures = 2;
map<string, RpcsByPeer> rpcs_by_method = 3;
}
// Real-time stats for RPCs sent by a test client.
message LoadBalancerRealTimeStatsResponse {
// The real-time total number of RPCs issued.
int32 num_rpcs_started = 1;
// The real-time total number of RPCs completed successfully for each peer.
map<string, int32> num_rpcs_succeeded_by_peer = 2;
// The real-time total number of RPCs failed.
int32 num_rpcs_failed = 3;
}

@ -85,6 +85,13 @@ service LoadBalancerStatsService {
returns (LoadBalancerStatsResponse) {}
}
// A service used to obtain real-time stats for verifying LB behavior.
service LoadBalancerRealTimeStatsService {
// Gets the real-time stats for RPCs sent by a test client.
rpc GetClientRealTimeStats(grpc.testing.Empty)
returns (LoadBalancerRealTimeStatsResponse) {}
}
// A service to remotely control health status of an xDS test server.
service XdsUpdateHealthService {
rpc SetServing(grpc.testing.Empty) returns (grpc.testing.Empty);

Loading…
Cancel
Save