public class AlarmPolicyCondition extends AbstractModel
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getComplexExpression()
Get The judgment expression of composite alarm trigger conditions, which is valid when the value of `IsUnionRule` is `2`.
|
Long |
getIsUnionRule()
Get Judgment condition of an alarm trigger condition (`0`: Any; `1`: All; `2`: Composite).
|
AlarmPolicyRule[] |
getRules()
Get Alarm trigger condition list
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setComplexExpression(String ComplexExpression)
Set The judgment expression of composite alarm trigger conditions, which is valid when the value of `IsUnionRule` is `2`.
|
void |
setIsUnionRule(Long IsUnionRule)
Set Judgment condition of an alarm trigger condition (`0`: Any; `1`: All; `2`: Composite).
|
void |
setRules(AlarmPolicyRule[] Rules)
Set Alarm trigger condition list
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public AlarmPolicyCondition()
public AlarmPolicyCondition(AlarmPolicyCondition source)
public Long getIsUnionRule()
public void setIsUnionRule(Long IsUnionRule)
IsUnionRule
- Judgment condition of an alarm trigger condition (`0`: Any; `1`: All; `2`: Composite). When the value is set to `2` (i.e., composite trigger conditions), this parameter should be used together with `ComplexExpression`.
Note: This field may return null, indicating that no valid values can be obtained.public AlarmPolicyRule[] getRules()
public void setRules(AlarmPolicyRule[] Rules)
Rules
- Alarm trigger condition list
Note: this field may return null, indicating that no valid values can be obtained.public String getComplexExpression()
public void setComplexExpression(String ComplexExpression)
ComplexExpression
- The judgment expression of composite alarm trigger conditions, which is valid when the value of `IsUnionRule` is `2`. This parameter is used to determine that an alarm condition is met only when the expression values are `True` for multiple trigger conditions.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.