Class: TencentCloud::Tdmq::V20200217::DescribeRocketMQTopicStatsResponse

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20200217/models.rb

Overview

DescribeRocketMQTopicStats返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topicstatslist = nil, requestid = nil) ⇒ DescribeRocketMQTopicStatsResponse

Returns a new instance of DescribeRocketMQTopicStatsResponse.



7344
7345
7346
7347
# File 'lib/v20200217/models.rb', line 7344

def initialize(topicstatslist=nil, requestid=nil)
  @TopicStatsList = topicstatslist
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TopicStatsList:

    生产详情列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



7342
7343
7344
# File 'lib/v20200217/models.rb', line 7342

def RequestId
  @RequestId
end

#TopicStatsListObject

Parameters:

  • TopicStatsList:

    生产详情列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



7342
7343
7344
# File 'lib/v20200217/models.rb', line 7342

def TopicStatsList
  @TopicStatsList
end

Instance Method Details

#deserialize(params) ⇒ Object



7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
# File 'lib/v20200217/models.rb', line 7349

def deserialize(params)
  unless params['TopicStatsList'].nil?
    @TopicStatsList = []
    params['TopicStatsList'].each do |i|
      topicstats_tmp = TopicStats.new
      topicstats_tmp.deserialize(i)
      @TopicStatsList << topicstats_tmp
    end
  end
  @RequestId = params['RequestId']
end