Class: TencentCloud::Tdmq::V20200217::DescribeRocketMQConsumeStatsResponse

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

Overview

DescribeRocketMQConsumeStats返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(consumerstatslist = nil, requestid = nil) ⇒ DescribeRocketMQConsumeStatsResponse

Returns a new instance of DescribeRocketMQConsumeStatsResponse.



5936
5937
5938
5939
# File 'lib/v20200217/models.rb', line 5936

def initialize(consumerstatslist=nil, requestid=nil)
  @ConsumerStatsList = consumerstatslist
  @RequestId = requestid
end

Instance Attribute Details

#ConsumerStatsListObject

Parameters:

  • ConsumerStatsList:

    消费详情列表

  • RequestId:

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



5934
5935
5936
# File 'lib/v20200217/models.rb', line 5934

def ConsumerStatsList
  @ConsumerStatsList
end

#RequestIdObject

Parameters:

  • ConsumerStatsList:

    消费详情列表

  • RequestId:

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



5934
5935
5936
# File 'lib/v20200217/models.rb', line 5934

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
# File 'lib/v20200217/models.rb', line 5941

def deserialize(params)
  unless params['ConsumerStatsList'].nil?
    @ConsumerStatsList = []
    params['ConsumerStatsList'].each do |i|
      consumerstats_tmp = ConsumerStats.new
      consumerstats_tmp.deserialize(i)
      @ConsumerStatsList << consumerstats_tmp
    end
  end
  @RequestId = params['RequestId']
end