public static final class CreateOrUpdateAlertRuleResponseBody.AlertRuleItems.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
CreateOrUpdateAlertRuleResponseBody.AlertRuleItems.Builder |
aggregate(String aggregate)
The aggregation method of the alert condition.
|
CreateOrUpdateAlertRuleResponseBody.AlertRuleItems |
build() |
CreateOrUpdateAlertRuleResponseBody.AlertRuleItems.Builder |
metricKey(String metricKey)
The metric of the alert condition.
|
CreateOrUpdateAlertRuleResponseBody.AlertRuleItems.Builder |
n(Float n)
Indicates the last N minutes.
|
CreateOrUpdateAlertRuleResponseBody.AlertRuleItems.Builder |
operator(String operator)
The comparison operator that was used to compare the metric value with the threshold.
|
CreateOrUpdateAlertRuleResponseBody.AlertRuleItems.Builder |
value(String value)
The threshold of the alert condition.
|
public CreateOrUpdateAlertRuleResponseBody.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 CreateOrUpdateAlertRuleResponseBody.AlertRuleItems.Builder metricKey(String metricKey)
public CreateOrUpdateAlertRuleResponseBody.AlertRuleItems.Builder n(Float n)
public CreateOrUpdateAlertRuleResponseBody.AlertRuleItems.Builder operator(String operator)
* CURRENT_GTE: greater than or equal to * CURRENT_LTE: less than or equal to * PREVIOUS_UP: the increase percentage compared with the last period * PREVIOUS_DOWN: the decrease percentage compared with the last period * HOH_UP: the increase percentage compared with the last hour * HOH_DOWN: the decrease percentage compared with the last hour * DOD_UP: the increase percentage compared with the last day * DOD_DOWN: the decrease percentage compared with the last day
public CreateOrUpdateAlertRuleResponseBody.AlertRuleItems.Builder value(String value)
public CreateOrUpdateAlertRuleResponseBody.AlertRuleItems build()
Copyright © 2024. All rights reserved.