Class: TencentCloud::Dbbrain::V20191016::DescribeSlowLogTopSqlsResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dbbrain::V20191016::DescribeSlowLogTopSqlsResponse
- Defined in:
- lib/v20191016/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.
1284 1285 1286 1287 1288 |
# File 'lib/v20191016/models.rb', line 1284 def initialize(totalcount=nil, rows=nil, requestid=nil) @TotalCount = totalcount @Rows = rows @RequestId = requestid end |
Instance Attribute Details
#RequestId ⇒ Object
1282 1283 1284 |
# File 'lib/v20191016/models.rb', line 1282 def RequestId @RequestId end |
#Rows ⇒ Object
1282 1283 1284 |
# File 'lib/v20191016/models.rb', line 1282 def Rows @Rows end |
#TotalCount ⇒ Object
1282 1283 1284 |
# File 'lib/v20191016/models.rb', line 1282 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 |
# File 'lib/v20191016/models.rb', line 1290 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 |