Update stats RPC service definition.

pull/24435/head
Chengyuan Zhang 4 years ago
parent b498681b5a
commit 86aad0f707
  1. 14
      src/proto/grpc/testing/messages.proto
  2. 9
      src/proto/grpc/testing/test.proto

@ -213,16 +213,16 @@ message LoadBalancerStatsResponse {
map<string, RpcsByPeer> rpcs_by_method = 3;
}
// Request for retrieving a test client's real time stats.
message LoadBalancerRealTimeStatsRequest {}
// Request for retrieving a test client's accumulated stats.
message LoadBalancerAccumulatedStatsRequest {}
// Real-time stats for RPCs sent by a test client.
message LoadBalancerRealTimeStatsResponse {
// The real-time total number of RPCs issued.
// Accumulated stats for RPCs sent by a test client.
message LoadBalancerAccumulatedStatsResponse {
// The total number of RPCs have ever issued.
int32 num_rpcs_started = 1;
// The real-time total number of RPCs completed successfully for each peer.
// The total number of RPCs have ever completed successfully for each peer.
map<string, int32> num_rpcs_succeeded_by_peer = 2;
// The real-time total number of RPCs failed.
// The total number of RPCs have ever failed.
int32 num_rpcs_failed = 3;
}

@ -83,13 +83,10 @@ service LoadBalancerStatsService {
// Gets the backend distribution for RPCs sent by a test client.
rpc GetClientStats(LoadBalancerStatsRequest)
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(LoadBalancerRealTimeStatsRequest)
returns (LoadBalancerRealTimeStatsResponse) {}
// Gets the accumulated stats for RPCs sent by a test client.
rpc GetClientAccumulatedStats(LoadBalancerAccumulatedStatsRequest)
returns (LoadBalancerAccumulatedStatsResponse) {}
}
// A service to remotely control health status of an xDS test server.

Loading…
Cancel
Save