Class: TencentCloud::Dbbrain::V20210527::DescribeSlowLogTopSqlsResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dbbrain::V20210527::DescribeSlowLogTopSqlsResponse
- Defined in:
- lib/v20210527/models.rb
Overview
DescribeSlowLogTopSqls返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, rows = nil, requestid = nil) ⇒ DescribeSlowLogTopSqlsResponse
constructor
A new instance of DescribeSlowLogTopSqlsResponse.
Constructor Details
#initialize(totalcount = nil, rows = nil, requestid = nil) ⇒ DescribeSlowLogTopSqlsResponse
Returns a new instance of DescribeSlowLogTopSqlsResponse.
4462 4463 4464 4465 4466 |
# File 'lib/v20210527/models.rb', line 4462 def initialize(totalcount=nil, rows=nil, requestid=nil) @TotalCount = totalcount @Rows = rows @RequestId = requestid end |
Instance Attribute Details
#RequestId ⇒ Object
4460 4461 4462 |
# File 'lib/v20210527/models.rb', line 4460 def RequestId @RequestId end |
#Rows ⇒ Object
4460 4461 4462 |
# File 'lib/v20210527/models.rb', line 4460 def Rows @Rows end |
#TotalCount ⇒ Object
4460 4461 4462 |
# File 'lib/v20210527/models.rb', line 4460 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 |
# File 'lib/v20210527/models.rb', line 4468 def deserialize(params) @TotalCount = params['TotalCount'] unless params['Rows'].nil? @Rows = [] params['Rows'].each do |i| slowlogtopsqlitem_tmp = SlowLogTopSqlItem.new slowlogtopsqlitem_tmp.deserialize(i) @Rows << slowlogtopsqlitem_tmp end end @RequestId = params['RequestId'] end |