更新时间:2024-10-25 GMT+08:00

查询通道详情

参见初始化DIS客户端的操作初始化一个DIS客户端实例。

配置参数如下:

1
streamname="dis-test1" #已存在的通道名

配置好以上参数后,执行describeStream_sample.py文件默认调用describeStream_test方法。

返回信息如下:
1
2
200
{"status": "RUNNING", "stream_name": "dis-test1", "data_type": "BLOB", "has_more_partitions": false, "stream_type": "COMMON", "stream_id": "L84hxfES223eVrFyxiE", "retention_period": 168, "create_time": 1532423353637, "last_modified_time": 1532423354625, "partitions": [{"status": "ACTIVE", "hash_range": "[0 : 9223372036854775807]", "sequence_number_range": "[0 : 10]", "partition_id": "shardId-0000000000"}]}