public static final class SearchAlertRulesResponseBody.Rules.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
SearchAlertRulesResponseBody.Rules.Builder |
aggregates(String aggregates)
The aggregation logic of the metric data of the alert rule.
|
SearchAlertRulesResponseBody.Rules.Builder |
alias(String alias)
The displayed description of the alert metric.
|
SearchAlertRulesResponseBody.Rules |
build() |
SearchAlertRulesResponseBody.Rules.Builder |
measure(String measure)
The metric based on which alerts are triggered.
|
SearchAlertRulesResponseBody.Rules.Builder |
nValue(Integer nValue)
The time range when data is requested.
|
SearchAlertRulesResponseBody.Rules.Builder |
operator(String operator)
The operation logic of the condition.
|
SearchAlertRulesResponseBody.Rules.Builder |
value(Float value)
The threshold of the condition.
|
public SearchAlertRulesResponseBody.Rules.Builder aggregates(String aggregates)
* `AVG`: calculates the average value for each minute * `SUM`: calculates the total value for each minute * `MAX`: calculates the maximum value for each minute * `MIN`: calculates the minimum value for each minute
public SearchAlertRulesResponseBody.Rules.Builder alias(String alias)
public SearchAlertRulesResponseBody.Rules.Builder measure(String measure)
public SearchAlertRulesResponseBody.Rules.Builder nValue(Integer nValue)
public SearchAlertRulesResponseBody.Rules.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 SearchAlertRulesResponseBody.Rules.Builder value(Float value)
public SearchAlertRulesResponseBody.Rules build()
Copyright © 2024. All rights reserved.