Class: TencentCloud::Dbbrain::V20210527::DescribeRedisTopKeyPrefixListResponse

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

Overview

DescribeRedisTopKeyPrefixList返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(items = nil, timestamp = nil, requestid = nil) ⇒ DescribeRedisTopKeyPrefixListResponse

Returns a new instance of DescribeRedisTopKeyPrefixListResponse.



3980
3981
3982
3983
3984
# File 'lib/v20210527/models.rb', line 3980

def initialize(items=nil, timestamp=nil, requestid=nil)
  @Items = items
  @Timestamp = timestamp
  @RequestId = requestid
end

Instance Attribute Details

#ItemsObject

Parameters:

  • Items:

    top key前缀列表。

  • Timestamp:

    采集时间戳(秒)。

  • RequestId:

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



3978
3979
3980
# File 'lib/v20210527/models.rb', line 3978

def Items
  @Items
end

#RequestIdObject

Parameters:

  • Items:

    top key前缀列表。

  • Timestamp:

    采集时间戳(秒)。

  • RequestId:

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



3978
3979
3980
# File 'lib/v20210527/models.rb', line 3978

def RequestId
  @RequestId
end

#TimestampObject

Parameters:

  • Items:

    top key前缀列表。

  • Timestamp:

    采集时间戳(秒)。

  • RequestId:

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



3978
3979
3980
# File 'lib/v20210527/models.rb', line 3978

def Timestamp
  @Timestamp
end

Instance Method Details

#deserialize(params) ⇒ Object



3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
# File 'lib/v20210527/models.rb', line 3986

def deserialize(params)
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      redisprekeyspacedata_tmp = RedisPreKeySpaceData.new
      redisprekeyspacedata_tmp.deserialize(i)
      @Items << redisprekeyspacedata_tmp
    end
  end
  @Timestamp = params['Timestamp']
  @RequestId = params['RequestId']
end