public class AnalysisDimensional extends AbstractModel
header, skipSign
Constructor and Description |
---|
AnalysisDimensional() |
AnalysisDimensional(AnalysisDimensional 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 |
---|---|
AlarmAnalysisConfig[] |
getConfigInfo()
Get Multi-dimensional analysis configuration.
|
String |
getContent()
Get Analysis content
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getName()
Get Analysis name
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getType()
Get Type of data being analyzed.
|
void |
setConfigInfo(AlarmAnalysisConfig[] ConfigInfo)
Set Multi-dimensional analysis configuration.
|
void |
setContent(String Content)
Set Analysis content
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setName(String Name)
Set Analysis name
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setType(String Type)
Set Type of data being analyzed.
|
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 AnalysisDimensional()
public AnalysisDimensional(AnalysisDimensional source)
public String getName()
public void setName(String Name)
Name
- Analysis name
Note: This field may return null, indicating that no valid values can be obtained.public String getType()
public void setType(String Type)
Type
- Type of data being analyzed. Valid values: `query`, `field`, `original`
Note: This field may return null, indicating that no valid values can be obtained.public String getContent()
public void setContent(String Content)
Content
- Analysis content
Note: This field may return null, indicating that no valid values can be obtained.public AlarmAnalysisConfig[] getConfigInfo()
public void setConfigInfo(AlarmAnalysisConfig[] ConfigInfo)
ConfigInfo
- Multi-dimensional analysis configuration.
Supported when the type field of Analysis is query (custom){
"Key": "SyntaxRule", // Syntax rules"Value": "1" // 0: Lucene syntax, 1: CQL syntax}
Supported when the Type field of Analysis is field (top5) {
"Key": "QueryIndex",
"Value": "-1" // -1: Custom, 1: Execute Statement 1, 2: Execute Statement 2},{
"Key": "CustomQuery", // Search statement. Valid and required when QueryIndex is -1 "Value": "* | select count(*) as count"
},{
"Key": "SyntaxRule", // If this field cannot be found, it's assumed to be the legacy syntax (Lucene)
"Value": "0"//0:Lucene, 1:CQL
}
When the Type field of Analysis is original (original log), it supports
{
"Key": "Fields",
"Value": "__SOURCE__,__HOSTNAME__,__TIMESTAMP__,__PKG_LOGID__,__TAG__.pod_ip"
}, {
"Key": "QueryIndex",
"Value": "-1" // -1: Custom, 1: Execute Statement 1, 2: Execute Statement 2},{
"Key": "CustomQuery", // //Search statement. Valid and required when QueryIndex is -1 "Value": "* | select count(*) as count"
},{
"Key": "Format", // Display format. 1: One log per line, 2: One field per line for each log "Value": "2"
},
{
"Key": "Limit", // Maximum number of logs "Value": "5"
},{
"Key": "SyntaxRule", // If this field cannot be found, it's considered the legacy syntax
"Value": "0"//0:Lucene, 1:CQL
}
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2024. All rights reserved.