public class ModifyConfigRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModifyConfigRequest() |
ModifyConfigRequest(ModifyConfigRequest 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 Advanced collection configuration.
|
String |
getConfigId()
Get Collection rule configuration ID, accessed through [Access collection rule configuration](https://intl.cloud.tencent.com/document/product/614/58616?from_cn_redirect=1).
|
ExcludePathInfo[] |
getExcludePaths()
Get Collection path blocklist
|
ExtractRuleInfo |
getExtractRule()
Get Extraction rule.
|
String |
getLogType()
Get The types of logs collected.
|
String |
getName()
Get Collection rule configuration name
|
String |
getOutput()
Get Log topic (TopicId) associated with collection configuration
|
String |
getPath()
Get Log collection path containing the filename
|
String |
getUserDefineRule()
Get Custom parsing string, serialized as a JSON string.
|
void |
setAdvancedConfig(String AdvancedConfig)
Set Advanced collection configuration.
|
void |
setConfigId(String ConfigId)
Set Collection rule configuration ID, accessed through [Access collection rule configuration](https://intl.cloud.tencent.com/document/product/614/58616?from_cn_redirect=1).
|
void |
setExcludePaths(ExcludePathInfo[] ExcludePaths)
Set Collection path blocklist
|
void |
setExtractRule(ExtractRuleInfo ExtractRule)
Set Extraction rule.
|
void |
setLogType(String LogType)
Set The types of logs collected.
|
void |
setName(String Name)
Set Collection rule configuration name
|
void |
setOutput(String Output)
Set Log topic (TopicId) associated with collection configuration
|
void |
setPath(String Path)
Set Log collection path containing the filename
|
void |
setUserDefineRule(String UserDefineRule)
Set Custom parsing string, serialized as a JSON string.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ModifyConfigRequest()
public ModifyConfigRequest(ModifyConfigRequest source)
public String getConfigId()
public void setConfigId(String ConfigId)
ConfigId
- Collection rule configuration ID, accessed through [Access collection rule configuration](https://intl.cloud.tencent.com/document/product/614/58616?from_cn_redirect=1).public String getName()
public void setName(String Name)
Name
- Collection rule configuration namepublic String getPath()
public void setPath(String Path)
Path
- Log collection path containing the filenamepublic String getLogType()
public void setLogType(String LogType)
LogType
- The types of logs collected. Supported types are:
- json_log: JSON File Log (For more information, see [Using JSON pattern to collect logs](https://intl.cloud.tencent.com/document/product/614/17419?from_cn_redirect=1));- delimiter_log: Delimiter - File Logs (For more information, see [Using delimiter pattern to collect logs](https://intl.cloud.tencent.com/document/product/614/17420?from_cn_redirect=1));- minimalist_log: Single-line Full-text File Log (For more information, see [Using single-line full-text pattern to collect logs](https://intl.cloud.tencent.com/document/product/614/17421?from_cn_redirect=1));- fullregex_log: Single line full regular expression - File log (For more information, see [Using single-line - complete regular expression pattern to collect logs](https://intl.cloud.tencent.com/document/product/614/52365?from_cn_redirect=1));- multiline_log: Multiline Full-text File Log (For more information, see [Using multi-line full-text pattern to collect logs](https://intl.cloud.tencent.com/document/product/614/17422?from_cn_redirect=1));- multiline_fullregex_log: Multi-line complete regular expression - File Logs (For more information, see [Using multi-line - complete regular expression pattern to collect logs](https://intl.cloud.tencent.com/document/product/614/52366?from_cn_redirect=1));- user_define_log: Combined parsing (Suitable for logs with multiple nested formats, see [Using combined parsing pattern to collect logs](https://intl.cloud.tencent.com/document/product/614/61310?from_cn_redirect=1));- service_syslog: syslog collection (For more information, see [Collect Syslog](https://intl.cloud.tencent.com/document/product/614/81454?from_cn_redirect=1));- windows_event_log: Windows event log (For more information, see [Collect Windows Event Log](https://intl.cloud.tencent.com/document/product/614/96678?from_cn_redirect=1)).public ExtractRuleInfo getExtractRule()
public void setExtractRule(ExtractRuleInfo ExtractRule)
ExtractRule
- Extraction rule. If `ExtractRule` is set, `LogType` must be set.public ExcludePathInfo[] getExcludePaths()
public void setExcludePaths(ExcludePathInfo[] ExcludePaths)
ExcludePaths
- Collection path blocklistpublic String getOutput()
public void setOutput(String Output)
Output
- Log topic (TopicId) associated with collection configurationpublic String getUserDefineRule()
public void setUserDefineRule(String UserDefineRule)
UserDefineRule
- Custom parsing string, serialized as a JSON string.public String getAdvancedConfig()
public void setAdvancedConfig(String AdvancedConfig)
AdvancedConfig
- Advanced collection configuration. A JSON string, Key/Value definition as follows:
- ClsAgentFileTimeout (timeout property), value range: an integer greater than or equal to 0, where 0 means no timeout- ClsAgentMaxDepth (maximum directory depth), value range: an integer greater than or equal to 0
- ClsAgentParseFailMerge (merge logs that failed parsing), value range: true or false
Sample:
`{\"ClsAgentFileTimeout\":0,\"ClsAgentMaxDepth\":10,\"ClsAgentParseFailMerge\":true}`Copyright © 2024. All rights reserved.