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 多维分析配置。
当Analysis的Type字段为query(自定义)时,支持
{
"Key": "SyntaxRule",  // 语法规则
"Value": "1"  //0:Lucene语法 ,1: CQL语法
}
当Analysis的Type字段为field(top5)时,  支持
 {
    "Key": "QueryIndex",
    "Value": "-1" //  -1:自定义, 1:执行语句1, 2:执行语句2
},{
    "Key": "CustomQuery", //检索语句。 QueryIndex为-1时有效且必填
    "Value": "* | select count(*) as count"
},{
    "Key": "SyntaxRule", // 查不到这个字段也是老语法(Lucene)
    "Value": "0"//0:Lucene, 1:CQL
}       
当Analysis的Type字段为original(原始日志)时,  支持
{
    "Key": "Fields",
    "Value": "__SOURCE__,__HOSTNAME__,__TIMESTAMP__,__PKG_LOGID__,__TAG__.pod_ip"
}, {
    "Key": "QueryIndex",
    "Value": "-1" //  -1:自定义, 1:执行语句1, 2:执行语句2
},{
    "Key": "CustomQuery", //  //检索语句。 QueryIndex为-1时有效且必填
    "Value": "* | select count(*) as count"
},{
    "Key": "Format", //显示形式。1:每条日志一行,2:每条日志每个字段一行
    "Value": "2"
},
{
    "Key": "Limit", //最大日志条数
    "Value": "5"
},{
    "Key": "SyntaxRule", // 查不到这个字段也是老语法
    "Value": "0"//0:Lucene, 1:CQL
} | 
| String | getContent()Get 分析内容 | 
| String | getName()Get 分析名称 | 
| String | getType()Get 分析类型:query(自定义检索分析),field(字段TOP5及占比统计) ,original(相关原始日志) | 
| void | setConfigInfo(AlarmAnalysisConfig[] ConfigInfo)Set 多维分析配置。
当Analysis的Type字段为query(自定义)时,支持
{
"Key": "SyntaxRule",  // 语法规则
"Value": "1"  //0:Lucene语法 ,1: CQL语法
}
当Analysis的Type字段为field(top5)时,  支持
 {
    "Key": "QueryIndex",
    "Value": "-1" //  -1:自定义, 1:执行语句1, 2:执行语句2
},{
    "Key": "CustomQuery", //检索语句。 QueryIndex为-1时有效且必填
    "Value": "* | select count(*) as count"
},{
    "Key": "SyntaxRule", // 查不到这个字段也是老语法(Lucene)
    "Value": "0"//0:Lucene, 1:CQL
}       
当Analysis的Type字段为original(原始日志)时,  支持
{
    "Key": "Fields",
    "Value": "__SOURCE__,__HOSTNAME__,__TIMESTAMP__,__PKG_LOGID__,__TAG__.pod_ip"
}, {
    "Key": "QueryIndex",
    "Value": "-1" //  -1:自定义, 1:执行语句1, 2:执行语句2
},{
    "Key": "CustomQuery", //  //检索语句。 QueryIndex为-1时有效且必填
    "Value": "* | select count(*) as count"
},{
    "Key": "Format", //显示形式。1:每条日志一行,2:每条日志每个字段一行
    "Value": "2"
},
{
    "Key": "Limit", //最大日志条数
    "Value": "5"
},{
    "Key": "SyntaxRule", // 查不到这个字段也是老语法
    "Value": "0"//0:Lucene, 1:CQL
} | 
| void | setContent(String Content)Set 分析内容 | 
| void | setName(String Name)Set 分析名称 | 
| void | setType(String Type)Set 分析类型:query(自定义检索分析),field(字段TOP5及占比统计) ,original(相关原始日志) | 
| 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, toJsonStringpublic AnalysisDimensional()
public AnalysisDimensional(AnalysisDimensional source)
public String getName()
public void setName(String Name)
Name - 分析名称public String getType()
public void setType(String Type)
Type - 分析类型:query(自定义检索分析),field(字段TOP5及占比统计) ,original(相关原始日志)public String getContent()
public void setContent(String Content)
Content - 分析内容public AlarmAnalysisConfig[] getConfigInfo()
public void setConfigInfo(AlarmAnalysisConfig[] ConfigInfo)
ConfigInfo - 多维分析配置。
当Analysis的Type字段为query(自定义)时,支持
{
"Key": "SyntaxRule",  // 语法规则
"Value": "1"  //0:Lucene语法 ,1: CQL语法
}
当Analysis的Type字段为field(top5)时,  支持
 {
    "Key": "QueryIndex",
    "Value": "-1" //  -1:自定义, 1:执行语句1, 2:执行语句2
},{
    "Key": "CustomQuery", //检索语句。 QueryIndex为-1时有效且必填
    "Value": "* | select count(*) as count"
},{
    "Key": "SyntaxRule", // 查不到这个字段也是老语法(Lucene)
    "Value": "0"//0:Lucene, 1:CQL
}       
当Analysis的Type字段为original(原始日志)时,  支持
{
    "Key": "Fields",
    "Value": "__SOURCE__,__HOSTNAME__,__TIMESTAMP__,__PKG_LOGID__,__TAG__.pod_ip"
}, {
    "Key": "QueryIndex",
    "Value": "-1" //  -1:自定义, 1:执行语句1, 2:执行语句2
},{
    "Key": "CustomQuery", //  //检索语句。 QueryIndex为-1时有效且必填
    "Value": "* | select count(*) as count"
},{
    "Key": "Format", //显示形式。1:每条日志一行,2:每条日志每个字段一行
    "Value": "2"
},
{
    "Key": "Limit", //最大日志条数
    "Value": "5"
},{
    "Key": "SyntaxRule", // 查不到这个字段也是老语法
    "Value": "0"//0:Lucene, 1:CQL
}Copyright © 2025. All rights reserved.