diff options
author | 2018-07-23 10:52:27 -0700 | |
---|---|---|
committer | 2018-07-23 10:52:27 -0700 | |
commit | 7b8be4d6fd0a3b7374d5a28bea1eff319c49fefe (patch) | |
tree | b058501d6776d69a115f6b3e29e2bdd335915ac8 /include/grpc/grpc.h | |
parent | ec1c112cc17cd1290a901ca606ac916422d3342c (diff) | |
parent | 53d2899374e74b4185a55e3fc26b64d0a02840a8 (diff) |
Merge branch 'master' into rq-threads
Diffstat (limited to 'include/grpc/grpc.h')
-rw-r--r-- | include/grpc/grpc.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h index bc3bc5fbbf..eb0251443c 100644 --- a/include/grpc/grpc.h +++ b/include/grpc/grpc.h @@ -458,6 +458,29 @@ GRPCAPI void grpc_resource_quota_set_max_threads( */ GRPCAPI const grpc_arg_pointer_vtable* grpc_resource_quota_arg_vtable(void); +/************* CHANNELZ API *************/ +/** Channelz is under active development. The following APIs will see some + churn as the feature is implemented. This comment will be removed once + channelz is officially supported, and these APIs become stable. For now + you may track the progress by following this github issue: + https://github.com/grpc/grpc/issues/15340 + + the following APIs return allocated JSON strings that match the response + objects from the channelz proto, found here: + https://github.com/grpc/grpc/blob/master/src/proto/grpc/channelz/channelz.proto. + + For easy conversion to protobuf, The JSON is formatted according to: + https://developers.google.com/protocol-buffers/docs/proto3#json. */ + +/* Gets all root channels (i.e. channels the application has directly + created). This does not include subchannels nor non-top level channels. + The returned string is allocated and must be freed by the application. */ +GRPCAPI char* grpc_channelz_get_top_channels(intptr_t start_channel_id); + +/* Returns a single Channel, or else a NOT_FOUND code. The returned string + is allocated and must be freed by the application. */ +GRPCAPI char* grpc_channelz_get_channel(intptr_t channel_id); + #ifdef __cplusplus } #endif |