Class: TencentCloud::Cdb::V20170320::AuditLog
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdb::V20170320::AuditLog
- Defined in:
- lib/v20170320/models.rb
Overview
审计日志详细信息
Instance Attribute Summary collapse
- #AffectRows ⇒ Object
- #CheckRows ⇒ Object
- #CpuTime ⇒ Object
- #DBName ⇒ Object
- #ErrCode ⇒ Object
- #ExecTime ⇒ Object
- #Host ⇒ Object
- #IoWaitTime ⇒ Object
- #LockWaitTime ⇒ Object
- #NsTime ⇒ Object
- #PolicyName ⇒ Object
- #SentRows ⇒ Object
- #Sql ⇒ Object
- #SqlType ⇒ Object
- #TemplateInfo ⇒ Object
- #ThreadId ⇒ Object
- #Timestamp ⇒ Object
- #TrxId ⇒ Object
- #TrxLivingTime ⇒ Object
- #User ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(affectrows = nil, errcode = nil, sqltype = nil, policyname = nil, dbname = nil, sql = nil, host = nil, user = nil, exectime = nil, timestamp = nil, sentrows = nil, threadid = nil, checkrows = nil, cputime = nil, iowaittime = nil, lockwaittime = nil, nstime = nil, trxlivingtime = nil, templateinfo = nil, trxid = nil) ⇒ AuditLog
constructor
A new instance of AuditLog.
Constructor Details
#initialize(affectrows = nil, errcode = nil, sqltype = nil, policyname = nil, dbname = nil, sql = nil, host = nil, user = nil, exectime = nil, timestamp = nil, sentrows = nil, threadid = nil, checkrows = nil, cputime = nil, iowaittime = nil, lockwaittime = nil, nstime = nil, trxlivingtime = nil, templateinfo = nil, trxid = nil) ⇒ AuditLog
Returns a new instance of AuditLog.
688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 |
# File 'lib/v20170320/models.rb', line 688 def initialize(affectrows=nil, errcode=nil, sqltype=nil, policyname=nil, dbname=nil, sql=nil, host=nil, user=nil, exectime=nil, =nil, sentrows=nil, threadid=nil, checkrows=nil, cputime=nil, iowaittime=nil, lockwaittime=nil, nstime=nil, trxlivingtime=nil, templateinfo=nil, trxid=nil) @AffectRows = affectrows @ErrCode = errcode @SqlType = sqltype @PolicyName = policyname @DBName = dbname @Sql = sql @Host = host @User = user @ExecTime = exectime @Timestamp = @SentRows = sentrows @ThreadId = threadid @CheckRows = checkrows @CpuTime = cputime @IoWaitTime = iowaittime @LockWaitTime = lockwaittime @NsTime = nstime @TrxLivingTime = trxlivingtime @TemplateInfo = templateinfo @TrxId = trxid end |
Instance Attribute Details
#AffectRows ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def AffectRows @AffectRows end |
#CheckRows ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def CheckRows @CheckRows end |
#CpuTime ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def CpuTime @CpuTime end |
#DBName ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def DBName @DBName end |
#ErrCode ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def ErrCode @ErrCode end |
#ExecTime ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def ExecTime @ExecTime end |
#Host ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def Host @Host end |
#IoWaitTime ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def IoWaitTime @IoWaitTime end |
#LockWaitTime ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def LockWaitTime @LockWaitTime end |
#NsTime ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def NsTime @NsTime end |
#PolicyName ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def PolicyName @PolicyName end |
#SentRows ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def SentRows @SentRows end |
#Sql ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def Sql @Sql end |
#SqlType ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def SqlType @SqlType end |
#TemplateInfo ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def TemplateInfo @TemplateInfo end |
#ThreadId ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def ThreadId @ThreadId end |
#Timestamp ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def Timestamp @Timestamp end |
#TrxId ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def TrxId @TrxId end |
#TrxLivingTime ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def TrxLivingTime @TrxLivingTime end |
#User ⇒ Object
686 687 688 |
# File 'lib/v20170320/models.rb', line 686 def User @User end |
Instance Method Details
#deserialize(params) ⇒ Object
711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 |
# File 'lib/v20170320/models.rb', line 711 def deserialize(params) @AffectRows = params['AffectRows'] @ErrCode = params['ErrCode'] @SqlType = params['SqlType'] @PolicyName = params['PolicyName'] @DBName = params['DBName'] @Sql = params['Sql'] @Host = params['Host'] @User = params['User'] @ExecTime = params['ExecTime'] @Timestamp = params['Timestamp'] @SentRows = params['SentRows'] @ThreadId = params['ThreadId'] @CheckRows = params['CheckRows'] @CpuTime = params['CpuTime'] @IoWaitTime = params['IoWaitTime'] @LockWaitTime = params['LockWaitTime'] @NsTime = params['NsTime'] @TrxLivingTime = params['TrxLivingTime'] unless params['TemplateInfo'].nil? @TemplateInfo = [] params['TemplateInfo'].each do |i| logruletemplateinfo_tmp = LogRuleTemplateInfo.new logruletemplateinfo_tmp.deserialize(i) @TemplateInfo << logruletemplateinfo_tmp end end @TrxId = params['TrxId'] end |