public static final class GetAlertRulesResponseBody.AlertRuleItems.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
GetAlertRulesResponseBody.AlertRuleItems.Builder |
aggregate(String aggregate)
The aggregation method of the alert condition.
|
GetAlertRulesResponseBody.AlertRuleItems |
build() |
GetAlertRulesResponseBody.AlertRuleItems.Builder |
metricKey(String metricKey)
The metric of the alert condition.
|
GetAlertRulesResponseBody.AlertRuleItems.Builder |
n(Long n)
The last N minutes.
|
GetAlertRulesResponseBody.AlertRuleItems.Builder |
operator(String operator)
The operator that is used to compare the metric value with the threshold.
|
GetAlertRulesResponseBody.AlertRuleItems.Builder |
value(String value)
The threshold of the alert condition.
|
public GetAlertRulesResponseBody.AlertRuleItems.Builder aggregate(String aggregate)
* AVG: calculates the average value * SUM: calculates the total value * MAX: selects the maximum value * MIN: selects the minimum value
public GetAlertRulesResponseBody.AlertRuleItems.Builder metricKey(String metricKey)
public GetAlertRulesResponseBody.AlertRuleItems.Builder n(Long n)
public GetAlertRulesResponseBody.AlertRuleItems.Builder operator(String operator)
* CURRENT_GTE: greater than or equal to * CURRENT_LTE: less than or equal to * PREVIOUS_UP: increase in percentage compared with the previous period * PREVIOUS_DOWN: decrease in percentage compared with the previous period * HOH_UP: increase in percentage compared with the same period in the previous hour * HOH_DOWN: decrease in percentage compared with the same period in the previous hour * DOD_UP: increase in percentage compared with the same period in the previous day * DOD_DOWN: decrease in percentage compared with the same period in the previous day
public GetAlertRulesResponseBody.AlertRuleItems.Builder value(String value)
public GetAlertRulesResponseBody.AlertRuleItems build()
Copyright © 2024. All rights reserved.