Class: TencentCloud::Cdb::V20170320::SlowLogItem

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

Overview

结构化的慢日志详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timestamp = nil, querytime = nil, sqltext = nil, userhost = nil, username = nil, database = nil, locktime = nil, rowsexamined = nil, rowssent = nil, sqltemplate = nil, md5 = nil) ⇒ SlowLogItem

Returns a new instance of SlowLogItem.



13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
# File 'lib/v20170320/models.rb', line 13575

def initialize(timestamp=nil, querytime=nil, sqltext=nil, userhost=nil, username=nil, database=nil, locktime=nil, rowsexamined=nil, rowssent=nil, sqltemplate=nil, md5=nil)
  @Timestamp = timestamp
  @QueryTime = querytime
  @SqlText = sqltext
  @UserHost = userhost
  @UserName = username
  @Database = database
  @LockTime = locktime
  @RowsExamined = rowsexamined
  @RowsSent = rowssent
  @SqlTemplate = sqltemplate
  @Md5 = md5
end

Instance Attribute Details

#DatabaseObject

Parameters:

  • Timestamp:

    Sql的执行时间。

  • QueryTime:

    Sql的执行时长(秒)。

  • SqlText:

    Sql语句。

  • UserHost:

    客户端地址。

  • UserName:

    用户名。

  • Database:

    数据库名。

  • LockTime:

    锁时长(秒)。

  • RowsExamined:

    扫描行数。

  • RowsSent:

    结果集行数。

  • SqlTemplate:

    Sql模板。

  • Md5:

    Sql语句的md5。



13573
13574
13575
# File 'lib/v20170320/models.rb', line 13573

def Database
  @Database
end

#LockTimeObject

Parameters:

  • Timestamp:

    Sql的执行时间。

  • QueryTime:

    Sql的执行时长(秒)。

  • SqlText:

    Sql语句。

  • UserHost:

    客户端地址。

  • UserName:

    用户名。

  • Database:

    数据库名。

  • LockTime:

    锁时长(秒)。

  • RowsExamined:

    扫描行数。

  • RowsSent:

    结果集行数。

  • SqlTemplate:

    Sql模板。

  • Md5:

    Sql语句的md5。



13573
13574
13575
# File 'lib/v20170320/models.rb', line 13573

def LockTime
  @LockTime
end

#Md5Object

Parameters:

  • Timestamp:

    Sql的执行时间。

  • QueryTime:

    Sql的执行时长(秒)。

  • SqlText:

    Sql语句。

  • UserHost:

    客户端地址。

  • UserName:

    用户名。

  • Database:

    数据库名。

  • LockTime:

    锁时长(秒)。

  • RowsExamined:

    扫描行数。

  • RowsSent:

    结果集行数。

  • SqlTemplate:

    Sql模板。

  • Md5:

    Sql语句的md5。



13573
13574
13575
# File 'lib/v20170320/models.rb', line 13573

def Md5
  @Md5
end

#QueryTimeObject

Parameters:

  • Timestamp:

    Sql的执行时间。

  • QueryTime:

    Sql的执行时长(秒)。

  • SqlText:

    Sql语句。

  • UserHost:

    客户端地址。

  • UserName:

    用户名。

  • Database:

    数据库名。

  • LockTime:

    锁时长(秒)。

  • RowsExamined:

    扫描行数。

  • RowsSent:

    结果集行数。

  • SqlTemplate:

    Sql模板。

  • Md5:

    Sql语句的md5。



13573
13574
13575
# File 'lib/v20170320/models.rb', line 13573

def QueryTime
  @QueryTime
end

#RowsExaminedObject

Parameters:

  • Timestamp:

    Sql的执行时间。

  • QueryTime:

    Sql的执行时长(秒)。

  • SqlText:

    Sql语句。

  • UserHost:

    客户端地址。

  • UserName:

    用户名。

  • Database:

    数据库名。

  • LockTime:

    锁时长(秒)。

  • RowsExamined:

    扫描行数。

  • RowsSent:

    结果集行数。

  • SqlTemplate:

    Sql模板。

  • Md5:

    Sql语句的md5。



13573
13574
13575
# File 'lib/v20170320/models.rb', line 13573

def RowsExamined
  @RowsExamined
end

#RowsSentObject

Parameters:

  • Timestamp:

    Sql的执行时间。

  • QueryTime:

    Sql的执行时长(秒)。

  • SqlText:

    Sql语句。

  • UserHost:

    客户端地址。

  • UserName:

    用户名。

  • Database:

    数据库名。

  • LockTime:

    锁时长(秒)。

  • RowsExamined:

    扫描行数。

  • RowsSent:

    结果集行数。

  • SqlTemplate:

    Sql模板。

  • Md5:

    Sql语句的md5。



13573
13574
13575
# File 'lib/v20170320/models.rb', line 13573

def RowsSent
  @RowsSent
end

#SqlTemplateObject

Parameters:

  • Timestamp:

    Sql的执行时间。

  • QueryTime:

    Sql的执行时长(秒)。

  • SqlText:

    Sql语句。

  • UserHost:

    客户端地址。

  • UserName:

    用户名。

  • Database:

    数据库名。

  • LockTime:

    锁时长(秒)。

  • RowsExamined:

    扫描行数。

  • RowsSent:

    结果集行数。

  • SqlTemplate:

    Sql模板。

  • Md5:

    Sql语句的md5。



13573
13574
13575
# File 'lib/v20170320/models.rb', line 13573

def SqlTemplate
  @SqlTemplate
end

#SqlTextObject

Parameters:

  • Timestamp:

    Sql的执行时间。

  • QueryTime:

    Sql的执行时长(秒)。

  • SqlText:

    Sql语句。

  • UserHost:

    客户端地址。

  • UserName:

    用户名。

  • Database:

    数据库名。

  • LockTime:

    锁时长(秒)。

  • RowsExamined:

    扫描行数。

  • RowsSent:

    结果集行数。

  • SqlTemplate:

    Sql模板。

  • Md5:

    Sql语句的md5。



13573
13574
13575
# File 'lib/v20170320/models.rb', line 13573

def SqlText
  @SqlText
end

#TimestampObject

Parameters:

  • Timestamp:

    Sql的执行时间。

  • QueryTime:

    Sql的执行时长(秒)。

  • SqlText:

    Sql语句。

  • UserHost:

    客户端地址。

  • UserName:

    用户名。

  • Database:

    数据库名。

  • LockTime:

    锁时长(秒)。

  • RowsExamined:

    扫描行数。

  • RowsSent:

    结果集行数。

  • SqlTemplate:

    Sql模板。

  • Md5:

    Sql语句的md5。



13573
13574
13575
# File 'lib/v20170320/models.rb', line 13573

def Timestamp
  @Timestamp
end

#UserHostObject

Parameters:

  • Timestamp:

    Sql的执行时间。

  • QueryTime:

    Sql的执行时长(秒)。

  • SqlText:

    Sql语句。

  • UserHost:

    客户端地址。

  • UserName:

    用户名。

  • Database:

    数据库名。

  • LockTime:

    锁时长(秒)。

  • RowsExamined:

    扫描行数。

  • RowsSent:

    结果集行数。

  • SqlTemplate:

    Sql模板。

  • Md5:

    Sql语句的md5。



13573
13574
13575
# File 'lib/v20170320/models.rb', line 13573

def UserHost
  @UserHost
end

#UserNameObject

Parameters:

  • Timestamp:

    Sql的执行时间。

  • QueryTime:

    Sql的执行时长(秒)。

  • SqlText:

    Sql语句。

  • UserHost:

    客户端地址。

  • UserName:

    用户名。

  • Database:

    数据库名。

  • LockTime:

    锁时长(秒)。

  • RowsExamined:

    扫描行数。

  • RowsSent:

    结果集行数。

  • SqlTemplate:

    Sql模板。

  • Md5:

    Sql语句的md5。



13573
13574
13575
# File 'lib/v20170320/models.rb', line 13573

def UserName
  @UserName
end

Instance Method Details

#deserialize(params) ⇒ Object



13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
# File 'lib/v20170320/models.rb', line 13589

def deserialize(params)
  @Timestamp = params['Timestamp']
  @QueryTime = params['QueryTime']
  @SqlText = params['SqlText']
  @UserHost = params['UserHost']
  @UserName = params['UserName']
  @Database = params['Database']
  @LockTime = params['LockTime']
  @RowsExamined = params['RowsExamined']
  @RowsSent = params['RowsSent']
  @SqlTemplate = params['SqlTemplate']
  @Md5 = params['Md5']
end