Package | Description |
---|---|
com.tencentcloudapi.cls.v20201016.models |
Modifier and Type | Method and Description |
---|---|
AlarmAnalysisConfig[] |
AnalysisDimensional.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
}
注意:此字段可能返回 null,表示取不到有效值。
|
Modifier and Type | Method and Description |
---|---|
void |
AnalysisDimensional.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
}
注意:此字段可能返回 null,表示取不到有效值。
|
Constructor and Description |
---|
AlarmAnalysisConfig(AlarmAnalysisConfig 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.
|
Copyright © 2024. All rights reserved.