public class CreateConfigRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateConfigRequest() |
CreateConfigRequest(CreateConfigRequest 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.
|
ExcludePathInfo[] |
getExcludePaths()
Get Collection path blocklist
|
ExtractRuleInfo |
getExtractRule()
Get Extraction rule.
|
String |
getLogType()
Get The collected log type, default is minimalist_log.
|
String |
getName()
Get Collection configuration name
|
String |
getOutput()
Get Log topic ID (TopicId) of collection configuration
|
String |
getPath()
Get Log collection path containing the filename
|
String |
getUserDefineRule()
Get Custom collection rules, serialized JSON string.
|
void |
setAdvancedConfig(String AdvancedConfig)
Set Advanced collection configuration.
|
void |
setExcludePaths(ExcludePathInfo[] ExcludePaths)
Set Collection path blocklist
|
void |
setExtractRule(ExtractRuleInfo ExtractRule)
Set Extraction rule.
|
void |
setLogType(String LogType)
Set The collected log type, default is minimalist_log.
|
void |
setName(String Name)
Set Collection configuration name
|
void |
setOutput(String Output)
Set Log topic ID (TopicId) of collection configuration
|
void |
setPath(String Path)
Set Log collection path containing the filename
|
void |
setUserDefineRule(String UserDefineRule)
Set Custom collection rules, serialized 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 CreateConfigRequest()
public CreateConfigRequest(CreateConfigRequest source)
public String getName()
public void setName(String Name)
Name
- Collection configuration namepublic String getOutput()
public void setOutput(String Output)
Output
- Log topic ID (TopicId) of collection configurationpublic String getPath()
public void setPath(String Path)
Path
- Log collection path containing the filenamepublic String getLogType()
public void setLogType(String LogType)
LogType
- The collected log type, default is minimalist_log. Supports the following types:- 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 (see [Collecting Windows Event Logs](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 getUserDefineRule()
public void setUserDefineRule(String UserDefineRule)
UserDefineRule
- Custom collection rules, serialized JSON string. Required when LogType is user_define_log.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 Parsing Failure Log), value range: true or false
Sample:`{\"ClsAgentFileTimeout\":0,\"ClsAgentMaxDepth\":10,\"ClsAgentParseFailMerge\":true}`
Default placeholder value in console: `{\"ClsAgentDefault\":0}`Copyright © 2024. All rights reserved.