Class: TencentCloud::Dbbrain::V20210527::DescribeSlowLogsResponse

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

Overview

DescribeSlowLogs返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, rows = nil, requestid = nil) ⇒ DescribeSlowLogsResponse

Returns a new instance of DescribeSlowLogsResponse.



4494
4495
4496
4497
4498
# File 'lib/v20210527/models.rb', line 4494

def initialize(totalcount=nil, rows=nil, requestid=nil)
  @TotalCount = totalcount
  @Rows = rows
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    符合条件的记录总数。

  • Rows:

    慢日志明细

  • RequestId:

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



4492
4493
4494
# File 'lib/v20210527/models.rb', line 4492

def RequestId
  @RequestId
end

#RowsObject

Parameters:

  • TotalCount:

    符合条件的记录总数。

  • Rows:

    慢日志明细

  • RequestId:

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



4492
4493
4494
# File 'lib/v20210527/models.rb', line 4492

def Rows
  @Rows
end

#TotalCountObject

Parameters:

  • TotalCount:

    符合条件的记录总数。

  • Rows:

    慢日志明细

  • RequestId:

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



4492
4493
4494
# File 'lib/v20210527/models.rb', line 4492

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
# File 'lib/v20210527/models.rb', line 4500

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Rows'].nil?
    @Rows = []
    params['Rows'].each do |i|
      slowloginfoitem_tmp = SlowLogInfoItem.new
      slowloginfoitem_tmp.deserialize(i)
      @Rows << slowloginfoitem_tmp
    end
  end
  @RequestId = params['RequestId']
end