tencentcloud-sdk-trocket 3.0.971 → 3.0.972

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96aa9cf182e646326031b637e40d43599308b326
4
- data.tar.gz: b31c5c5cb60faef0dce12798bc5b5a85e31d4676
3
+ metadata.gz: 893713dc8cf081b29e68ff5a15650227cc878a53
4
+ data.tar.gz: 6ec47eadc4787fd3e7eb0745d4d4f8be5da3dbb7
5
5
  SHA512:
6
- metadata.gz: 4003b49d13b1194fcff7d9bb086973a28a48d70a56611a7839679dd6c3f72f6f34ef4b5e7c3a5b886269a56c11cd0e2c19ba1cae3e5917532c0d10e8c60a6378
7
- data.tar.gz: b2adb26b3cefc04e1f311bb47781faa382cdf527517eb9b3ebc3554e97d5371586d8e399351616efb9db2a81257c4b0b34992b996807197a28f33fd48436c183
6
+ metadata.gz: 2a0b0c17475408825e234de721752330c09c0ae4ec321de31800b3f7a118d3cadaf73e5810f243a838b08c1fe323494633160b60a39115e2b4e3c8b2722b6f8a
7
+ data.tar.gz: a03dd1404d7a15b92fb60be563ca7c3dc1b4e143d3f317f947e653aa7739de12fc2dda262d48136917692331613bea69c33dd875659ef2119a1de78cbd0d457f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.971
1
+ 3.0.972
@@ -413,6 +413,30 @@ module TencentCloud
413
413
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
414
414
  end
415
415
 
416
+ # 查询消费者客户端详情
417
+
418
+ # @param request: Request instance for DescribeConsumerClient.
419
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeConsumerClientRequest`
420
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeConsumerClientResponse`
421
+ def DescribeConsumerClient(request)
422
+ body = send_request('DescribeConsumerClient', request.serialize)
423
+ response = JSON.parse(body)
424
+ if response['Response'].key?('Error') == false
425
+ model = DescribeConsumerClientResponse.new
426
+ model.deserialize(response['Response'])
427
+ model
428
+ else
429
+ code = response['Response']['Error']['Code']
430
+ message = response['Response']['Error']['Message']
431
+ reqid = response['Response']['RequestId']
432
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
433
+ end
434
+ rescue TencentCloud::Common::TencentCloudSDKException => e
435
+ raise e
436
+ rescue StandardError => e
437
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
+ end
439
+
416
440
  # 查询消费组详情
417
441
 
418
442
  # @param request: Request instance for DescribeConsumerGroup.
@@ -74,6 +74,39 @@ module TencentCloud
74
74
  end
75
75
  end
76
76
 
77
+ # 消费者客户端
78
+ class ConsumerClient < TencentCloud::Common::AbstractModel
79
+ # @param ClientId: 客户端ID
80
+ # @type ClientId: String
81
+ # @param ClientAddr: 客户端地址
82
+ # @type ClientAddr: String
83
+ # @param Language: 客户端SDK语言
84
+ # @type Language: String
85
+ # @param Version: 客户端SDK版本
86
+ # @type Version: String
87
+ # @param ConsumerLag: 客户端消费堆积
88
+ # 注意:此字段可能返回 null,表示取不到有效值。
89
+ # @type ConsumerLag: Integer
90
+
91
+ attr_accessor :ClientId, :ClientAddr, :Language, :Version, :ConsumerLag
92
+
93
+ def initialize(clientid=nil, clientaddr=nil, language=nil, version=nil, consumerlag=nil)
94
+ @ClientId = clientid
95
+ @ClientAddr = clientaddr
96
+ @Language = language
97
+ @Version = version
98
+ @ConsumerLag = consumerlag
99
+ end
100
+
101
+ def deserialize(params)
102
+ @ClientId = params['ClientId']
103
+ @ClientAddr = params['ClientAddr']
104
+ @Language = params['Language']
105
+ @Version = params['Version']
106
+ @ConsumerLag = params['ConsumerLag']
107
+ end
108
+ end
109
+
77
110
  # CreateConsumerGroup请求参数结构体
78
111
  class CreateConsumerGroupRequest < TencentCloud::Common::AbstractModel
79
112
  # @param InstanceId: 集群ID
@@ -920,6 +953,85 @@ module TencentCloud
920
953
  end
921
954
  end
922
955
 
956
+ # DescribeConsumerClient请求参数结构体
957
+ class DescribeConsumerClientRequest < TencentCloud::Common::AbstractModel
958
+ # @param InstanceId: 集群ID
959
+ # @type InstanceId: String
960
+ # @param ClientId: 客户端ID
961
+ # @type ClientId: String
962
+ # @param Filters: 查询条件列表
963
+ # @type Filters: Array
964
+ # @param Offset: 查询起始位置
965
+ # @type Offset: Integer
966
+ # @param Limit: 查询结果限制数量
967
+ # @type Limit: Integer
968
+ # @param ConsumerGroup: 消费组名称
969
+ # @type ConsumerGroup: String
970
+
971
+ attr_accessor :InstanceId, :ClientId, :Filters, :Offset, :Limit, :ConsumerGroup
972
+
973
+ def initialize(instanceid=nil, clientid=nil, filters=nil, offset=nil, limit=nil, consumergroup=nil)
974
+ @InstanceId = instanceid
975
+ @ClientId = clientid
976
+ @Filters = filters
977
+ @Offset = offset
978
+ @Limit = limit
979
+ @ConsumerGroup = consumergroup
980
+ end
981
+
982
+ def deserialize(params)
983
+ @InstanceId = params['InstanceId']
984
+ @ClientId = params['ClientId']
985
+ unless params['Filters'].nil?
986
+ @Filters = []
987
+ params['Filters'].each do |i|
988
+ filter_tmp = Filter.new
989
+ filter_tmp.deserialize(i)
990
+ @Filters << filter_tmp
991
+ end
992
+ end
993
+ @Offset = params['Offset']
994
+ @Limit = params['Limit']
995
+ @ConsumerGroup = params['ConsumerGroup']
996
+ end
997
+ end
998
+
999
+ # DescribeConsumerClient返回参数结构体
1000
+ class DescribeConsumerClientResponse < TencentCloud::Common::AbstractModel
1001
+ # @param Client: 客户端详情
1002
+ # 注意:此字段可能返回 null,表示取不到有效值。
1003
+ # @type Client: :class:`Tencentcloud::Trocket.v20230308.models.ConsumerClient`
1004
+ # @param TopicList: 主题消费信息
1005
+ # 注意:此字段可能返回 null,表示取不到有效值。
1006
+ # @type TopicList: Array
1007
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1008
+ # @type RequestId: String
1009
+
1010
+ attr_accessor :Client, :TopicList, :RequestId
1011
+
1012
+ def initialize(client=nil, topiclist=nil, requestid=nil)
1013
+ @Client = client
1014
+ @TopicList = topiclist
1015
+ @RequestId = requestid
1016
+ end
1017
+
1018
+ def deserialize(params)
1019
+ unless params['Client'].nil?
1020
+ @Client = ConsumerClient.new
1021
+ @Client.deserialize(params['Client'])
1022
+ end
1023
+ unless params['TopicList'].nil?
1024
+ @TopicList = []
1025
+ params['TopicList'].each do |i|
1026
+ topicconsumestats_tmp = TopicConsumeStats.new
1027
+ topicconsumestats_tmp.deserialize(i)
1028
+ @TopicList << topicconsumestats_tmp
1029
+ end
1030
+ end
1031
+ @RequestId = params['RequestId']
1032
+ end
1033
+ end
1034
+
923
1035
  # DescribeConsumerGroupList请求参数结构体
924
1036
  class DescribeConsumerGroupListRequest < TencentCloud::Common::AbstractModel
925
1037
  # @param InstanceId: 集群ID
@@ -4692,6 +4804,43 @@ module TencentCloud
4692
4804
  end
4693
4805
  end
4694
4806
 
4807
+ # 主题消费进度
4808
+ class TopicConsumeStats < TencentCloud::Common::AbstractModel
4809
+ # @param Topic: 主题名称
4810
+ # @type Topic: String
4811
+ # @param TopicType: 主题类型
4812
+ # @type TopicType: String
4813
+ # @param QueueNum: 单节点主题队列数量
4814
+ # @type QueueNum: Integer
4815
+ # @param ConsumerLag: 消费堆积
4816
+ # @type ConsumerLag: Integer
4817
+ # @param SubString: 订阅规则
4818
+ # @type SubString: String
4819
+ # @param LastUpdateTime: 最后消费进度更新时间
4820
+ # 注意:此字段可能返回 null,表示取不到有效值。
4821
+ # @type LastUpdateTime: Integer
4822
+
4823
+ attr_accessor :Topic, :TopicType, :QueueNum, :ConsumerLag, :SubString, :LastUpdateTime
4824
+
4825
+ def initialize(topic=nil, topictype=nil, queuenum=nil, consumerlag=nil, substring=nil, lastupdatetime=nil)
4826
+ @Topic = topic
4827
+ @TopicType = topictype
4828
+ @QueueNum = queuenum
4829
+ @ConsumerLag = consumerlag
4830
+ @SubString = substring
4831
+ @LastUpdateTime = lastupdatetime
4832
+ end
4833
+
4834
+ def deserialize(params)
4835
+ @Topic = params['Topic']
4836
+ @TopicType = params['TopicType']
4837
+ @QueueNum = params['QueueNum']
4838
+ @ConsumerLag = params['ConsumerLag']
4839
+ @SubString = params['SubString']
4840
+ @LastUpdateTime = params['LastUpdateTime']
4841
+ end
4842
+ end
4843
+
4695
4844
  # 列表上的主题信息
4696
4845
  class TopicItem < TencentCloud::Common::AbstractModel
4697
4846
  # @param InstanceId: 实例ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-trocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.971
4
+ version: 3.0.972
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-29 00:00:00.000000000 Z
11
+ date: 2024-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common