tencentcloud-sdk-python-ckafka 3.0.888__tar.gz → 3.0.895__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (14) hide show
  1. {tencentcloud-sdk-python-ckafka-3.0.888 → tencentcloud-sdk-python-ckafka-3.0.895}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-ckafka-3.0.888 → tencentcloud-sdk-python-ckafka-3.0.895}/tencentcloud/__init__.py +1 -1
  3. {tencentcloud-sdk-python-ckafka-3.0.888 → tencentcloud-sdk-python-ckafka-3.0.895}/tencentcloud/ckafka/v20190819/ckafka_client.py +46 -0
  4. {tencentcloud-sdk-python-ckafka-3.0.888 → tencentcloud-sdk-python-ckafka-3.0.895}/tencentcloud/ckafka/v20190819/errorcodes.py +3 -0
  5. {tencentcloud-sdk-python-ckafka-3.0.888 → tencentcloud-sdk-python-ckafka-3.0.895}/tencentcloud/ckafka/v20190819/models.py +308 -0
  6. {tencentcloud-sdk-python-ckafka-3.0.888 → tencentcloud-sdk-python-ckafka-3.0.895}/tencentcloud_sdk_python_ckafka.egg-info/PKG-INFO +1 -1
  7. {tencentcloud-sdk-python-ckafka-3.0.888 → tencentcloud-sdk-python-ckafka-3.0.895}/README.rst +0 -0
  8. {tencentcloud-sdk-python-ckafka-3.0.888 → tencentcloud-sdk-python-ckafka-3.0.895}/setup.cfg +0 -0
  9. {tencentcloud-sdk-python-ckafka-3.0.888 → tencentcloud-sdk-python-ckafka-3.0.895}/setup.py +0 -0
  10. {tencentcloud-sdk-python-ckafka-3.0.888 → tencentcloud-sdk-python-ckafka-3.0.895}/tencentcloud/ckafka/__init__.py +0 -0
  11. {tencentcloud-sdk-python-ckafka-3.0.888 → tencentcloud-sdk-python-ckafka-3.0.895}/tencentcloud/ckafka/v20190819/__init__.py +0 -0
  12. {tencentcloud-sdk-python-ckafka-3.0.888 → tencentcloud-sdk-python-ckafka-3.0.895}/tencentcloud_sdk_python_ckafka.egg-info/SOURCES.txt +0 -0
  13. {tencentcloud-sdk-python-ckafka-3.0.888 → tencentcloud-sdk-python-ckafka-3.0.895}/tencentcloud_sdk_python_ckafka.egg-info/dependency_links.txt +0 -0
  14. {tencentcloud-sdk-python-ckafka-3.0.888 → tencentcloud-sdk-python-ckafka-3.0.895}/tencentcloud_sdk_python_ckafka.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-ckafka
3
- Version: 3.0.888
3
+ Version: 3.0.895
4
4
  Summary: Tencent Cloud Ckafka SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.888'
17
+ __version__ = '3.0.895'
@@ -1245,6 +1245,29 @@ class CkafkaClient(AbstractClient):
1245
1245
  raise TencentCloudSDKException(e.message, e.message)
1246
1246
 
1247
1247
 
1248
+ def DescribeTaskStatus(self, request):
1249
+ """查询任务状态
1250
+
1251
+ :param request: Request instance for DescribeTaskStatus.
1252
+ :type request: :class:`tencentcloud.ckafka.v20190819.models.DescribeTaskStatusRequest`
1253
+ :rtype: :class:`tencentcloud.ckafka.v20190819.models.DescribeTaskStatusResponse`
1254
+
1255
+ """
1256
+ try:
1257
+ params = request._serialize()
1258
+ headers = request.headers
1259
+ body = self.call("DescribeTaskStatus", params, headers=headers)
1260
+ response = json.loads(body)
1261
+ model = models.DescribeTaskStatusResponse()
1262
+ model._deserialize(response["Response"])
1263
+ return model
1264
+ except Exception as e:
1265
+ if isinstance(e, TencentCloudSDKException):
1266
+ raise
1267
+ else:
1268
+ raise TencentCloudSDKException(e.message, e.message)
1269
+
1270
+
1248
1271
  def DescribeTopic(self, request):
1249
1272
  """接口请求域名:https://ckafka.tencentcloudapi.com
1250
1273
  本接口(DescribeTopic)用于在用户获取消息队列 CKafka 实例的主题列表
@@ -1315,6 +1338,29 @@ class CkafkaClient(AbstractClient):
1315
1338
  raise TencentCloudSDKException(e.message, e.message)
1316
1339
 
1317
1340
 
1341
+ def DescribeTopicFlowRanking(self, request):
1342
+ """获取Topic流量排行,消费者流量排行
1343
+
1344
+ :param request: Request instance for DescribeTopicFlowRanking.
1345
+ :type request: :class:`tencentcloud.ckafka.v20190819.models.DescribeTopicFlowRankingRequest`
1346
+ :rtype: :class:`tencentcloud.ckafka.v20190819.models.DescribeTopicFlowRankingResponse`
1347
+
1348
+ """
1349
+ try:
1350
+ params = request._serialize()
1351
+ headers = request.headers
1352
+ body = self.call("DescribeTopicFlowRanking", params, headers=headers)
1353
+ response = json.loads(body)
1354
+ model = models.DescribeTopicFlowRankingResponse()
1355
+ model._deserialize(response["Response"])
1356
+ return model
1357
+ except Exception as e:
1358
+ if isinstance(e, TencentCloudSDKException):
1359
+ raise
1360
+ else:
1361
+ raise TencentCloudSDKException(e.message, e.message)
1362
+
1363
+
1318
1364
  def DescribeTopicProduceConnection(self, request):
1319
1365
  """查询topic 生产端连接信息
1320
1366
 
@@ -92,6 +92,9 @@ RESOURCENOTFOUND = 'ResourceNotFound'
92
92
  # 资源不可用。
93
93
  RESOURCEUNAVAILABLE = 'ResourceUnavailable'
94
94
 
95
+ # Broker 磁盘资源异常
96
+ RESOURCEUNAVAILABLE_KAFKASTORAGEERROR = 'ResourceUnavailable.KafkaStorageError'
97
+
95
98
  # 未授权操作。
96
99
  UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
97
100
 
@@ -1452,6 +1452,34 @@ class ConsumerGroupResponse(AbstractModel):
1452
1452
 
1453
1453
 
1454
1454
 
1455
+ class ConsumerGroupSpeed(AbstractModel):
1456
+ """消费者组消费速度排行
1457
+
1458
+ """
1459
+
1460
+ def __init__(self):
1461
+ r"""
1462
+ :param ConsumerGroupName: 消费者组名称
1463
+ :type ConsumerGroupName: str
1464
+ :param Speed: 消费速度 Count/Minute
1465
+ :type Speed: int
1466
+ """
1467
+ self.ConsumerGroupName = None
1468
+ self.Speed = None
1469
+
1470
+
1471
+ def _deserialize(self, params):
1472
+ self.ConsumerGroupName = params.get("ConsumerGroupName")
1473
+ self.Speed = params.get("Speed")
1474
+ memeber_set = set(params.keys())
1475
+ for name, value in vars(self).items():
1476
+ if name in memeber_set:
1477
+ memeber_set.remove(name)
1478
+ if len(memeber_set) > 0:
1479
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1480
+
1481
+
1482
+
1455
1483
  class ConsumerGroupTopic(AbstractModel):
1456
1484
  """消费组主题对象
1457
1485
 
@@ -5793,6 +5821,53 @@ class DescribeRouteResponse(AbstractModel):
5793
5821
  self.RequestId = params.get("RequestId")
5794
5822
 
5795
5823
 
5824
+ class DescribeTaskStatusRequest(AbstractModel):
5825
+ """DescribeTaskStatus请求参数结构体
5826
+
5827
+ """
5828
+
5829
+ def __init__(self):
5830
+ r"""
5831
+ :param FlowId: 任务唯一标记
5832
+ :type FlowId: int
5833
+ """
5834
+ self.FlowId = None
5835
+
5836
+
5837
+ def _deserialize(self, params):
5838
+ self.FlowId = params.get("FlowId")
5839
+ memeber_set = set(params.keys())
5840
+ for name, value in vars(self).items():
5841
+ if name in memeber_set:
5842
+ memeber_set.remove(name)
5843
+ if len(memeber_set) > 0:
5844
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5845
+
5846
+
5847
+
5848
+ class DescribeTaskStatusResponse(AbstractModel):
5849
+ """DescribeTaskStatus返回参数结构体
5850
+
5851
+ """
5852
+
5853
+ def __init__(self):
5854
+ r"""
5855
+ :param Result: 返回结果
5856
+ :type Result: :class:`tencentcloud.ckafka.v20190819.models.TaskStatusResponse`
5857
+ :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5858
+ :type RequestId: str
5859
+ """
5860
+ self.Result = None
5861
+ self.RequestId = None
5862
+
5863
+
5864
+ def _deserialize(self, params):
5865
+ if params.get("Result") is not None:
5866
+ self.Result = TaskStatusResponse()
5867
+ self.Result._deserialize(params.get("Result"))
5868
+ self.RequestId = params.get("RequestId")
5869
+
5870
+
5796
5871
  class DescribeTopicAttributesRequest(AbstractModel):
5797
5872
  """DescribeTopicAttributes请求参数结构体
5798
5873
 
@@ -5907,6 +5982,65 @@ class DescribeTopicDetailResponse(AbstractModel):
5907
5982
  self.RequestId = params.get("RequestId")
5908
5983
 
5909
5984
 
5985
+ class DescribeTopicFlowRankingRequest(AbstractModel):
5986
+ """DescribeTopicFlowRanking请求参数结构体
5987
+
5988
+ """
5989
+
5990
+ def __init__(self):
5991
+ r"""
5992
+ :param InstanceId: 实例ID
5993
+ :type InstanceId: str
5994
+ :param RankingType: 排行类别(PRO-Topic生产流量/CON-Topic消费流量)
5995
+ :type RankingType: str
5996
+ :param BeginDate: 排行起始日期
5997
+ :type BeginDate: str
5998
+ :param EndDate: 排行结束日期
5999
+ :type EndDate: str
6000
+ """
6001
+ self.InstanceId = None
6002
+ self.RankingType = None
6003
+ self.BeginDate = None
6004
+ self.EndDate = None
6005
+
6006
+
6007
+ def _deserialize(self, params):
6008
+ self.InstanceId = params.get("InstanceId")
6009
+ self.RankingType = params.get("RankingType")
6010
+ self.BeginDate = params.get("BeginDate")
6011
+ self.EndDate = params.get("EndDate")
6012
+ memeber_set = set(params.keys())
6013
+ for name, value in vars(self).items():
6014
+ if name in memeber_set:
6015
+ memeber_set.remove(name)
6016
+ if len(memeber_set) > 0:
6017
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
6018
+
6019
+
6020
+
6021
+ class DescribeTopicFlowRankingResponse(AbstractModel):
6022
+ """DescribeTopicFlowRanking返回参数结构体
6023
+
6024
+ """
6025
+
6026
+ def __init__(self):
6027
+ r"""
6028
+ :param Result: 流量排行
6029
+ :type Result: :class:`tencentcloud.ckafka.v20190819.models.TopicFlowRankingResult`
6030
+ :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6031
+ :type RequestId: str
6032
+ """
6033
+ self.Result = None
6034
+ self.RequestId = None
6035
+
6036
+
6037
+ def _deserialize(self, params):
6038
+ if params.get("Result") is not None:
6039
+ self.Result = TopicFlowRankingResult()
6040
+ self.Result._deserialize(params.get("Result"))
6041
+ self.RequestId = params.get("RequestId")
6042
+
6043
+
5910
6044
  class DescribeTopicProduceConnectionRequest(AbstractModel):
5911
6045
  """DescribeTopicProduceConnection请求参数结构体
5912
6046
 
@@ -11435,6 +11569,38 @@ class Tag(AbstractModel):
11435
11569
 
11436
11570
 
11437
11571
 
11572
+ class TaskStatusResponse(AbstractModel):
11573
+ """任务状态返回对象
11574
+
11575
+ """
11576
+
11577
+ def __init__(self):
11578
+ r"""
11579
+ :param Status: 任务状态:
11580
+ 0 成功
11581
+ 1 失败
11582
+ 2 进行中
11583
+ :type Status: int
11584
+ :param Output: 输出信息
11585
+ 注意:此字段可能返回 null,表示取不到有效值。
11586
+ :type Output: str
11587
+ """
11588
+ self.Status = None
11589
+ self.Output = None
11590
+
11591
+
11592
+ def _deserialize(self, params):
11593
+ self.Status = params.get("Status")
11594
+ self.Output = params.get("Output")
11595
+ memeber_set = set(params.keys())
11596
+ for name, value in vars(self).items():
11597
+ if name in memeber_set:
11598
+ memeber_set.remove(name)
11599
+ if len(memeber_set) > 0:
11600
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
11601
+
11602
+
11603
+
11438
11604
  class TdwParam(AbstractModel):
11439
11605
  """Tdw类型入参
11440
11606
 
@@ -11724,6 +11890,98 @@ class TopicDetailResponse(AbstractModel):
11724
11890
 
11725
11891
 
11726
11892
 
11893
+ class TopicFlowRanking(AbstractModel):
11894
+ """topic 流量排行
11895
+
11896
+ """
11897
+
11898
+ def __init__(self):
11899
+ r"""
11900
+ :param TopicId: 主题Id
11901
+ :type TopicId: str
11902
+ :param TopicName: 主题名称
11903
+ :type TopicName: str
11904
+ :param PartitionNum: 分区数
11905
+ :type PartitionNum: int
11906
+ :param ReplicaNum: 副本数
11907
+ :type ReplicaNum: int
11908
+ :param TopicTraffic: Topic 流量
11909
+ :type TopicTraffic: str
11910
+ :param MessageHeap: Topic 消息堆积
11911
+ :type MessageHeap: int
11912
+ """
11913
+ self.TopicId = None
11914
+ self.TopicName = None
11915
+ self.PartitionNum = None
11916
+ self.ReplicaNum = None
11917
+ self.TopicTraffic = None
11918
+ self.MessageHeap = None
11919
+
11920
+
11921
+ def _deserialize(self, params):
11922
+ self.TopicId = params.get("TopicId")
11923
+ self.TopicName = params.get("TopicName")
11924
+ self.PartitionNum = params.get("PartitionNum")
11925
+ self.ReplicaNum = params.get("ReplicaNum")
11926
+ self.TopicTraffic = params.get("TopicTraffic")
11927
+ self.MessageHeap = params.get("MessageHeap")
11928
+ memeber_set = set(params.keys())
11929
+ for name, value in vars(self).items():
11930
+ if name in memeber_set:
11931
+ memeber_set.remove(name)
11932
+ if len(memeber_set) > 0:
11933
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
11934
+
11935
+
11936
+
11937
+ class TopicFlowRankingResult(AbstractModel):
11938
+ """topic 生产消息数据,消费者数据
11939
+
11940
+ """
11941
+
11942
+ def __init__(self):
11943
+ r"""
11944
+ :param TopicFlow: Topic 流量数组
11945
+ :type TopicFlow: list of TopicFlowRanking
11946
+ :param ConsumeSpeed: 消费者组消费速度排行速度
11947
+ :type ConsumeSpeed: list of ConsumerGroupSpeed
11948
+ :param TopicMessageHeap: Topic 消息堆积/占用磁盘排行
11949
+ 注意:此字段可能返回 null,表示取不到有效值。
11950
+ :type TopicMessageHeap: list of TopicMessageHeapRanking
11951
+ """
11952
+ self.TopicFlow = None
11953
+ self.ConsumeSpeed = None
11954
+ self.TopicMessageHeap = None
11955
+
11956
+
11957
+ def _deserialize(self, params):
11958
+ if params.get("TopicFlow") is not None:
11959
+ self.TopicFlow = []
11960
+ for item in params.get("TopicFlow"):
11961
+ obj = TopicFlowRanking()
11962
+ obj._deserialize(item)
11963
+ self.TopicFlow.append(obj)
11964
+ if params.get("ConsumeSpeed") is not None:
11965
+ self.ConsumeSpeed = []
11966
+ for item in params.get("ConsumeSpeed"):
11967
+ obj = ConsumerGroupSpeed()
11968
+ obj._deserialize(item)
11969
+ self.ConsumeSpeed.append(obj)
11970
+ if params.get("TopicMessageHeap") is not None:
11971
+ self.TopicMessageHeap = []
11972
+ for item in params.get("TopicMessageHeap"):
11973
+ obj = TopicMessageHeapRanking()
11974
+ obj._deserialize(item)
11975
+ self.TopicMessageHeap.append(obj)
11976
+ memeber_set = set(params.keys())
11977
+ for name, value in vars(self).items():
11978
+ if name in memeber_set:
11979
+ memeber_set.remove(name)
11980
+ if len(memeber_set) > 0:
11981
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
11982
+
11983
+
11984
+
11727
11985
  class TopicInSyncReplicaInfo(AbstractModel):
11728
11986
  """topic副本及详细信息
11729
11987
 
@@ -11813,6 +12071,56 @@ class TopicInSyncReplicaResult(AbstractModel):
11813
12071
 
11814
12072
 
11815
12073
 
12074
+ class TopicMessageHeapRanking(AbstractModel):
12075
+ """topic消息堆积、占用磁盘排行
12076
+
12077
+ """
12078
+
12079
+ def __init__(self):
12080
+ r"""
12081
+ :param TopicId: 主题ID
12082
+ 注意:此字段可能返回 null,表示取不到有效值。
12083
+ :type TopicId: str
12084
+ :param TopicName: 主题名称
12085
+ 注意:此字段可能返回 null,表示取不到有效值。
12086
+ :type TopicName: str
12087
+ :param PartitionNum: 分区数
12088
+ 注意:此字段可能返回 null,表示取不到有效值。
12089
+ :type PartitionNum: int
12090
+ :param ReplicaNum: 副本数
12091
+ 注意:此字段可能返回 null,表示取不到有效值。
12092
+ :type ReplicaNum: int
12093
+ :param TopicTraffic: Topic 流量
12094
+ 注意:此字段可能返回 null,表示取不到有效值。
12095
+ :type TopicTraffic: str
12096
+ :param MessageHeap: topic消息堆积/占用磁盘
12097
+ 注意:此字段可能返回 null,表示取不到有效值。
12098
+ :type MessageHeap: int
12099
+ """
12100
+ self.TopicId = None
12101
+ self.TopicName = None
12102
+ self.PartitionNum = None
12103
+ self.ReplicaNum = None
12104
+ self.TopicTraffic = None
12105
+ self.MessageHeap = None
12106
+
12107
+
12108
+ def _deserialize(self, params):
12109
+ self.TopicId = params.get("TopicId")
12110
+ self.TopicName = params.get("TopicName")
12111
+ self.PartitionNum = params.get("PartitionNum")
12112
+ self.ReplicaNum = params.get("ReplicaNum")
12113
+ self.TopicTraffic = params.get("TopicTraffic")
12114
+ self.MessageHeap = params.get("MessageHeap")
12115
+ memeber_set = set(params.keys())
12116
+ for name, value in vars(self).items():
12117
+ if name in memeber_set:
12118
+ memeber_set.remove(name)
12119
+ if len(memeber_set) > 0:
12120
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
12121
+
12122
+
12123
+
11816
12124
  class TopicParam(AbstractModel):
11817
12125
  """Topic配置
11818
12126
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-ckafka
3
- Version: 3.0.888
3
+ Version: 3.0.895
4
4
  Summary: Tencent Cloud Ckafka SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud