Skip to content

Commit f9af5e1

Browse files
authored
Add 'summary' field to GetSocketRequest (#42)
If set, only return a high level summary. Some expensive fields may be omitted.
1 parent b2da006 commit f9af5e1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

grpc/channelz/v1/channelz.proto

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ message SocketData {
289289
// include stream level or TCP level flow control info.
290290
google.protobuf.Int64Value remote_flow_control_window = 12;
291291

292-
// Socket options set on this socket. May be absent.
292+
// Socket options set on this socket. May be absent if 'summary' is set
293+
// on GetSocketRequest.
293294
repeated SocketOption option = 13;
294295
}
295296

@@ -549,6 +550,11 @@ message GetSubchannelResponse {
549550
message GetSocketRequest {
550551
// socket_id is the identifier of the specific socket to get.
551552
int64 socket_id = 1;
553+
554+
// If true, the response will contain only high level information
555+
// that is inexpensive to obtain. Fields thay may be omitted are
556+
// documented.
557+
bool summary = 2;
552558
}
553559

554560
message GetSocketResponse {

0 commit comments

Comments
 (0)