public class AlarmPolicyRule extends AbstractModel
header, skipSign
Constructor and Description |
---|
AlarmPolicyRule() |
AlarmPolicyRule(AlarmPolicyRule 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 |
getContinuePeriod()
Get Number of periods.
|
String |
getDescription()
Get Metric display name, which is used in the output parameter
Note: this field may return null, indicating that no valid values can be obtained.
|
AlarmPolicyFilter |
getFilter()
Get Filter condition for one single trigger rule
Note: this field may return null, indicating that no valid values can be obtained.
|
AlarmHierarchicalValue |
getHierarchicalValue()
Get The configuration of alarm level threshold
Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getIsAdvanced()
Get Whether it is an advanced metric.
|
Long |
getIsOpen()
Get Whether the advanced metric feature is enabled.
|
Long |
getIsPowerNotice()
Get Whether the alarm frequency increases exponentially.
|
String |
getMetricName()
Get Metric name or event name.
|
Long |
getNoticeFrequency()
Get Alarm interval in seconds.
|
String |
getOperator()
Get Operator
intelligent = intelligent detection without threshold
eq = equal to
ge = greater than or equal to
gt = greater than
le = less than or equal to
lt = less than
ne = not equal to
day_increase = day-on-day increase
day_decrease = day-on-day decrease
day_wave = day-on-day fluctuation
week_increase = week-on-week increase
week_decrease = week-on-week decrease
week_wave = week-on-week fluctuation
cycle_increase = cyclical increase
cycle_decrease = cyclical decrease
cycle_wave = cyclical fluctuation
re = regex match
The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
|
Long |
getPeriod()
Get Statistical period in seconds.
|
String |
getProductId()
Get Integration center product ID.
|
String |
getRuleType()
Get Trigger condition type.
|
String |
getUnit()
Get Unit, which is used in the output parameter
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getValue()
Get Threshold.
|
Float |
getValueMax()
Get Maximum value
Note: This field may return null, indicating that no valid values can be obtained.
|
Float |
getValueMin()
Get Minimum value
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setContinuePeriod(Long ContinuePeriod)
Set Number of periods.
|
void |
setDescription(String Description)
Set Metric display name, which is used in the output parameter
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setFilter(AlarmPolicyFilter Filter)
Set Filter condition for one single trigger rule
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setHierarchicalValue(AlarmHierarchicalValue HierarchicalValue)
Set The configuration of alarm level threshold
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setIsAdvanced(Long IsAdvanced)
Set Whether it is an advanced metric.
|
void |
setIsOpen(Long IsOpen)
Set Whether the advanced metric feature is enabled.
|
void |
setIsPowerNotice(Long IsPowerNotice)
Set Whether the alarm frequency increases exponentially.
|
void |
setMetricName(String MetricName)
Set Metric name or event name.
|
void |
setNoticeFrequency(Long NoticeFrequency)
Set Alarm interval in seconds.
|
void |
setOperator(String Operator)
Set Operator
intelligent = intelligent detection without threshold
eq = equal to
ge = greater than or equal to
gt = greater than
le = less than or equal to
lt = less than
ne = not equal to
day_increase = day-on-day increase
day_decrease = day-on-day decrease
day_wave = day-on-day fluctuation
week_increase = week-on-week increase
week_decrease = week-on-week decrease
week_wave = week-on-week fluctuation
cycle_increase = cyclical increase
cycle_decrease = cyclical decrease
cycle_wave = cyclical fluctuation
re = regex match
The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
|
void |
setPeriod(Long Period)
Set Statistical period in seconds.
|
void |
setProductId(String ProductId)
Set Integration center product ID.
|
void |
setRuleType(String RuleType)
Set Trigger condition type.
|
void |
setUnit(String Unit)
Set Unit, which is used in the output parameter
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setValue(String Value)
Set Threshold.
|
void |
setValueMax(Float ValueMax)
Set Maximum value
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setValueMin(Float ValueMin)
Set Minimum value
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, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public AlarmPolicyRule()
public AlarmPolicyRule(AlarmPolicyRule source)
public String getMetricName()
public void setMetricName(String MetricName)
MetricName
- Metric name or event name. The supported metrics can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1) and the supported events via [DescribeAlarmEvents](https://intl.cloud.tencent.com/document/product/248/51284?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.public Long getPeriod()
public void setPeriod(Long Period)
Period
- Statistical period in seconds. The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.public String getOperator()
public void setOperator(String Operator)
Operator
- Operator
intelligent = intelligent detection without threshold
eq = equal to
ge = greater than or equal to
gt = greater than
le = less than or equal to
lt = less than
ne = not equal to
day_increase = day-on-day increase
day_decrease = day-on-day decrease
day_wave = day-on-day fluctuation
week_increase = week-on-week increase
week_decrease = week-on-week decrease
week_wave = week-on-week fluctuation
cycle_increase = cyclical increase
cycle_decrease = cyclical decrease
cycle_wave = cyclical fluctuation
re = regex match
The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.public String getValue()
public void setValue(String Value)
Value
- Threshold. The valid value range can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.public Long getContinuePeriod()
public void setContinuePeriod(Long ContinuePeriod)
ContinuePeriod
- Number of periods. `1`: continue for one period; `2`: continue for two periods; and so on. The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.public Long getNoticeFrequency()
public void setNoticeFrequency(Long NoticeFrequency)
NoticeFrequency
- Alarm interval in seconds. Valid values: 0 (do not repeat), 300 (alarm once every 5 minutes), 600 (alarm once every 10 minutes), 900 (alarm once every 15 minutes), 1800 (alarm once every 30 minutes), 3600 (alarm once every hour), 7200 (alarm once every 2 hours), 10800 (alarm once every 3 hours), 21600 (alarm once every 6 hours), 43200 (alarm once every 12 hours), 86400 (alarm once every day)
Note: this field may return null, indicating that no valid values can be obtained.public Long getIsPowerNotice()
public void setIsPowerNotice(Long IsPowerNotice)
IsPowerNotice
- Whether the alarm frequency increases exponentially. Valid values: 0 (no), 1 (yes)
Note: this field may return null, indicating that no valid values can be obtained.public AlarmPolicyFilter getFilter()
public void setFilter(AlarmPolicyFilter Filter)
Filter
- Filter condition for one single trigger rule
Note: this field may return null, indicating that no valid values can be obtained.public String getDescription()
public void setDescription(String Description)
Description
- Metric display name, which is used in the output parameter
Note: this field may return null, indicating that no valid values can be obtained.public String getUnit()
public void setUnit(String Unit)
Unit
- Unit, which is used in the output parameter
Note: this field may return null, indicating that no valid values can be obtained.public String getRuleType()
public void setRuleType(String RuleType)
RuleType
- Trigger condition type. `STATIC`: static threshold; `dynamic`: dynamic threshold. If you do not specify this parameter when creating or editing a policy, `STATIC` is used by default.
Note: this field may return `null`, indicating that no valid value is obtained.public Long getIsAdvanced()
public void setIsAdvanced(Long IsAdvanced)
IsAdvanced
- Whether it is an advanced metric. 0: No; 1: Yes.
Note: This field may return `null`, indicating that no valid values can be obtained.public Long getIsOpen()
public void setIsOpen(Long IsOpen)
IsOpen
- Whether the advanced metric feature is enabled. 0: No; 1: Yes.
Note: This field may return `null`, indicating that no valid values can be obtained.public String getProductId()
public void setProductId(String ProductId)
ProductId
- Integration center product ID.
Note: This field may return `null`, indicating that no valid values can be obtained.public Float getValueMax()
public void setValueMax(Float ValueMax)
ValueMax
- Maximum value
Note: This field may return null, indicating that no valid values can be obtained.public Float getValueMin()
public void setValueMin(Float ValueMin)
ValueMin
- Minimum value
Note: This field may return null, indicating that no valid values can be obtained.public AlarmHierarchicalValue getHierarchicalValue()
public void setHierarchicalValue(AlarmHierarchicalValue HierarchicalValue)
HierarchicalValue
- The configuration of alarm level threshold
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2024. All rights reserved.