Class: TencentCloud::Cls::V20201016::ModifyConfigRequest

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

Overview

ModifyConfig请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configid = nil, name = nil, path = nil, logtype = nil, extractrule = nil, excludepaths = nil, output = nil, userdefinerule = nil, advancedconfig = nil, inputtype = nil) ⇒ ModifyConfigRequest

Returns a new instance of ModifyConfigRequest.



13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
# File 'lib/v20201016/models.rb', line 13703

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

Instance Attribute Details

#AdvancedConfig ⇒ Object

  • 通过获取日志主题列表获取日志主题Id。
  • ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
  • ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
  • ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false 样例: {\"ClsAgentFileTimeout\":0,\"ClsAgentMaxDepth\":10,\"ClsAgentParseFailMerge\":true}
  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • ExtractRule: —

    提取规则,如果设置了ExtractRule,则必须设置LogType

  • ExcludePaths: —

    采集黑名单路径列表

  • Output: —

    采集配置关联的日志主题(TopicId)

  • UserDefineRule: —

    用户自定义解析字符串,Json格式序列化的字符串。

  • AdvancedConfig: —

    高级采集配置。 Json字符串, Key/Value定义为如下:

  • InputType: —

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



13701
13702
13703
# File 'lib/v20201016/models.rb', line 13701

def AdvancedConfig
  @AdvancedConfig
end

#ConfigId ⇒ Object

  • 通过获取日志主题列表获取日志主题Id。
  • ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
  • ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
  • ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false 样例: {\"ClsAgentFileTimeout\":0,\"ClsAgentMaxDepth\":10,\"ClsAgentParseFailMerge\":true}
  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • ExtractRule: —

    提取规则,如果设置了ExtractRule,则必须设置LogType

  • ExcludePaths: —

    采集黑名单路径列表

  • Output: —

    采集配置关联的日志主题(TopicId)

  • UserDefineRule: —

    用户自定义解析字符串,Json格式序列化的字符串。

  • AdvancedConfig: —

    高级采集配置。 Json字符串, Key/Value定义为如下:

  • InputType: —

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



13701
13702
13703
# File 'lib/v20201016/models.rb', line 13701

def ConfigId
  @ConfigId
end

#ExcludePaths ⇒ Object

  • 通过获取日志主题列表获取日志主题Id。
  • ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
  • ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
  • ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false 样例: {\"ClsAgentFileTimeout\":0,\"ClsAgentMaxDepth\":10,\"ClsAgentParseFailMerge\":true}
  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • ExtractRule: —

    提取规则,如果设置了ExtractRule,则必须设置LogType

  • ExcludePaths: —

    采集黑名单路径列表

  • Output: —

    采集配置关联的日志主题(TopicId)

  • UserDefineRule: —

    用户自定义解析字符串,Json格式序列化的字符串。

  • AdvancedConfig: —

    高级采集配置。 Json字符串, Key/Value定义为如下:

  • InputType: —

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



13701
13702
13703
# File 'lib/v20201016/models.rb', line 13701

def ExcludePaths
  @ExcludePaths
end

#ExtractRule ⇒ Object

  • 通过获取日志主题列表获取日志主题Id。
  • ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
  • ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
  • ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false 样例: {\"ClsAgentFileTimeout\":0,\"ClsAgentMaxDepth\":10,\"ClsAgentParseFailMerge\":true}
  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • ExtractRule: —

    提取规则,如果设置了ExtractRule,则必须设置LogType

  • ExcludePaths: —

    采集黑名单路径列表

  • Output: —

    采集配置关联的日志主题(TopicId)

  • UserDefineRule: —

    用户自定义解析字符串,Json格式序列化的字符串。

  • AdvancedConfig: —

    高级采集配置。 Json字符串, Key/Value定义为如下:

  • InputType: —

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



13701
13702
13703
# File 'lib/v20201016/models.rb', line 13701

def ExtractRule
  @ExtractRule
end

#InputType ⇒ Object

  • 通过获取日志主题列表获取日志主题Id。
  • ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
  • ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
  • ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false 样例: {\"ClsAgentFileTimeout\":0,\"ClsAgentMaxDepth\":10,\"ClsAgentParseFailMerge\":true}
  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • ExtractRule: —

    提取规则,如果设置了ExtractRule,则必须设置LogType

  • ExcludePaths: —

    采集黑名单路径列表

  • Output: —

    采集配置关联的日志主题(TopicId)

  • UserDefineRule: —

    用户自定义解析字符串,Json格式序列化的字符串。

  • AdvancedConfig: —

    高级采集配置。 Json字符串, Key/Value定义为如下:

  • InputType: —

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



13701
13702
13703
# File 'lib/v20201016/models.rb', line 13701

def InputType
  @InputType
end

#LogType ⇒ Object

  • 通过获取日志主题列表获取日志主题Id。
  • ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
  • ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
  • ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false 样例: {\"ClsAgentFileTimeout\":0,\"ClsAgentMaxDepth\":10,\"ClsAgentParseFailMerge\":true}
  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • ExtractRule: —

    提取规则,如果设置了ExtractRule,则必须设置LogType

  • ExcludePaths: —

    采集黑名单路径列表

  • Output: —

    采集配置关联的日志主题(TopicId)

  • UserDefineRule: —

    用户自定义解析字符串,Json格式序列化的字符串。

  • AdvancedConfig: —

    高级采集配置。 Json字符串, Key/Value定义为如下:

  • InputType: —

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



13701
13702
13703
# File 'lib/v20201016/models.rb', line 13701

def LogType
  @LogType
end

#Name ⇒ Object

  • 通过获取日志主题列表获取日志主题Id。
  • ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
  • ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
  • ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false 样例: {\"ClsAgentFileTimeout\":0,\"ClsAgentMaxDepth\":10,\"ClsAgentParseFailMerge\":true}
  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • ExtractRule: —

    提取规则,如果设置了ExtractRule,则必须设置LogType

  • ExcludePaths: —

    采集黑名单路径列表

  • Output: —

    采集配置关联的日志主题(TopicId)

  • UserDefineRule: —

    用户自定义解析字符串,Json格式序列化的字符串。

  • AdvancedConfig: —

    高级采集配置。 Json字符串, Key/Value定义为如下:

  • InputType: —

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



13701
13702
13703
# File 'lib/v20201016/models.rb', line 13701

def Name
  @Name
end

#Output ⇒ Object

  • 通过获取日志主题列表获取日志主题Id。
  • ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
  • ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
  • ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false 样例: {\"ClsAgentFileTimeout\":0,\"ClsAgentMaxDepth\":10,\"ClsAgentParseFailMerge\":true}
  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • ExtractRule: —

    提取规则,如果设置了ExtractRule,则必须设置LogType

  • ExcludePaths: —

    采集黑名单路径列表

  • Output: —

    采集配置关联的日志主题(TopicId)

  • UserDefineRule: —

    用户自定义解析字符串,Json格式序列化的字符串。

  • AdvancedConfig: —

    高级采集配置。 Json字符串, Key/Value定义为如下:

  • InputType: —

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



13701
13702
13703
# File 'lib/v20201016/models.rb', line 13701

def Output
  @Output
end

#Path ⇒ Object

  • 通过获取日志主题列表获取日志主题Id。
  • ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
  • ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
  • ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false 样例: {\"ClsAgentFileTimeout\":0,\"ClsAgentMaxDepth\":10,\"ClsAgentParseFailMerge\":true}
  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • ExtractRule: —

    提取规则,如果设置了ExtractRule,则必须设置LogType

  • ExcludePaths: —

    采集黑名单路径列表

  • Output: —

    采集配置关联的日志主题(TopicId)

  • UserDefineRule: —

    用户自定义解析字符串,Json格式序列化的字符串。

  • AdvancedConfig: —

    高级采集配置。 Json字符串, Key/Value定义为如下:

  • InputType: —

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



13701
13702
13703
# File 'lib/v20201016/models.rb', line 13701

def Path
  @Path
end

#UserDefineRule ⇒ Object

  • 通过获取日志主题列表获取日志主题Id。
  • ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
  • ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
  • ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false 样例: {\"ClsAgentFileTimeout\":0,\"ClsAgentMaxDepth\":10,\"ClsAgentParseFailMerge\":true}
  • file: 文件类型采集
  • windows_event:windows事件采集
  • syslog:系统日志采集

Parameters:

  • ExtractRule: —

    提取规则,如果设置了ExtractRule,则必须设置LogType

  • ExcludePaths: —

    采集黑名单路径列表

  • Output: —

    采集配置关联的日志主题(TopicId)

  • UserDefineRule: —

    用户自定义解析字符串,Json格式序列化的字符串。

  • AdvancedConfig: —

    高级采集配置。 Json字符串, Key/Value定义为如下:

  • InputType: —

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



13701
13702
13703
# File 'lib/v20201016/models.rb', line 13701

def UserDefineRule
  @UserDefineRule
end

Instance Method Details

#deserialize(params) ⇒ Object



13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
# File 'lib/v20201016/models.rb', line 13716

def deserialize(params)
  @ConfigId = params['ConfigId']
  @Name = params['Name']
  @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']
  @UserDefineRule = params['UserDefineRule']
  @AdvancedConfig = params['AdvancedConfig']
  @InputType = params['InputType']
end