Class AlarmPolicyCondition
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.monitor.v20180724.models.AlarmPolicyCondition
-
public class AlarmPolicyCondition extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description AlarmPolicyCondition()AlarmPolicyCondition(AlarmPolicyCondition 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetComplexExpression()Get 复合告警触发条件的判断表达式,当 IsUnionRule 取值为2的时候有效.LonggetIsUnionRule()Get 告警触发条件的判断方式.AlarmPolicyRule[]getRules()Get 告警触发条件列表 注意:此字段可能返回 null,表示取不到有效值。voidsetComplexExpression(String ComplexExpression)Set 复合告警触发条件的判断表达式,当 IsUnionRule 取值为2的时候有效.voidsetIsUnionRule(Long IsUnionRule)Set 告警触发条件的判断方式.voidsetRules(AlarmPolicyRule[] Rules)Set 告警触发条件列表 注意:此字段可能返回 null,表示取不到有效值。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
AlarmPolicyCondition
public AlarmPolicyCondition()
-
AlarmPolicyCondition
public AlarmPolicyCondition(AlarmPolicyCondition 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.
-
-
Method Detail
-
getIsUnionRule
public Long getIsUnionRule()
Get 告警触发条件的判断方式. 0: 任意; 1: 全部; 2: 复合. 当取值为2的时候为复合告警,与参数 ComplexExpression 配合使用. 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- IsUnionRule 告警触发条件的判断方式. 0: 任意; 1: 全部; 2: 复合. 当取值为2的时候为复合告警,与参数 ComplexExpression 配合使用. 注意:此字段可能返回 null,表示取不到有效值。
-
setIsUnionRule
public void setIsUnionRule(Long IsUnionRule)
Set 告警触发条件的判断方式. 0: 任意; 1: 全部; 2: 复合. 当取值为2的时候为复合告警,与参数 ComplexExpression 配合使用. 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
IsUnionRule- 告警触发条件的判断方式. 0: 任意; 1: 全部; 2: 复合. 当取值为2的时候为复合告警,与参数 ComplexExpression 配合使用. 注意:此字段可能返回 null,表示取不到有效值。
-
getRules
public AlarmPolicyRule[] getRules()
Get 告警触发条件列表 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Rules 告警触发条件列表 注意:此字段可能返回 null,表示取不到有效值。
-
setRules
public void setRules(AlarmPolicyRule[] Rules)
Set 告警触发条件列表 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Rules- 告警触发条件列表 注意:此字段可能返回 null,表示取不到有效值。
-
getComplexExpression
public String getComplexExpression()
Get 复合告警触发条件的判断表达式,当 IsUnionRule 取值为2的时候有效. 其作用是描述多个触发条件需要满足表达式求值为True时才算是满足告警条件. 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- ComplexExpression 复合告警触发条件的判断表达式,当 IsUnionRule 取值为2的时候有效. 其作用是描述多个触发条件需要满足表达式求值为True时才算是满足告警条件. 注意:此字段可能返回 null,表示取不到有效值。
-
setComplexExpression
public void setComplexExpression(String ComplexExpression)
Set 复合告警触发条件的判断表达式,当 IsUnionRule 取值为2的时候有效. 其作用是描述多个触发条件需要满足表达式求值为True时才算是满足告警条件. 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
ComplexExpression- 复合告警触发条件的判断表达式,当 IsUnionRule 取值为2的时候有效. 其作用是描述多个触发条件需要满足表达式求值为True时才算是满足告警条件. 注意:此字段可能返回 null,表示取不到有效值。
-
-