123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564 |
- syntax = "proto3";
- package grpc.channelz.v1;
- import "google/protobuf/any.proto";
- import "google/protobuf/duration.proto";
- import "google/protobuf/timestamp.proto";
- import "google/protobuf/wrappers.proto";
- option go_package = "google.golang.org/grpc/channelz/grpc_channelz_v1";
- option java_multiple_files = true;
- option java_package = "io.grpc.channelz.v1";
- option java_outer_classname = "ChannelzProto";
- message Channel {
-
- ChannelRef ref = 1;
-
- ChannelData data = 2;
-
-
-
-
- repeated ChannelRef channel_ref = 3;
-
-
-
-
- repeated SubchannelRef subchannel_ref = 4;
-
- repeated SocketRef socket_ref = 5;
- }
- message Subchannel {
-
- SubchannelRef ref = 1;
-
- ChannelData data = 2;
-
-
-
-
- repeated ChannelRef channel_ref = 3;
-
-
-
-
- repeated SubchannelRef subchannel_ref = 4;
-
- repeated SocketRef socket_ref = 5;
- }
- message ChannelConnectivityState {
- enum State {
- UNKNOWN = 0;
- IDLE = 1;
- CONNECTING = 2;
- READY = 3;
- TRANSIENT_FAILURE = 4;
- SHUTDOWN = 5;
- }
- State state = 1;
- }
- message ChannelData {
-
-
- ChannelConnectivityState state = 1;
-
- string target = 2;
-
- ChannelTrace trace = 3;
-
- int64 calls_started = 4;
-
- int64 calls_succeeded = 5;
-
- int64 calls_failed = 6;
-
- google.protobuf.Timestamp last_call_started_timestamp = 7;
- }
- message ChannelTraceEvent {
-
- string description = 1;
-
- enum Severity {
- CT_UNKNOWN = 0;
- CT_INFO = 1;
- CT_WARNING = 2;
- CT_ERROR = 3;
- }
-
- Severity severity = 2;
-
- google.protobuf.Timestamp timestamp = 3;
-
-
-
-
- oneof child_ref {
- ChannelRef channel_ref = 4;
- SubchannelRef subchannel_ref = 5;
- }
- }
- message ChannelTrace {
-
-
-
- int64 num_events_logged = 1;
-
- google.protobuf.Timestamp creation_timestamp = 2;
-
- repeated ChannelTraceEvent events = 3;
- }
- message ChannelRef {
-
- int64 channel_id = 1;
-
- string name = 2;
-
- reserved 3, 4, 5, 6, 7, 8;
- }
- message SubchannelRef {
-
- int64 subchannel_id = 7;
-
- string name = 8;
-
- reserved 1, 2, 3, 4, 5, 6;
- }
- message SocketRef {
-
- int64 socket_id = 3;
-
- string name = 4;
-
- reserved 1, 2, 5, 6, 7, 8;
- }
- message ServerRef {
-
- int64 server_id = 5;
-
- string name = 6;
-
- reserved 1, 2, 3, 4, 7, 8;
- }
- message Server {
-
- ServerRef ref = 1;
-
- ServerData data = 2;
-
-
- repeated SocketRef listen_socket = 3;
- }
- message ServerData {
-
- ChannelTrace trace = 1;
-
- int64 calls_started = 2;
-
- int64 calls_succeeded = 3;
-
- int64 calls_failed = 4;
-
- google.protobuf.Timestamp last_call_started_timestamp = 5;
- }
- message Socket {
-
- SocketRef ref = 1;
-
- SocketData data = 2;
-
- Address local = 3;
-
- Address remote = 4;
-
-
- Security security = 5;
-
-
- string remote_name = 6;
- }
- message SocketData {
-
- int64 streams_started = 1;
-
-
-
- int64 streams_succeeded = 2;
-
-
-
- int64 streams_failed = 3;
-
- int64 messages_sent = 4;
-
- int64 messages_received = 5;
-
-
- int64 keep_alives_sent = 6;
-
-
- google.protobuf.Timestamp last_local_stream_created_timestamp = 7;
-
-
- google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;
-
- google.protobuf.Timestamp last_message_sent_timestamp = 9;
-
- google.protobuf.Timestamp last_message_received_timestamp = 10;
-
-
-
- google.protobuf.Int64Value local_flow_control_window = 11;
-
-
-
- google.protobuf.Int64Value remote_flow_control_window = 12;
-
-
- repeated SocketOption option = 13;
- }
- message Address {
- message TcpIpAddress {
-
-
- bytes ip_address = 1;
-
- int32 port = 2;
- }
-
- message UdsAddress {
- string filename = 1;
- }
-
- message OtherAddress {
-
- string name = 1;
-
- google.protobuf.Any value = 2;
- }
- oneof address {
- TcpIpAddress tcpip_address = 1;
- UdsAddress uds_address = 2;
- OtherAddress other_address = 3;
- }
- }
- message Security {
- message Tls {
- oneof cipher_suite {
-
-
- string standard_name = 1;
-
-
- string other_name = 2;
- }
-
- bytes local_certificate = 3;
-
- bytes remote_certificate = 4;
- }
- message OtherSecurity {
-
- string name = 1;
-
- google.protobuf.Any value = 2;
- }
- oneof model {
- Tls tls = 1;
- OtherSecurity other = 2;
- }
- }
- message SocketOption {
-
-
- string name = 1;
-
-
- string value = 2;
-
-
- google.protobuf.Any additional = 3;
- }
- message SocketOptionTimeout {
- google.protobuf.Duration duration = 1;
- }
- message SocketOptionLinger {
-
- bool active = 1;
-
- google.protobuf.Duration duration = 2;
- }
- message SocketOptionTcpInfo {
- uint32 tcpi_state = 1;
- uint32 tcpi_ca_state = 2;
- uint32 tcpi_retransmits = 3;
- uint32 tcpi_probes = 4;
- uint32 tcpi_backoff = 5;
- uint32 tcpi_options = 6;
- uint32 tcpi_snd_wscale = 7;
- uint32 tcpi_rcv_wscale = 8;
- uint32 tcpi_rto = 9;
- uint32 tcpi_ato = 10;
- uint32 tcpi_snd_mss = 11;
- uint32 tcpi_rcv_mss = 12;
- uint32 tcpi_unacked = 13;
- uint32 tcpi_sacked = 14;
- uint32 tcpi_lost = 15;
- uint32 tcpi_retrans = 16;
- uint32 tcpi_fackets = 17;
- uint32 tcpi_last_data_sent = 18;
- uint32 tcpi_last_ack_sent = 19;
- uint32 tcpi_last_data_recv = 20;
- uint32 tcpi_last_ack_recv = 21;
- uint32 tcpi_pmtu = 22;
- uint32 tcpi_rcv_ssthresh = 23;
- uint32 tcpi_rtt = 24;
- uint32 tcpi_rttvar = 25;
- uint32 tcpi_snd_ssthresh = 26;
- uint32 tcpi_snd_cwnd = 27;
- uint32 tcpi_advmss = 28;
- uint32 tcpi_reordering = 29;
- }
- service Channelz {
-
-
- rpc GetTopChannels(GetTopChannelsRequest) returns (GetTopChannelsResponse);
-
- rpc GetServers(GetServersRequest) returns (GetServersResponse);
-
- rpc GetServer(GetServerRequest) returns (GetServerResponse);
-
- rpc GetServerSockets(GetServerSocketsRequest) returns (GetServerSocketsResponse);
-
- rpc GetChannel(GetChannelRequest) returns (GetChannelResponse);
-
- rpc GetSubchannel(GetSubchannelRequest) returns (GetSubchannelResponse);
-
- rpc GetSocket(GetSocketRequest) returns (GetSocketResponse);
- }
- message GetTopChannelsRequest {
-
-
-
-
-
- int64 start_channel_id = 1;
-
-
-
- int64 max_results = 2;
- }
- message GetTopChannelsResponse {
-
-
-
- repeated Channel channel = 1;
-
-
-
- bool end = 2;
- }
- message GetServersRequest {
-
-
-
-
-
- int64 start_server_id = 1;
-
-
-
- int64 max_results = 2;
- }
- message GetServersResponse {
-
-
-
- repeated Server server = 1;
-
-
-
- bool end = 2;
- }
- message GetServerRequest {
-
- int64 server_id = 1;
- }
- message GetServerResponse {
-
-
- Server server = 1;
- }
- message GetServerSocketsRequest {
- int64 server_id = 1;
-
-
-
-
-
- int64 start_socket_id = 2;
-
-
-
- int64 max_results = 3;
- }
- message GetServerSocketsResponse {
-
-
-
- repeated SocketRef socket_ref = 1;
-
-
-
- bool end = 2;
- }
- message GetChannelRequest {
-
- int64 channel_id = 1;
- }
- message GetChannelResponse {
-
-
- Channel channel = 1;
- }
- message GetSubchannelRequest {
-
- int64 subchannel_id = 1;
- }
- message GetSubchannelResponse {
-
-
- Subchannel subchannel = 1;
- }
- message GetSocketRequest {
-
- int64 socket_id = 1;
-
-
-
- bool summary = 2;
- }
- message GetSocketResponse {
-
-
- Socket socket = 1;
- }
|