Class: TencentCloud::Cls::V20201016::ConfigInfo

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

Overview

采集规则配置信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configid = nil, name = nil, logformat = nil, path = nil, logtype = nil, extractrule = nil, excludepaths = nil, output = nil, updatetime = nil, createtime = nil, userdefinerule = nil, advancedconfig = nil, inputtype = nil) ⇒ ConfigInfo

Returns a new instance of ConfigInfo.



1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
# File 'lib/v20201016/models.rb', line 1647

def initialize(configid=nil, name=nil, logformat=nil, path=nil, logtype=nil, extractrule=nil, excludepaths=nil, output=nil, updatetime=nil, createtime=nil, userdefinerule=nil, advancedconfig=nil, inputtype=nil)
  @ConfigId = configid
  @Name = name
  @LogFormat = logformat
  @Path = path
  @LogType = logtype
  @ExtractRule = extractrule
  @ExcludePaths = excludepaths
  @Output = output
  @UpdateTime = updatetime
  @CreateTime = createtime
  @UserDefineRule = userdefinerule
  @AdvancedConfig = advancedconfig
  @InputType = inputtype
end

Instance Attribute Details

#AdvancedConfig ⇒ Object

控制台默认占位值:{\"ClsAgentDefault\":0}

  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • InputType: —

    日志输入类型(注:windows场景必填且仅支持file和windows_event类型)



1645
1646
1647
# File 'lib/v20201016/models.rb', line 1645

def AdvancedConfig
  @AdvancedConfig
end

#ConfigId ⇒ Object

控制台默认占位值:{\"ClsAgentDefault\":0}

  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • InputType: —

    日志输入类型(注:windows场景必填且仅支持file和windows_event类型)



1645
1646
1647
# File 'lib/v20201016/models.rb', line 1645

def ConfigId
  @ConfigId
end

#CreateTime ⇒ Object

控制台默认占位值:{\"ClsAgentDefault\":0}

  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • InputType: —

    日志输入类型(注:windows场景必填且仅支持file和windows_event类型)



1645
1646
1647
# File 'lib/v20201016/models.rb', line 1645

def CreateTime
  @CreateTime
end

#ExcludePaths ⇒ Object

控制台默认占位值:{\"ClsAgentDefault\":0}

  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • InputType: —

    日志输入类型(注:windows场景必填且仅支持file和windows_event类型)



1645
1646
1647
# File 'lib/v20201016/models.rb', line 1645

def ExcludePaths
  @ExcludePaths
end

#ExtractRule ⇒ Object

控制台默认占位值:{\"ClsAgentDefault\":0}

  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • InputType: —

    日志输入类型(注:windows场景必填且仅支持file和windows_event类型)



1645
1646
1647
# File 'lib/v20201016/models.rb', line 1645

def ExtractRule
  @ExtractRule
end

#InputType ⇒ Object

控制台默认占位值:{\"ClsAgentDefault\":0}

  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • InputType: —

    日志输入类型(注:windows场景必填且仅支持file和windows_event类型)



1645
1646
1647
# File 'lib/v20201016/models.rb', line 1645

def InputType
  @InputType
end

#LogFormat ⇒ Object

控制台默认占位值:{\"ClsAgentDefault\":0}

  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • InputType: —

    日志输入类型(注:windows场景必填且仅支持file和windows_event类型)



1645
1646
1647
# File 'lib/v20201016/models.rb', line 1645

def LogFormat
  @LogFormat
end

#LogType ⇒ Object

控制台默认占位值:{\"ClsAgentDefault\":0}

  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • InputType: —

    日志输入类型(注:windows场景必填且仅支持file和windows_event类型)



1645
1646
1647
# File 'lib/v20201016/models.rb', line 1645

def LogType
  @LogType
end

#Name ⇒ Object

控制台默认占位值:{\"ClsAgentDefault\":0}

  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • InputType: —

    日志输入类型(注:windows场景必填且仅支持file和windows_event类型)



1645
1646
1647
# File 'lib/v20201016/models.rb', line 1645

def Name
  @Name
end

#Output ⇒ Object

控制台默认占位值:{\"ClsAgentDefault\":0}

  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • InputType: —

    日志输入类型(注:windows场景必填且仅支持file和windows_event类型)



1645
1646
1647
# File 'lib/v20201016/models.rb', line 1645

def Output
  @Output
end

#Path ⇒ Object

控制台默认占位值:{\"ClsAgentDefault\":0}

  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • InputType: —

    日志输入类型(注:windows场景必填且仅支持file和windows_event类型)



1645
1646
1647
# File 'lib/v20201016/models.rb', line 1645

def Path
  @Path
end

#UpdateTime ⇒ Object

控制台默认占位值:{\"ClsAgentDefault\":0}

  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • InputType: —

    日志输入类型(注:windows场景必填且仅支持file和windows_event类型)



1645
1646
1647
# File 'lib/v20201016/models.rb', line 1645

def UpdateTime
  @UpdateTime
end

#UserDefineRule ⇒ Object

控制台默认占位值:{\"ClsAgentDefault\":0}

  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • InputType: —

    日志输入类型(注:windows场景必填且仅支持file和windows_event类型)



1645
1646
1647
# File 'lib/v20201016/models.rb', line 1645

def UserDefineRule
  @UserDefineRule
end

Instance Method Details

#deserialize(params) ⇒ Object



1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
# File 'lib/v20201016/models.rb', line 1663

def deserialize(params)
  @ConfigId = params['ConfigId']
  @Name = params['Name']
  @LogFormat = params['LogFormat']
  @Path = params['Path']
  @LogType = params['LogType']
  unless params['ExtractRule'].nil?
    @ExtractRule = ExtractRuleInfo.new
    @ExtractRule.deserialize(params['ExtractRule'])
  end
  unless params['ExcludePaths'].nil?
    @ExcludePaths = []
    params['ExcludePaths'].each do |i|
      excludepathinfo_tmp = ExcludePathInfo.new
      excludepathinfo_tmp.deserialize(i)
      @ExcludePaths << excludepathinfo_tmp
    end
  end
  @Output = params['Output']
  @UpdateTime = params['UpdateTime']
  @CreateTime = params['CreateTime']
  @UserDefineRule = params['UserDefineRule']
  @AdvancedConfig = params['AdvancedConfig']
  @InputType = params['InputType']
end