public class ModifyConfigExtraRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModifyConfigExtraRequest() |
ModifyConfigExtraRequest(ModifyConfigExtraRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getAdvancedConfig()
Get 高级采集配置。 Json字符串, Key/Value定义为如下:
- ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
- ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
- ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false
- ClsAgentDefault(自定义默认值,无特殊含义,用于清空其他选项),建议取值0
|
String |
getConfigExtraId()
Get 采集配置扩展信息id
|
String |
getConfigFlag()
Get 自建采集配置标
|
ContainerFileInfo |
getContainerFile()
Get 采集配置标记。
- 目前只支持label_k8s,用于标记自建k8s集群使用的采集配置
|
ContainerStdoutInfo |
getContainerStdout()
Get 容器标准输出信息
|
ExcludePathInfo[] |
getExcludePaths()
Get 采集黑名单路径列表
|
ExtractRuleInfo |
getExtractRule()
Get 提取规则,如果设置了ExtractRule,则必须设置LogType
|
String |
getGroupId()
Get 机器组ID
|
HostFileInfo |
getHostFile()
Get 节点文件配置信息
|
String |
getLogFormat()
Get 日志格式化方式,用于容器采集场景。
- stdout-docker-json:用于docker容器采集场景
- stdout-containerd:用于containerd容器采集场景
|
String |
getLogsetId()
Get 日志集ID
|
String |
getLogsetName()
Get 日志集name
|
String |
getLogType()
Get 采集的日志类型,默认为minimalist_log。支持以下类型:
- json_log代表:JSON-文件日志(详见[使用 JSON 提取模式采集日志](https://cloud.tencent.com/document/product/614/17419));
- delimiter_log代表:分隔符-文件日志(详见[使用分隔符提取模式采集日志](https://cloud.tencent.com/document/product/614/17420));
- minimalist_log代表:单行全文-文件日志(详见[使用单行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17421));
- fullregex_log代表:单行完全正则-文件日志(详见[使用单行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52365));
- multiline_log代表:多行全文-文件日志(详见[使用多行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17422));
- multiline_fullregex_log代表:多行完全正则-文件日志(详见[使用多行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52366));
- user_define_log代表:组合解析(适用于多格式嵌套的日志,详见[使用组合解析提取模式采集日志](https://cloud.tencent.com/document/product/614/61310))。
|
String |
getName()
Get 采集配置规程名称,最长63个字符,只能包含小写字符、数字及分隔符(“-”),且必须以小写字符开头,数字或小写字符结尾
|
String |
getTopicId()
Get 日志主题id
|
String |
getTopicName()
Get 日志主题name
|
String |
getType()
Get 类型:container_stdout、container_file、host_file
|
String |
getUserDefineRule()
Get 组合解析采集规则,用于复杂场景下的日志采集。
- 取值参考:[使用组合解析提取模式采集日志
](https://cloud.tencent.com/document/product/614/61310)
|
void |
setAdvancedConfig(String AdvancedConfig)
Set 高级采集配置。 Json字符串, Key/Value定义为如下:
- ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
- ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
- ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false
- ClsAgentDefault(自定义默认值,无特殊含义,用于清空其他选项),建议取值0
|
void |
setConfigExtraId(String ConfigExtraId)
Set 采集配置扩展信息id
|
void |
setConfigFlag(String ConfigFlag)
Set 自建采集配置标
|
void |
setContainerFile(ContainerFileInfo ContainerFile)
Set 采集配置标记。
- 目前只支持label_k8s,用于标记自建k8s集群使用的采集配置
|
void |
setContainerStdout(ContainerStdoutInfo ContainerStdout)
Set 容器标准输出信息
|
void |
setExcludePaths(ExcludePathInfo[] ExcludePaths)
Set 采集黑名单路径列表
|
void |
setExtractRule(ExtractRuleInfo ExtractRule)
Set 提取规则,如果设置了ExtractRule,则必须设置LogType
|
void |
setGroupId(String GroupId)
Set 机器组ID
|
void |
setHostFile(HostFileInfo HostFile)
Set 节点文件配置信息
|
void |
setLogFormat(String LogFormat)
Set 日志格式化方式,用于容器采集场景。
- stdout-docker-json:用于docker容器采集场景
- stdout-containerd:用于containerd容器采集场景
|
void |
setLogsetId(String LogsetId)
Set 日志集ID
|
void |
setLogsetName(String LogsetName)
Set 日志集name
|
void |
setLogType(String LogType)
Set 采集的日志类型,默认为minimalist_log。支持以下类型:
- json_log代表:JSON-文件日志(详见[使用 JSON 提取模式采集日志](https://cloud.tencent.com/document/product/614/17419));
- delimiter_log代表:分隔符-文件日志(详见[使用分隔符提取模式采集日志](https://cloud.tencent.com/document/product/614/17420));
- minimalist_log代表:单行全文-文件日志(详见[使用单行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17421));
- fullregex_log代表:单行完全正则-文件日志(详见[使用单行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52365));
- multiline_log代表:多行全文-文件日志(详见[使用多行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17422));
- multiline_fullregex_log代表:多行完全正则-文件日志(详见[使用多行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52366));
- user_define_log代表:组合解析(适用于多格式嵌套的日志,详见[使用组合解析提取模式采集日志](https://cloud.tencent.com/document/product/614/61310))。
|
void |
setName(String Name)
Set 采集配置规程名称,最长63个字符,只能包含小写字符、数字及分隔符(“-”),且必须以小写字符开头,数字或小写字符结尾
|
void |
setTopicId(String TopicId)
Set 日志主题id
|
void |
setTopicName(String TopicName)
Set 日志主题name
|
void |
setType(String Type)
Set 类型:container_stdout、container_file、host_file
|
void |
setUserDefineRule(String UserDefineRule)
Set 组合解析采集规则,用于复杂场景下的日志采集。
- 取值参考:[使用组合解析提取模式采集日志
](https://cloud.tencent.com/document/product/614/61310)
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ModifyConfigExtraRequest()
public ModifyConfigExtraRequest(ModifyConfigExtraRequest source)
public String getConfigExtraId()
public void setConfigExtraId(String ConfigExtraId)
ConfigExtraId
- 采集配置扩展信息idpublic String getName()
public void setName(String Name)
Name
- 采集配置规程名称,最长63个字符,只能包含小写字符、数字及分隔符(“-”),且必须以小写字符开头,数字或小写字符结尾public String getTopicId()
public void setTopicId(String TopicId)
TopicId
- 日志主题idpublic HostFileInfo getHostFile()
public void setHostFile(HostFileInfo HostFile)
HostFile
- 节点文件配置信息public ContainerFileInfo getContainerFile()
public void setContainerFile(ContainerFileInfo ContainerFile)
ContainerFile
- 采集配置标记。
- 目前只支持label_k8s,用于标记自建k8s集群使用的采集配置public ContainerStdoutInfo getContainerStdout()
public void setContainerStdout(ContainerStdoutInfo ContainerStdout)
ContainerStdout
- 容器标准输出信息public String getLogType()
public void setLogType(String LogType)
LogType
- 采集的日志类型,默认为minimalist_log。支持以下类型:
- json_log代表:JSON-文件日志(详见[使用 JSON 提取模式采集日志](https://cloud.tencent.com/document/product/614/17419));
- delimiter_log代表:分隔符-文件日志(详见[使用分隔符提取模式采集日志](https://cloud.tencent.com/document/product/614/17420));
- minimalist_log代表:单行全文-文件日志(详见[使用单行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17421));
- fullregex_log代表:单行完全正则-文件日志(详见[使用单行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52365));
- multiline_log代表:多行全文-文件日志(详见[使用多行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17422));
- multiline_fullregex_log代表:多行完全正则-文件日志(详见[使用多行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52366));
- user_define_log代表:组合解析(适用于多格式嵌套的日志,详见[使用组合解析提取模式采集日志](https://cloud.tencent.com/document/product/614/61310))。public String getLogFormat()
public void setLogFormat(String LogFormat)
LogFormat
- 日志格式化方式,用于容器采集场景。
- stdout-docker-json:用于docker容器采集场景
- stdout-containerd:用于containerd容器采集场景public ExtractRuleInfo getExtractRule()
public void setExtractRule(ExtractRuleInfo ExtractRule)
ExtractRule
- 提取规则,如果设置了ExtractRule,则必须设置LogTypepublic ExcludePathInfo[] getExcludePaths()
public void setExcludePaths(ExcludePathInfo[] ExcludePaths)
ExcludePaths
- 采集黑名单路径列表public String getUserDefineRule()
public void setUserDefineRule(String UserDefineRule)
UserDefineRule
- 组合解析采集规则,用于复杂场景下的日志采集。
- 取值参考:[使用组合解析提取模式采集日志
](https://cloud.tencent.com/document/product/614/61310)public String getType()
public void setType(String Type)
Type
- 类型:container_stdout、container_file、host_filepublic String getGroupId()
public void setGroupId(String GroupId)
GroupId
- 机器组IDpublic String getConfigFlag()
public void setConfigFlag(String ConfigFlag)
ConfigFlag
- 自建采集配置标public String getLogsetId()
public void setLogsetId(String LogsetId)
LogsetId
- 日志集IDpublic String getLogsetName()
public void setLogsetName(String LogsetName)
LogsetName
- 日志集namepublic String getTopicName()
public void setTopicName(String TopicName)
TopicName
- 日志主题namepublic String getAdvancedConfig()
public void setAdvancedConfig(String AdvancedConfig)
AdvancedConfig
- 高级采集配置。 Json字符串, Key/Value定义为如下:
- ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
- ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
- ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false
- ClsAgentDefault(自定义默认值,无特殊含义,用于清空其他选项),建议取值0Copyright © 2024. All rights reserved.