Class: TencentCloud::Dbbrain::V20210527::DescribeRedisTopCostCommandsResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dbbrain::V20210527::DescribeRedisTopCostCommandsResponse
- Defined in:
- lib/v20210527/models.rb
Overview
DescribeRedisTopCostCommands返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(topcostcmdlist = nil, requestid = nil) ⇒ DescribeRedisTopCostCommandsResponse
constructor
A new instance of DescribeRedisTopCostCommandsResponse.
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
#RequestId ⇒ Object
3923 3924 3925 |
# File 'lib/v20210527/models.rb', line 3923 def RequestId @RequestId end |
#TopCostCmdList ⇒ Object
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 |