diff options
author | ncteisen <ncteisen@gmail.com> | 2018-10-24 15:11:40 -0700 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2018-10-24 15:11:40 -0700 |
commit | 0d5db17da6a639068183828dc4ed6e292fc97cc3 (patch) | |
tree | 55d551ca2be118483be013699287d96e4d36fd38 /src/proto | |
parent | 2b54c93c652c912241e75d3abec02a1176cf03c7 (diff) |
Add GetServer to Channelz proto
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/grpc/channelz/channelz.proto | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/proto/grpc/channelz/channelz.proto b/src/proto/grpc/channelz/channelz.proto index d930dfcfb4..6202e5e817 100644 --- a/src/proto/grpc/channelz/channelz.proto +++ b/src/proto/grpc/channelz/channelz.proto @@ -424,6 +424,8 @@ service Channelz { rpc GetTopChannels(GetTopChannelsRequest) returns (GetTopChannelsResponse); // Gets all servers that exist in the process. rpc GetServers(GetServersRequest) returns (GetServersResponse); + // Returns a single Server, or else a NOT_FOUND code. + rpc GetServer(GetServerRequest) returns (GetServerResponse); // Gets all server sockets that exist in the process. rpc GetServerSockets(GetServerSocketsRequest) returns (GetServerSocketsResponse); // Returns a single Channel, or else a NOT_FOUND code. @@ -466,6 +468,17 @@ message GetServersResponse { bool end = 2; } +message GetServerRequest { + // server_id is the identifier of the specific server to get. + int64 server_id = 1; +} + +message GetServerResponse { + // The Server that corresponds to the requested server_id. This field + // should be set. + Server server = 1; +} + message GetServerSocketsRequest { int64 server_id = 1; // start_socket_id indicates that only sockets at or above this id should be |