更新时间:2024-10-25 GMT+08:00
        
          
          
        
      
      
      
      
      
      
      
      
  
      
      
      
        
查询转储详情
参见初始化DIS客户端的操作初始化一个DIS客户端实例。
配置参数如下:
       1 2  | 
      
       streamname="dis-test1"#已存在的通道名 task_name="test_1" #查询该通道下的xx转储任务  | 
     
配置好以上参数后,执行describe_dump_task_sample.py文件默认调用describe_dump_task_test方法。
  返回信息如下:
  
   
    
     
      
   
  
 
        1 2  | 
       
        200 {'state': 'RUNNING', 'stream_name': 'dis-test1', 'create_time': 1537949648144, 'last_transfer_timestamp': 1538018072564, 'destination_type': 'OBS', 'obs_destination_description': {'obs_bucket_path': '002', 'deliver_time_interval': 30, 'retry_duration': 0, 'agency_name': 'all', 'partition_format': 'yyyy/MM/dd/HH/mm', 'destination_file_type': 'text', 'record_delimiter': '|', 'consumer_strategy': 'LATEST', 'file_prefix': ''}, 'task_name': 'test_1', 'partitions': [{'state': 'RUNNING', 'discard': 0, 'last_transfer_offset': 500, 'partitionId': 'shardId-0000000000', 'last_transfer_timestamp': 1538018072564}, {'state': 'RUNNING', 'discard': 0, 'last_transfer_offset': 500, 'partitionId': 'shardId-0000000001', 'last_transfer_timestamp': 1538018072564}]}  | 
      
   父主题: 使用SDK(Python)