tencentcloud-sdk-tdmq 3.0.652 → 3.0.653
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/v20200217/client.rb +48 -0
- data/lib/v20200217/models.rb +273 -1
- 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: 31106961475e14aeddb91eef105214685dc3786a
|
4
|
+
data.tar.gz: a932141f218ef7daf00cc5fd5fa80f121cb014fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ce612af1580953403f953aa3751ae13f9c807a013a1b28938ff2a7647906fd13c3dad14fd22312586e02c99bbac4e9bbdafa7f11dc87599d7290e0882180fa6
|
7
|
+
data.tar.gz: a40cd56b7d2b8695a659103550209078c8beedd462a0633bc208743ee364994ba5460a2cc3b32d86bcc0c15b2cd5ed0c29d339076239c50fb9753ddc33811cff
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.653
|
data/lib/v20200217/client.rb
CHANGED
@@ -1661,6 +1661,30 @@ module TencentCloud
|
|
1661
1661
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1662
1662
|
end
|
1663
1663
|
|
1664
|
+
# 查询消息轨迹
|
1665
|
+
|
1666
|
+
# @param request: Request instance for DescribeRocketMQMsgTrace.
|
1667
|
+
# @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeRocketMQMsgTraceRequest`
|
1668
|
+
# @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeRocketMQMsgTraceResponse`
|
1669
|
+
def DescribeRocketMQMsgTrace(request)
|
1670
|
+
body = send_request('DescribeRocketMQMsgTrace', request.serialize)
|
1671
|
+
response = JSON.parse(body)
|
1672
|
+
if response['Response'].key?('Error') == false
|
1673
|
+
model = DescribeRocketMQMsgTraceResponse.new
|
1674
|
+
model.deserialize(response['Response'])
|
1675
|
+
model
|
1676
|
+
else
|
1677
|
+
code = response['Response']['Error']['Code']
|
1678
|
+
message = response['Response']['Error']['Message']
|
1679
|
+
reqid = response['Response']['RequestId']
|
1680
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1681
|
+
end
|
1682
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1683
|
+
raise e
|
1684
|
+
rescue StandardError => e
|
1685
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1686
|
+
end
|
1687
|
+
|
1664
1688
|
# 获取RocketMQ命名空间列表
|
1665
1689
|
|
1666
1690
|
# @param request: Request instance for DescribeRocketMQNamespaces.
|
@@ -1685,6 +1709,30 @@ module TencentCloud
|
|
1685
1709
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1686
1710
|
end
|
1687
1711
|
|
1712
|
+
# rocketmq 消息查询
|
1713
|
+
|
1714
|
+
# @param request: Request instance for DescribeRocketMQTopicMsgs.
|
1715
|
+
# @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeRocketMQTopicMsgsRequest`
|
1716
|
+
# @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeRocketMQTopicMsgsResponse`
|
1717
|
+
def DescribeRocketMQTopicMsgs(request)
|
1718
|
+
body = send_request('DescribeRocketMQTopicMsgs', request.serialize)
|
1719
|
+
response = JSON.parse(body)
|
1720
|
+
if response['Response'].key?('Error') == false
|
1721
|
+
model = DescribeRocketMQTopicMsgsResponse.new
|
1722
|
+
model.deserialize(response['Response'])
|
1723
|
+
model
|
1724
|
+
else
|
1725
|
+
code = response['Response']['Error']['Code']
|
1726
|
+
message = response['Response']['Error']['Message']
|
1727
|
+
reqid = response['Response']['RequestId']
|
1728
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1729
|
+
end
|
1730
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1731
|
+
raise e
|
1732
|
+
rescue StandardError => e
|
1733
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1734
|
+
end
|
1735
|
+
|
1688
1736
|
# 获取RocketMQ主题列表
|
1689
1737
|
|
1690
1738
|
# @param request: Request instance for DescribeRocketMQTopics.
|
data/lib/v20200217/models.rb
CHANGED
@@ -961,7 +961,7 @@ module TencentCloud
|
|
961
961
|
|
962
962
|
# CreateCluster请求参数结构体
|
963
963
|
class CreateClusterRequest < TencentCloud::Common::AbstractModel
|
964
|
-
# @param ClusterName: 集群名称,不支持中字以及除了短线和下划线外的特殊字符且不超过
|
964
|
+
# @param ClusterName: 集群名称,不支持中字以及除了短线和下划线外的特殊字符且不超过64个字符。
|
965
965
|
# @type ClusterName: String
|
966
966
|
# @param BindClusterId: 用户专享物理集群ID,如果不传,则默认在公共集群上创建用户集群资源。
|
967
967
|
# @type BindClusterId: Integer
|
@@ -4767,6 +4767,114 @@ module TencentCloud
|
|
4767
4767
|
end
|
4768
4768
|
end
|
4769
4769
|
|
4770
|
+
# DescribeRocketMQMsgTrace请求参数结构体
|
4771
|
+
class DescribeRocketMQMsgTraceRequest < TencentCloud::Common::AbstractModel
|
4772
|
+
# @param ClusterId: 集群id
|
4773
|
+
# @type ClusterId: String
|
4774
|
+
# @param EnvironmentId: 命名空间
|
4775
|
+
# @type EnvironmentId: String
|
4776
|
+
# @param TopicName: 主题,rocketmq查询死信时值为groupId
|
4777
|
+
# @type TopicName: String
|
4778
|
+
# @param MsgId: 消息id
|
4779
|
+
# @type MsgId: String
|
4780
|
+
# @param GroupName: 消费组、订阅
|
4781
|
+
# @type GroupName: String
|
4782
|
+
# @param QueryDLQMsg: 查询死信时该值为true
|
4783
|
+
# @type QueryDLQMsg: Boolean
|
4784
|
+
|
4785
|
+
attr_accessor :ClusterId, :EnvironmentId, :TopicName, :MsgId, :GroupName, :QueryDLQMsg
|
4786
|
+
|
4787
|
+
def initialize(clusterid=nil, environmentid=nil, topicname=nil, msgid=nil, groupname=nil, querydlqmsg=nil)
|
4788
|
+
@ClusterId = clusterid
|
4789
|
+
@EnvironmentId = environmentid
|
4790
|
+
@TopicName = topicname
|
4791
|
+
@MsgId = msgid
|
4792
|
+
@GroupName = groupname
|
4793
|
+
@QueryDLQMsg = querydlqmsg
|
4794
|
+
end
|
4795
|
+
|
4796
|
+
def deserialize(params)
|
4797
|
+
@ClusterId = params['ClusterId']
|
4798
|
+
@EnvironmentId = params['EnvironmentId']
|
4799
|
+
@TopicName = params['TopicName']
|
4800
|
+
@MsgId = params['MsgId']
|
4801
|
+
@GroupName = params['GroupName']
|
4802
|
+
@QueryDLQMsg = params['QueryDLQMsg']
|
4803
|
+
end
|
4804
|
+
end
|
4805
|
+
|
4806
|
+
# DescribeRocketMQMsgTrace返回参数结构体
|
4807
|
+
class DescribeRocketMQMsgTraceResponse < TencentCloud::Common::AbstractModel
|
4808
|
+
# @param Result: [
|
4809
|
+
# {
|
4810
|
+
# "Stage": "produce",
|
4811
|
+
# "Data": {
|
4812
|
+
# "ProducerName": "生产者名",
|
4813
|
+
# "ProduceTime": "消息生产时间",
|
4814
|
+
# "ProducerAddr": "客户端地址",
|
4815
|
+
# "Duration": "耗时ms",
|
4816
|
+
# "Status": "状态(0:成功,1:失败)"
|
4817
|
+
# }
|
4818
|
+
# },
|
4819
|
+
# {
|
4820
|
+
# "Stage": "persist",
|
4821
|
+
# "Data": {
|
4822
|
+
# "PersistTime": "存储时间",
|
4823
|
+
# "Duration": "耗时ms",
|
4824
|
+
# "Status": "状态(0:成功,1:失败)"
|
4825
|
+
# }
|
4826
|
+
# },
|
4827
|
+
# {
|
4828
|
+
# "Stage": "consume",
|
4829
|
+
# "Data": {
|
4830
|
+
# "TotalCount": 2,
|
4831
|
+
# "RocketMqConsumeLogs": [
|
4832
|
+
# {
|
4833
|
+
# "ConsumerGroup": "消费组",
|
4834
|
+
# "ConsumeModel": "消费模式",
|
4835
|
+
# "ConsumerAddr": "消费者地址",
|
4836
|
+
# "ConsumeTime": "推送时间",
|
4837
|
+
# "Status": "状态(0:已推送未确认, 2:已确认, 3:转入重试, 4:已重试未确认, 5:已转入死信队列)"
|
4838
|
+
# },
|
4839
|
+
# {
|
4840
|
+
# "ConsumerGroup": "消费组",
|
4841
|
+
# "ConsumeModel": "消费模式",
|
4842
|
+
# "ConsumerAddr": "消费者地址",
|
4843
|
+
# "ConsumeTime": "推送时间",
|
4844
|
+
# "Status": "状态(0:已推送未确认, 2:已确认, 3:转入重试, 4:已重试未确认, 5:已转入死信队列)"
|
4845
|
+
# }
|
4846
|
+
# ]
|
4847
|
+
# }
|
4848
|
+
# }
|
4849
|
+
# ]
|
4850
|
+
# @type Result: Array
|
4851
|
+
# @param ShowTopicName: 消息轨迹页展示的topic名称
|
4852
|
+
# @type ShowTopicName: String
|
4853
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4854
|
+
# @type RequestId: String
|
4855
|
+
|
4856
|
+
attr_accessor :Result, :ShowTopicName, :RequestId
|
4857
|
+
|
4858
|
+
def initialize(result=nil, showtopicname=nil, requestid=nil)
|
4859
|
+
@Result = result
|
4860
|
+
@ShowTopicName = showtopicname
|
4861
|
+
@RequestId = requestid
|
4862
|
+
end
|
4863
|
+
|
4864
|
+
def deserialize(params)
|
4865
|
+
unless params['Result'].nil?
|
4866
|
+
@Result = []
|
4867
|
+
params['Result'].each do |i|
|
4868
|
+
traceresult_tmp = TraceResult.new
|
4869
|
+
traceresult_tmp.deserialize(i)
|
4870
|
+
@Result << traceresult_tmp
|
4871
|
+
end
|
4872
|
+
end
|
4873
|
+
@ShowTopicName = params['ShowTopicName']
|
4874
|
+
@RequestId = params['RequestId']
|
4875
|
+
end
|
4876
|
+
end
|
4877
|
+
|
4770
4878
|
# DescribeRocketMQNamespaces请求参数结构体
|
4771
4879
|
class DescribeRocketMQNamespacesRequest < TencentCloud::Common::AbstractModel
|
4772
4880
|
# @param ClusterId: 集群ID
|
@@ -4826,6 +4934,102 @@ module TencentCloud
|
|
4826
4934
|
end
|
4827
4935
|
end
|
4828
4936
|
|
4937
|
+
# DescribeRocketMQTopicMsgs请求参数结构体
|
4938
|
+
class DescribeRocketMQTopicMsgsRequest < TencentCloud::Common::AbstractModel
|
4939
|
+
# @param ClusterId: 集群 ID
|
4940
|
+
# @type ClusterId: String
|
4941
|
+
# @param EnvironmentId: 命名空间
|
4942
|
+
# @type EnvironmentId: String
|
4943
|
+
# @param TopicName: 主题名称,查询死信时为groupId
|
4944
|
+
# @type TopicName: String
|
4945
|
+
# @param StartTime: 开始时间
|
4946
|
+
# @type StartTime: String
|
4947
|
+
# @param EndTime: 结束时间
|
4948
|
+
# @type EndTime: String
|
4949
|
+
# @param MsgId: 消息 ID
|
4950
|
+
# @type MsgId: String
|
4951
|
+
# @param MsgKey: 消息 key
|
4952
|
+
# @type MsgKey: String
|
4953
|
+
# @param Offset: 查询偏移
|
4954
|
+
# @type Offset: Integer
|
4955
|
+
# @param Limit: 查询限额
|
4956
|
+
# @type Limit: Integer
|
4957
|
+
# @param TaskRequestId: 标志一次分页事务
|
4958
|
+
# @type TaskRequestId: String
|
4959
|
+
# @param QueryDlqMsg: 死信查询时该值为true,只对Rocketmq有效
|
4960
|
+
# @type QueryDlqMsg: Boolean
|
4961
|
+
# @param NumOfLatestMsg: 查询最近N条消息 最大不超过1024,默认-1为其他查询条件
|
4962
|
+
# @type NumOfLatestMsg: Integer
|
4963
|
+
|
4964
|
+
attr_accessor :ClusterId, :EnvironmentId, :TopicName, :StartTime, :EndTime, :MsgId, :MsgKey, :Offset, :Limit, :TaskRequestId, :QueryDlqMsg, :NumOfLatestMsg
|
4965
|
+
|
4966
|
+
def initialize(clusterid=nil, environmentid=nil, topicname=nil, starttime=nil, endtime=nil, msgid=nil, msgkey=nil, offset=nil, limit=nil, taskrequestid=nil, querydlqmsg=nil, numoflatestmsg=nil)
|
4967
|
+
@ClusterId = clusterid
|
4968
|
+
@EnvironmentId = environmentid
|
4969
|
+
@TopicName = topicname
|
4970
|
+
@StartTime = starttime
|
4971
|
+
@EndTime = endtime
|
4972
|
+
@MsgId = msgid
|
4973
|
+
@MsgKey = msgkey
|
4974
|
+
@Offset = offset
|
4975
|
+
@Limit = limit
|
4976
|
+
@TaskRequestId = taskrequestid
|
4977
|
+
@QueryDlqMsg = querydlqmsg
|
4978
|
+
@NumOfLatestMsg = numoflatestmsg
|
4979
|
+
end
|
4980
|
+
|
4981
|
+
def deserialize(params)
|
4982
|
+
@ClusterId = params['ClusterId']
|
4983
|
+
@EnvironmentId = params['EnvironmentId']
|
4984
|
+
@TopicName = params['TopicName']
|
4985
|
+
@StartTime = params['StartTime']
|
4986
|
+
@EndTime = params['EndTime']
|
4987
|
+
@MsgId = params['MsgId']
|
4988
|
+
@MsgKey = params['MsgKey']
|
4989
|
+
@Offset = params['Offset']
|
4990
|
+
@Limit = params['Limit']
|
4991
|
+
@TaskRequestId = params['TaskRequestId']
|
4992
|
+
@QueryDlqMsg = params['QueryDlqMsg']
|
4993
|
+
@NumOfLatestMsg = params['NumOfLatestMsg']
|
4994
|
+
end
|
4995
|
+
end
|
4996
|
+
|
4997
|
+
# DescribeRocketMQTopicMsgs返回参数结构体
|
4998
|
+
class DescribeRocketMQTopicMsgsResponse < TencentCloud::Common::AbstractModel
|
4999
|
+
# @param TotalCount: 总数
|
5000
|
+
# @type TotalCount: Integer
|
5001
|
+
# @param TopicMsgLogSets: 消息列表
|
5002
|
+
# @type TopicMsgLogSets: Array
|
5003
|
+
# @param TaskRequestId: 标志一次分页事务
|
5004
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5005
|
+
# @type TaskRequestId: String
|
5006
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5007
|
+
# @type RequestId: String
|
5008
|
+
|
5009
|
+
attr_accessor :TotalCount, :TopicMsgLogSets, :TaskRequestId, :RequestId
|
5010
|
+
|
5011
|
+
def initialize(totalcount=nil, topicmsglogsets=nil, taskrequestid=nil, requestid=nil)
|
5012
|
+
@TotalCount = totalcount
|
5013
|
+
@TopicMsgLogSets = topicmsglogsets
|
5014
|
+
@TaskRequestId = taskrequestid
|
5015
|
+
@RequestId = requestid
|
5016
|
+
end
|
5017
|
+
|
5018
|
+
def deserialize(params)
|
5019
|
+
@TotalCount = params['TotalCount']
|
5020
|
+
unless params['TopicMsgLogSets'].nil?
|
5021
|
+
@TopicMsgLogSets = []
|
5022
|
+
params['TopicMsgLogSets'].each do |i|
|
5023
|
+
rocketmqmsglog_tmp = RocketMQMsgLog.new
|
5024
|
+
rocketmqmsglog_tmp.deserialize(i)
|
5025
|
+
@TopicMsgLogSets << rocketmqmsglog_tmp
|
5026
|
+
end
|
5027
|
+
end
|
5028
|
+
@TaskRequestId = params['TaskRequestId']
|
5029
|
+
@RequestId = params['RequestId']
|
5030
|
+
end
|
5031
|
+
end
|
5032
|
+
|
4829
5033
|
# DescribeRocketMQTopics请求参数结构体
|
4830
5034
|
class DescribeRocketMQTopicsRequest < TencentCloud::Common::AbstractModel
|
4831
5035
|
# @param Offset: 查询偏移量
|
@@ -8090,6 +8294,54 @@ module TencentCloud
|
|
8090
8294
|
end
|
8091
8295
|
end
|
8092
8296
|
|
8297
|
+
# rocketmq消息日志
|
8298
|
+
class RocketMQMsgLog < TencentCloud::Common::AbstractModel
|
8299
|
+
# @param MsgId: 消息id
|
8300
|
+
# @type MsgId: String
|
8301
|
+
# @param MsgTag: 消息tag
|
8302
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8303
|
+
# @type MsgTag: String
|
8304
|
+
# @param MsgKey: 消息key
|
8305
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8306
|
+
# @type MsgKey: String
|
8307
|
+
# @param ProducerAddr: 客户端地址
|
8308
|
+
# @type ProducerAddr: String
|
8309
|
+
# @param ProduceTime: 消息发送时间
|
8310
|
+
# @type ProduceTime: String
|
8311
|
+
# @param PulsarMsgId: pulsar消息id
|
8312
|
+
# @type PulsarMsgId: String
|
8313
|
+
# @param DeadLetterResendTimes: 死信重发次数
|
8314
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8315
|
+
# @type DeadLetterResendTimes: Integer
|
8316
|
+
# @param ResendSuccessCount: 死信重发成功次数
|
8317
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8318
|
+
# @type ResendSuccessCount: Integer
|
8319
|
+
|
8320
|
+
attr_accessor :MsgId, :MsgTag, :MsgKey, :ProducerAddr, :ProduceTime, :PulsarMsgId, :DeadLetterResendTimes, :ResendSuccessCount
|
8321
|
+
|
8322
|
+
def initialize(msgid=nil, msgtag=nil, msgkey=nil, produceraddr=nil, producetime=nil, pulsarmsgid=nil, deadletterresendtimes=nil, resendsuccesscount=nil)
|
8323
|
+
@MsgId = msgid
|
8324
|
+
@MsgTag = msgtag
|
8325
|
+
@MsgKey = msgkey
|
8326
|
+
@ProducerAddr = produceraddr
|
8327
|
+
@ProduceTime = producetime
|
8328
|
+
@PulsarMsgId = pulsarmsgid
|
8329
|
+
@DeadLetterResendTimes = deadletterresendtimes
|
8330
|
+
@ResendSuccessCount = resendsuccesscount
|
8331
|
+
end
|
8332
|
+
|
8333
|
+
def deserialize(params)
|
8334
|
+
@MsgId = params['MsgId']
|
8335
|
+
@MsgTag = params['MsgTag']
|
8336
|
+
@MsgKey = params['MsgKey']
|
8337
|
+
@ProducerAddr = params['ProducerAddr']
|
8338
|
+
@ProduceTime = params['ProduceTime']
|
8339
|
+
@PulsarMsgId = params['PulsarMsgId']
|
8340
|
+
@DeadLetterResendTimes = params['DeadLetterResendTimes']
|
8341
|
+
@ResendSuccessCount = params['ResendSuccessCount']
|
8342
|
+
end
|
8343
|
+
end
|
8344
|
+
|
8093
8345
|
# RocketMQ命名空间信息
|
8094
8346
|
class RocketMQNamespace < TencentCloud::Common::AbstractModel
|
8095
8347
|
# @param NamespaceId: 命名空间名称,3-64个字符,只能包含字母、数字、“-”及“_”
|
@@ -8954,6 +9206,26 @@ module TencentCloud
|
|
8954
9206
|
end
|
8955
9207
|
end
|
8956
9208
|
|
9209
|
+
# 消息轨迹结果
|
9210
|
+
class TraceResult < TencentCloud::Common::AbstractModel
|
9211
|
+
# @param Stage: 阶段
|
9212
|
+
# @type Stage: String
|
9213
|
+
# @param Data: 内容详情
|
9214
|
+
# @type Data: String
|
9215
|
+
|
9216
|
+
attr_accessor :Stage, :Data
|
9217
|
+
|
9218
|
+
def initialize(stage=nil, data=nil)
|
9219
|
+
@Stage = stage
|
9220
|
+
@Data = data
|
9221
|
+
end
|
9222
|
+
|
9223
|
+
def deserialize(params)
|
9224
|
+
@Stage = params['Stage']
|
9225
|
+
@Data = params['Data']
|
9226
|
+
end
|
9227
|
+
end
|
9228
|
+
|
8957
9229
|
# UnbindCmqDeadLetter请求参数结构体
|
8958
9230
|
class UnbindCmqDeadLetterRequest < TencentCloud::Common::AbstractModel
|
8959
9231
|
# @param SourceQueueName: 死信策略源队列名称,调用本接口会清空该队列的死信队列策略。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tdmq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.653
|
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-09-
|
11
|
+
date: 2023-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|