Class: TencentCloud::Dbbrain::V20210527::DescribeRedisTopCostCommandsResponse

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

Overview

DescribeRedisTopCostCommands返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topcostcmdlist = nil, requestid = nil) ⇒ DescribeRedisTopCostCommandsResponse

Returns a new instance of DescribeRedisTopCostCommandsResponse.



3925
3926
3927
3928
# File 'lib/v20210527/models.rb', line 3925

def initialize(topcostcmdlist=nil, requestid=nil)
  @TopCostCmdList = topcostcmdlist
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TopCostCmdList:

    命令列表

  • RequestId:

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



3923
3924
3925
# File 'lib/v20210527/models.rb', line 3923

def RequestId
  @RequestId
end

#TopCostCmdListObject

Parameters:

  • TopCostCmdList:

    命令列表

  • RequestId:

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



3923
3924
3925
# File 'lib/v20210527/models.rb', line 3923

def TopCostCmdList
  @TopCostCmdList
end

Instance Method Details

#deserialize(params) ⇒ Object



3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
# File 'lib/v20210527/models.rb', line 3930

def deserialize(params)
  unless params['TopCostCmdList'].nil?
    @TopCostCmdList = []
    params['TopCostCmdList'].each do |i|
      rediscostcmd_tmp = RedisCostCmd.new
      rediscostcmd_tmp.deserialize(i)
      @TopCostCmdList << rediscostcmd_tmp
    end
  end
  @RequestId = params['RequestId']
end