Class: TencentCloud::Cls::V20201016::LogContextInfo
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cls::V20201016::LogContextInfo
- Defined in:
- lib/v20201016/models.rb
Overview
日志上下文信息
Instance Attribute Summary collapse
- #BTime ⇒ Object
- #Content ⇒ Object
- #Filename ⇒ Object
- #HighLights ⇒ Object
- #HostName ⇒ Object
- #IndexStatus ⇒ Object
- #PkgId ⇒ Object
- #PkgLogId ⇒ Object
- #RawLog ⇒ Object
- #Source ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(source = nil, filename = nil, content = nil, pkgid = nil, pkglogid = nil, btime = nil, hostname = nil, rawlog = nil, indexstatus = nil, highlights = nil) ⇒ LogContextInfo
constructor
A new instance of LogContextInfo.
Constructor Details
#initialize(source = nil, filename = nil, content = nil, pkgid = nil, pkglogid = nil, btime = nil, hostname = nil, rawlog = nil, indexstatus = nil, highlights = nil) ⇒ LogContextInfo
Returns a new instance of LogContextInfo.
12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 |
# File 'lib/v20201016/models.rb', line 12102 def initialize(source=nil, filename=nil, content=nil, pkgid=nil, pkglogid=nil, btime=nil, hostname=nil, rawlog=nil, indexstatus=nil, highlights=nil) @Source = source @Filename = filename @Content = content @PkgId = pkgid @PkgLogId = pkglogid @BTime = btime @HostName = hostname @RawLog = rawlog @IndexStatus = indexstatus @HighLights = highlights end |
Instance Attribute Details
#BTime ⇒ Object
12100 12101 12102 |
# File 'lib/v20201016/models.rb', line 12100 def BTime @BTime end |
#Content ⇒ Object
12100 12101 12102 |
# File 'lib/v20201016/models.rb', line 12100 def Content @Content end |
#Filename ⇒ Object
12100 12101 12102 |
# File 'lib/v20201016/models.rb', line 12100 def Filename @Filename end |
#HighLights ⇒ Object
12100 12101 12102 |
# File 'lib/v20201016/models.rb', line 12100 def HighLights @HighLights end |
#HostName ⇒ Object
12100 12101 12102 |
# File 'lib/v20201016/models.rb', line 12100 def HostName @HostName end |
#IndexStatus ⇒ Object
12100 12101 12102 |
# File 'lib/v20201016/models.rb', line 12100 def IndexStatus @IndexStatus end |
#PkgId ⇒ Object
12100 12101 12102 |
# File 'lib/v20201016/models.rb', line 12100 def PkgId @PkgId end |
#PkgLogId ⇒ Object
12100 12101 12102 |
# File 'lib/v20201016/models.rb', line 12100 def PkgLogId @PkgLogId end |
#RawLog ⇒ Object
12100 12101 12102 |
# File 'lib/v20201016/models.rb', line 12100 def RawLog @RawLog end |
#Source ⇒ Object
12100 12101 12102 |
# File 'lib/v20201016/models.rb', line 12100 def Source @Source end |
Instance Method Details
#deserialize(params) ⇒ Object
12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 |
# File 'lib/v20201016/models.rb', line 12115 def deserialize(params) @Source = params['Source'] @Filename = params['Filename'] @Content = params['Content'] @PkgId = params['PkgId'] @PkgLogId = params['PkgLogId'] @BTime = params['BTime'] @HostName = params['HostName'] @RawLog = params['RawLog'] @IndexStatus = params['IndexStatus'] unless params['HighLights'].nil? @HighLights = [] params['HighLights'].each do |i| highlightitem_tmp = HighLightItem.new highlightitem_tmp.deserialize(i) @HighLights << highlightitem_tmp end end end |