Skip to content

Commit b2da006

Browse files
authored
Add GetServer (#43)
1 parent ed98917 commit b2da006

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

grpc/channelz/v1/channelz.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ service Channelz {
425425
rpc GetTopChannels(GetTopChannelsRequest) returns (GetTopChannelsResponse);
426426
// Gets all servers that exist in the process.
427427
rpc GetServers(GetServersRequest) returns (GetServersResponse);
428+
// Returns a single Server, or else a NOT_FOUND code.
429+
rpc GetServer(GetServerRequest) returns (GetServerResponse);
428430
// Gets all server sockets that exist in the process.
429431
rpc GetServerSockets(GetServerSocketsRequest) returns (GetServerSocketsResponse);
430432
// Returns a single Channel, or else a NOT_FOUND code.
@@ -485,6 +487,17 @@ message GetServersResponse {
485487
bool end = 2;
486488
}
487489

490+
message GetServerRequest {
491+
// server_id is the identifier of the specific server to get.
492+
int64 server_id = 1;
493+
}
494+
495+
message GetServerResponse {
496+
// The Server that corresponds to the requested server_id. This field
497+
// should be set.
498+
Server server = 1;
499+
}
500+
488501
message GetServerSocketsRequest {
489502
int64 server_id = 1;
490503
// start_socket_id indicates that only sockets at or above this id should be

0 commit comments

Comments
 (0)