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.



3930
3931
3932
3933
# File 'lib/v20210527/models.rb', line 3930

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

Instance Attribute Details

#RequestIdObject

Parameters:

  • TopCostCmdList:

    命令列表

  • RequestId:

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



3928
3929
3930
# File 'lib/v20210527/models.rb', line 3928

def RequestId
  @RequestId
end

#TopCostCmdListObject

Parameters:

  • TopCostCmdList:

    命令列表

  • RequestId:

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



3928
3929
3930
# File 'lib/v20210527/models.rb', line 3928

def TopCostCmdList
  @TopCostCmdList
end

Instance Method Details

#deserialize(params) ⇒ Object



3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
# File 'lib/v20210527/models.rb', line 3935

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