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.



4053
4054
4055
4056
4057
# File 'lib/v20210527/models.rb', line 4053

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。



4051
4052
4053
# File 'lib/v20210527/models.rb', line 4051

def Items
  @Items
end

#RequestIdObject

Parameters:

  • Items:

    top key前缀列表。

  • Timestamp:

    采集时间戳(秒)。

  • RequestId:

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



4051
4052
4053
# File 'lib/v20210527/models.rb', line 4051

def RequestId
  @RequestId
end

#TimestampObject

Parameters:

  • Items:

    top key前缀列表。

  • Timestamp:

    采集时间戳(秒)。

  • RequestId:

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



4051
4052
4053
# File 'lib/v20210527/models.rb', line 4051

def Timestamp
  @Timestamp
end

Instance Method Details

#deserialize(params) ⇒ Object



4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
# File 'lib/v20210527/models.rb', line 4059

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