public class CreatePolicyGroupCondition extends AbstractModel
Constructor and Description |
---|
CreatePolicyGroupCondition() |
CreatePolicyGroupCondition(CreatePolicyGroupCondition 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 |
---|---|
Long |
getAlarmNotifyPeriod()
Get Alarm sending period in seconds.
|
Long |
getAlarmNotifyType()
Get Alarm sending and converging type.
|
Long |
getCalcPeriod()
Get Data aggregation period in seconds.
|
Long |
getCalcType()
Get Comparative type.
|
Float |
getCalcValue()
Get Comparative value.
|
Long |
getContinuePeriod()
Get Number of consecutive periods after which an alarm will be triggered.
|
Long |
getMetricId()
Get Metric ID.
|
Long |
getRuleId()
Get If a metric is created based on a template, the `RuleId` of the metric in the template must be passed in.
|
void |
setAlarmNotifyPeriod(Long AlarmNotifyPeriod)
Set Alarm sending period in seconds.
|
void |
setAlarmNotifyType(Long AlarmNotifyType)
Set Alarm sending and converging type.
|
void |
setCalcPeriod(Long CalcPeriod)
Set Data aggregation period in seconds.
|
void |
setCalcType(Long CalcType)
Set Comparative type.
|
void |
setCalcValue(Float CalcValue)
Set Comparative value.
|
void |
setContinuePeriod(Long ContinuePeriod)
Set Number of consecutive periods after which an alarm will be triggered.
|
void |
setMetricId(Long MetricId)
Set Metric ID.
|
void |
setRuleId(Long RuleId)
Set If a metric is created based on a template, the `RuleId` of the metric in the template must be passed in.
|
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 CreatePolicyGroupCondition()
public CreatePolicyGroupCondition(CreatePolicyGroupCondition source)
public Long getMetricId()
public void setMetricId(Long MetricId)
MetricId
- Metric ID.public Long getAlarmNotifyType()
public void setAlarmNotifyType(Long AlarmNotifyType)
AlarmNotifyType
- Alarm sending and converging type. The value 0 indicates that alarms are sent consecutively. The value 1 indicates that alarms are sent exponentially.public Long getAlarmNotifyPeriod()
public void setAlarmNotifyPeriod(Long AlarmNotifyPeriod)
AlarmNotifyPeriod
- Alarm sending period in seconds. The value <0 indicates that no alarm will be triggered. The value 0 indicates that an alarm is triggered only once. The value >0 indicates that an alarm is triggered at the interval of triggerTime.public Long getCalcType()
public void setCalcType(Long CalcType)
CalcType
- Comparative type. The value 1 indicates greater than. The value 2 indicates greater than or equal to. The value 3 indicates smaller than. The value 4 indicates smaller than or equal to. The value 5 indicates equal to. The value 6 indicates not equal to. This parameter is optional if a default comparative type is configured for the metric.public Float getCalcValue()
public void setCalcValue(Float CalcValue)
CalcValue
- Comparative value. This parameter is optional if the metric has no requirement.public Long getCalcPeriod()
public void setCalcPeriod(Long CalcPeriod)
CalcPeriod
- Data aggregation period in seconds. This parameter is optional if the metric has a default value.public Long getContinuePeriod()
public void setContinuePeriod(Long ContinuePeriod)
ContinuePeriod
- Number of consecutive periods after which an alarm will be triggered.public Long getRuleId()
public void setRuleId(Long RuleId)
RuleId
- If a metric is created based on a template, the `RuleId` of the metric in the template must be passed in.Copyright © 2023. All rights reserved.