public static final class PutGroupMetricRuleRequest.Warn.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
PutGroupMetricRuleRequest.Warn |
build() |
PutGroupMetricRuleRequest.Warn.Builder |
comparisonOperator(String comparisonOperator)
The tag value of the alert rule.
|
PutGroupMetricRuleRequest.Warn.Builder |
statistics(String statistics)
The comparison operator that is used to compare the metric value with the threshold.
|
PutGroupMetricRuleRequest.Warn.Builder |
threshold(String threshold)
The method that is used to handle alerts when no monitoring data is found.
|
PutGroupMetricRuleRequest.Warn.Builder |
times(Integer times)
The tag key of the alert rule.
|
public PutGroupMetricRuleRequest.Warn.Builder comparisonOperator(String comparisonOperator)
public PutGroupMetricRuleRequest.Warn.Builder statistics(String statistics)
* GreaterThanOrEqualToThreshold: greater than or equal to the threshold * GreaterThanThreshold: greater than the threshold * LessThanOrEqualToThreshold: less than or equal to the threshold * LessThanThreshold: less than the threshold * NotEqualToThreshold: not equal to the threshold * GreaterThanYesterday: greater than the metric value at the same time yesterday * LessThanYesterday: less than the metric value at the same time yesterday * GreaterThanLastWeek: greater than the metric value at the same time last week * LessThanLastWeek: less than the metric value at the same time last week * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle * LessThanLastPeriod: less than the metric value in the last monitoring cycle
public PutGroupMetricRuleRequest.Warn.Builder threshold(String threshold)
* KEEP_LAST_STATE (default value): No operation is performed. * INSUFFICIENT_DATA: An alert whose content is "Insufficient data" is triggered. * OK: The status is considered normal.
public PutGroupMetricRuleRequest.Warn.Builder times(Integer times)
public PutGroupMetricRuleRequest.Warn build()
Copyright © 2023. All rights reserved.