tencentcloud-sdk-ckafka 3.0.566 → 3.0.568
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190819/client.rb +48 -0
- data/lib/v20190819/models.rb +258 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0eb74080db6c98b9e94d49284a9a2b200f2e6c19
|
4
|
+
data.tar.gz: bce3f421634a939b6323aee298485c8cdee21b95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c9dbce5bd0896aea5881a697e531e8d565a7f003f98e0e19dc87f687a2678da3fd17b6042e7a2c743e5e1aef9dc1dce9b60c8e008ac258189bb08a1c1fcc0f6
|
7
|
+
data.tar.gz: 342d606133b3eb9aff26195eeda519ea0a6887f18ebe0980c881f4e9f233fcef186173e6b9d019a0e3f41fc8bc3c950904bc7126e787bce01ca7e3e38f919fb0
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.568
|
data/lib/v20190819/client.rb
CHANGED
@@ -1301,6 +1301,30 @@ module TencentCloud
|
|
1301
1301
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1302
1302
|
end
|
1303
1303
|
|
1304
|
+
# 查询任务状态
|
1305
|
+
|
1306
|
+
# @param request: Request instance for DescribeTaskStatus.
|
1307
|
+
# @type request: :class:`Tencentcloud::ckafka::V20190819::DescribeTaskStatusRequest`
|
1308
|
+
# @rtype: :class:`Tencentcloud::ckafka::V20190819::DescribeTaskStatusResponse`
|
1309
|
+
def DescribeTaskStatus(request)
|
1310
|
+
body = send_request('DescribeTaskStatus', request.serialize)
|
1311
|
+
response = JSON.parse(body)
|
1312
|
+
if response['Response'].key?('Error') == false
|
1313
|
+
model = DescribeTaskStatusResponse.new
|
1314
|
+
model.deserialize(response['Response'])
|
1315
|
+
model
|
1316
|
+
else
|
1317
|
+
code = response['Response']['Error']['Code']
|
1318
|
+
message = response['Response']['Error']['Message']
|
1319
|
+
reqid = response['Response']['RequestId']
|
1320
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1321
|
+
end
|
1322
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1323
|
+
raise e
|
1324
|
+
rescue StandardError => e
|
1325
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1326
|
+
end
|
1327
|
+
|
1304
1328
|
# 接口请求域名:https://ckafka.tencentcloudapi.com
|
1305
1329
|
# 本接口(DescribeTopic)用于在用户获取消息队列 CKafka 实例的主题列表
|
1306
1330
|
|
@@ -1374,6 +1398,30 @@ module TencentCloud
|
|
1374
1398
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1375
1399
|
end
|
1376
1400
|
|
1401
|
+
# 获取Topic流量排行,消费者流量排行
|
1402
|
+
|
1403
|
+
# @param request: Request instance for DescribeTopicFlowRanking.
|
1404
|
+
# @type request: :class:`Tencentcloud::ckafka::V20190819::DescribeTopicFlowRankingRequest`
|
1405
|
+
# @rtype: :class:`Tencentcloud::ckafka::V20190819::DescribeTopicFlowRankingResponse`
|
1406
|
+
def DescribeTopicFlowRanking(request)
|
1407
|
+
body = send_request('DescribeTopicFlowRanking', request.serialize)
|
1408
|
+
response = JSON.parse(body)
|
1409
|
+
if response['Response'].key?('Error') == false
|
1410
|
+
model = DescribeTopicFlowRankingResponse.new
|
1411
|
+
model.deserialize(response['Response'])
|
1412
|
+
model
|
1413
|
+
else
|
1414
|
+
code = response['Response']['Error']['Code']
|
1415
|
+
message = response['Response']['Error']['Message']
|
1416
|
+
reqid = response['Response']['RequestId']
|
1417
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1418
|
+
end
|
1419
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1420
|
+
raise e
|
1421
|
+
rescue StandardError => e
|
1422
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1423
|
+
end
|
1424
|
+
|
1377
1425
|
# 查询topic 生产端连接信息
|
1378
1426
|
|
1379
1427
|
# @param request: Request instance for DescribeTopicProduceConnection.
|
data/lib/v20190819/models.rb
CHANGED
@@ -1235,6 +1235,26 @@ module TencentCloud
|
|
1235
1235
|
end
|
1236
1236
|
end
|
1237
1237
|
|
1238
|
+
# 消费者组消费速度排行
|
1239
|
+
class ConsumerGroupSpeed < TencentCloud::Common::AbstractModel
|
1240
|
+
# @param ConsumerGroupName: 消费者组名称
|
1241
|
+
# @type ConsumerGroupName: String
|
1242
|
+
# @param Speed: 消费速度 Count/Minute
|
1243
|
+
# @type Speed: Integer
|
1244
|
+
|
1245
|
+
attr_accessor :ConsumerGroupName, :Speed
|
1246
|
+
|
1247
|
+
def initialize(consumergroupname=nil, speed=nil)
|
1248
|
+
@ConsumerGroupName = consumergroupname
|
1249
|
+
@Speed = speed
|
1250
|
+
end
|
1251
|
+
|
1252
|
+
def deserialize(params)
|
1253
|
+
@ConsumerGroupName = params['ConsumerGroupName']
|
1254
|
+
@Speed = params['Speed']
|
1255
|
+
end
|
1256
|
+
end
|
1257
|
+
|
1238
1258
|
# 消费组主题对象
|
1239
1259
|
class ConsumerGroupTopic < TencentCloud::Common::AbstractModel
|
1240
1260
|
# @param TopicId: 主题ID
|
@@ -5082,6 +5102,45 @@ module TencentCloud
|
|
5082
5102
|
end
|
5083
5103
|
end
|
5084
5104
|
|
5105
|
+
# DescribeTaskStatus请求参数结构体
|
5106
|
+
class DescribeTaskStatusRequest < TencentCloud::Common::AbstractModel
|
5107
|
+
# @param FlowId: 任务唯一标记
|
5108
|
+
# @type FlowId: Integer
|
5109
|
+
|
5110
|
+
attr_accessor :FlowId
|
5111
|
+
|
5112
|
+
def initialize(flowid=nil)
|
5113
|
+
@FlowId = flowid
|
5114
|
+
end
|
5115
|
+
|
5116
|
+
def deserialize(params)
|
5117
|
+
@FlowId = params['FlowId']
|
5118
|
+
end
|
5119
|
+
end
|
5120
|
+
|
5121
|
+
# DescribeTaskStatus返回参数结构体
|
5122
|
+
class DescribeTaskStatusResponse < TencentCloud::Common::AbstractModel
|
5123
|
+
# @param Result: 返回结果
|
5124
|
+
# @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.TaskStatusResponse`
|
5125
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5126
|
+
# @type RequestId: String
|
5127
|
+
|
5128
|
+
attr_accessor :Result, :RequestId
|
5129
|
+
|
5130
|
+
def initialize(result=nil, requestid=nil)
|
5131
|
+
@Result = result
|
5132
|
+
@RequestId = requestid
|
5133
|
+
end
|
5134
|
+
|
5135
|
+
def deserialize(params)
|
5136
|
+
unless params['Result'].nil?
|
5137
|
+
@Result = TaskStatusResponse.new
|
5138
|
+
@Result.deserialize(params['Result'])
|
5139
|
+
end
|
5140
|
+
@RequestId = params['RequestId']
|
5141
|
+
end
|
5142
|
+
end
|
5143
|
+
|
5085
5144
|
# DescribeTopicAttributes请求参数结构体
|
5086
5145
|
class DescribeTopicAttributesRequest < TencentCloud::Common::AbstractModel
|
5087
5146
|
# @param InstanceId: 实例 ID
|
@@ -5180,6 +5239,57 @@ module TencentCloud
|
|
5180
5239
|
end
|
5181
5240
|
end
|
5182
5241
|
|
5242
|
+
# DescribeTopicFlowRanking请求参数结构体
|
5243
|
+
class DescribeTopicFlowRankingRequest < TencentCloud::Common::AbstractModel
|
5244
|
+
# @param InstanceId: 实例ID
|
5245
|
+
# @type InstanceId: String
|
5246
|
+
# @param RankingType: 排行类别(PRO-Topic生产流量/CON-Topic消费流量)
|
5247
|
+
# @type RankingType: String
|
5248
|
+
# @param BeginDate: 排行起始日期
|
5249
|
+
# @type BeginDate: String
|
5250
|
+
# @param EndDate: 排行结束日期
|
5251
|
+
# @type EndDate: String
|
5252
|
+
|
5253
|
+
attr_accessor :InstanceId, :RankingType, :BeginDate, :EndDate
|
5254
|
+
|
5255
|
+
def initialize(instanceid=nil, rankingtype=nil, begindate=nil, enddate=nil)
|
5256
|
+
@InstanceId = instanceid
|
5257
|
+
@RankingType = rankingtype
|
5258
|
+
@BeginDate = begindate
|
5259
|
+
@EndDate = enddate
|
5260
|
+
end
|
5261
|
+
|
5262
|
+
def deserialize(params)
|
5263
|
+
@InstanceId = params['InstanceId']
|
5264
|
+
@RankingType = params['RankingType']
|
5265
|
+
@BeginDate = params['BeginDate']
|
5266
|
+
@EndDate = params['EndDate']
|
5267
|
+
end
|
5268
|
+
end
|
5269
|
+
|
5270
|
+
# DescribeTopicFlowRanking返回参数结构体
|
5271
|
+
class DescribeTopicFlowRankingResponse < TencentCloud::Common::AbstractModel
|
5272
|
+
# @param Result: 流量排行
|
5273
|
+
# @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.TopicFlowRankingResult`
|
5274
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5275
|
+
# @type RequestId: String
|
5276
|
+
|
5277
|
+
attr_accessor :Result, :RequestId
|
5278
|
+
|
5279
|
+
def initialize(result=nil, requestid=nil)
|
5280
|
+
@Result = result
|
5281
|
+
@RequestId = requestid
|
5282
|
+
end
|
5283
|
+
|
5284
|
+
def deserialize(params)
|
5285
|
+
unless params['Result'].nil?
|
5286
|
+
@Result = TopicFlowRankingResult.new
|
5287
|
+
@Result.deserialize(params['Result'])
|
5288
|
+
end
|
5289
|
+
@RequestId = params['RequestId']
|
5290
|
+
end
|
5291
|
+
end
|
5292
|
+
|
5183
5293
|
# DescribeTopicProduceConnection请求参数结构体
|
5184
5294
|
class DescribeTopicProduceConnectionRequest < TencentCloud::Common::AbstractModel
|
5185
5295
|
# @param InstanceId: 实例id
|
@@ -9973,6 +10083,30 @@ module TencentCloud
|
|
9973
10083
|
end
|
9974
10084
|
end
|
9975
10085
|
|
10086
|
+
# 任务状态返回对象
|
10087
|
+
class TaskStatusResponse < TencentCloud::Common::AbstractModel
|
10088
|
+
# @param Status: 任务状态:
|
10089
|
+
# 0 成功
|
10090
|
+
# 1 失败
|
10091
|
+
# 2 进行中
|
10092
|
+
# @type Status: Integer
|
10093
|
+
# @param Output: 输出信息
|
10094
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10095
|
+
# @type Output: String
|
10096
|
+
|
10097
|
+
attr_accessor :Status, :Output
|
10098
|
+
|
10099
|
+
def initialize(status=nil, output=nil)
|
10100
|
+
@Status = status
|
10101
|
+
@Output = output
|
10102
|
+
end
|
10103
|
+
|
10104
|
+
def deserialize(params)
|
10105
|
+
@Status = params['Status']
|
10106
|
+
@Output = params['Output']
|
10107
|
+
end
|
10108
|
+
end
|
10109
|
+
|
9976
10110
|
# Tdw类型入参
|
9977
10111
|
class TdwParam < TencentCloud::Common::AbstractModel
|
9978
10112
|
# @param Bid: Tdw的bid
|
@@ -10234,6 +10368,88 @@ module TencentCloud
|
|
10234
10368
|
end
|
10235
10369
|
end
|
10236
10370
|
|
10371
|
+
# topic 流量排行
|
10372
|
+
class TopicFlowRanking < TencentCloud::Common::AbstractModel
|
10373
|
+
# @param TopicId: 主题Id
|
10374
|
+
# @type TopicId: String
|
10375
|
+
# @param TopicName: 主题名称
|
10376
|
+
# @type TopicName: String
|
10377
|
+
# @param PartitionNum: 分区数
|
10378
|
+
# @type PartitionNum: Integer
|
10379
|
+
# @param ReplicaNum: 副本数
|
10380
|
+
# @type ReplicaNum: Integer
|
10381
|
+
# @param TopicTraffic: Topic 流量
|
10382
|
+
# @type TopicTraffic: String
|
10383
|
+
# @param MessageHeap: Topic 消息堆积
|
10384
|
+
# @type MessageHeap: Integer
|
10385
|
+
|
10386
|
+
attr_accessor :TopicId, :TopicName, :PartitionNum, :ReplicaNum, :TopicTraffic, :MessageHeap
|
10387
|
+
|
10388
|
+
def initialize(topicid=nil, topicname=nil, partitionnum=nil, replicanum=nil, topictraffic=nil, messageheap=nil)
|
10389
|
+
@TopicId = topicid
|
10390
|
+
@TopicName = topicname
|
10391
|
+
@PartitionNum = partitionnum
|
10392
|
+
@ReplicaNum = replicanum
|
10393
|
+
@TopicTraffic = topictraffic
|
10394
|
+
@MessageHeap = messageheap
|
10395
|
+
end
|
10396
|
+
|
10397
|
+
def deserialize(params)
|
10398
|
+
@TopicId = params['TopicId']
|
10399
|
+
@TopicName = params['TopicName']
|
10400
|
+
@PartitionNum = params['PartitionNum']
|
10401
|
+
@ReplicaNum = params['ReplicaNum']
|
10402
|
+
@TopicTraffic = params['TopicTraffic']
|
10403
|
+
@MessageHeap = params['MessageHeap']
|
10404
|
+
end
|
10405
|
+
end
|
10406
|
+
|
10407
|
+
# topic 生产消息数据,消费者数据
|
10408
|
+
class TopicFlowRankingResult < TencentCloud::Common::AbstractModel
|
10409
|
+
# @param TopicFlow: Topic 流量数组
|
10410
|
+
# @type TopicFlow: Array
|
10411
|
+
# @param ConsumeSpeed: 消费者组消费速度排行速度
|
10412
|
+
# @type ConsumeSpeed: Array
|
10413
|
+
# @param TopicMessageHeap: Topic 消息堆积/占用磁盘排行
|
10414
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10415
|
+
# @type TopicMessageHeap: Array
|
10416
|
+
|
10417
|
+
attr_accessor :TopicFlow, :ConsumeSpeed, :TopicMessageHeap
|
10418
|
+
|
10419
|
+
def initialize(topicflow=nil, consumespeed=nil, topicmessageheap=nil)
|
10420
|
+
@TopicFlow = topicflow
|
10421
|
+
@ConsumeSpeed = consumespeed
|
10422
|
+
@TopicMessageHeap = topicmessageheap
|
10423
|
+
end
|
10424
|
+
|
10425
|
+
def deserialize(params)
|
10426
|
+
unless params['TopicFlow'].nil?
|
10427
|
+
@TopicFlow = []
|
10428
|
+
params['TopicFlow'].each do |i|
|
10429
|
+
topicflowranking_tmp = TopicFlowRanking.new
|
10430
|
+
topicflowranking_tmp.deserialize(i)
|
10431
|
+
@TopicFlow << topicflowranking_tmp
|
10432
|
+
end
|
10433
|
+
end
|
10434
|
+
unless params['ConsumeSpeed'].nil?
|
10435
|
+
@ConsumeSpeed = []
|
10436
|
+
params['ConsumeSpeed'].each do |i|
|
10437
|
+
consumergroupspeed_tmp = ConsumerGroupSpeed.new
|
10438
|
+
consumergroupspeed_tmp.deserialize(i)
|
10439
|
+
@ConsumeSpeed << consumergroupspeed_tmp
|
10440
|
+
end
|
10441
|
+
end
|
10442
|
+
unless params['TopicMessageHeap'].nil?
|
10443
|
+
@TopicMessageHeap = []
|
10444
|
+
params['TopicMessageHeap'].each do |i|
|
10445
|
+
topicmessageheapranking_tmp = TopicMessageHeapRanking.new
|
10446
|
+
topicmessageheapranking_tmp.deserialize(i)
|
10447
|
+
@TopicMessageHeap << topicmessageheapranking_tmp
|
10448
|
+
end
|
10449
|
+
end
|
10450
|
+
end
|
10451
|
+
end
|
10452
|
+
|
10237
10453
|
# topic副本及详细信息
|
10238
10454
|
class TopicInSyncReplicaInfo < TencentCloud::Common::AbstractModel
|
10239
10455
|
# @param Partition: 分区名称
|
@@ -10309,6 +10525,48 @@ module TencentCloud
|
|
10309
10525
|
end
|
10310
10526
|
end
|
10311
10527
|
|
10528
|
+
# topic消息堆积、占用磁盘排行
|
10529
|
+
class TopicMessageHeapRanking < TencentCloud::Common::AbstractModel
|
10530
|
+
# @param TopicId: 主题ID
|
10531
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10532
|
+
# @type TopicId: String
|
10533
|
+
# @param TopicName: 主题名称
|
10534
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10535
|
+
# @type TopicName: String
|
10536
|
+
# @param PartitionNum: 分区数
|
10537
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10538
|
+
# @type PartitionNum: Integer
|
10539
|
+
# @param ReplicaNum: 副本数
|
10540
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10541
|
+
# @type ReplicaNum: Integer
|
10542
|
+
# @param TopicTraffic: Topic 流量
|
10543
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10544
|
+
# @type TopicTraffic: String
|
10545
|
+
# @param MessageHeap: topic消息堆积/占用磁盘
|
10546
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10547
|
+
# @type MessageHeap: Integer
|
10548
|
+
|
10549
|
+
attr_accessor :TopicId, :TopicName, :PartitionNum, :ReplicaNum, :TopicTraffic, :MessageHeap
|
10550
|
+
|
10551
|
+
def initialize(topicid=nil, topicname=nil, partitionnum=nil, replicanum=nil, topictraffic=nil, messageheap=nil)
|
10552
|
+
@TopicId = topicid
|
10553
|
+
@TopicName = topicname
|
10554
|
+
@PartitionNum = partitionnum
|
10555
|
+
@ReplicaNum = replicanum
|
10556
|
+
@TopicTraffic = topictraffic
|
10557
|
+
@MessageHeap = messageheap
|
10558
|
+
end
|
10559
|
+
|
10560
|
+
def deserialize(params)
|
10561
|
+
@TopicId = params['TopicId']
|
10562
|
+
@TopicName = params['TopicName']
|
10563
|
+
@PartitionNum = params['PartitionNum']
|
10564
|
+
@ReplicaNum = params['ReplicaNum']
|
10565
|
+
@TopicTraffic = params['TopicTraffic']
|
10566
|
+
@MessageHeap = params['MessageHeap']
|
10567
|
+
end
|
10568
|
+
end
|
10569
|
+
|
10312
10570
|
# Topic配置
|
10313
10571
|
class TopicParam < TencentCloud::Common::AbstractModel
|
10314
10572
|
# @param Resource: 单独售卖Topic的Topic名称
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ckafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.568
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|