public static final class PutResourceMetricRuleRequest.CompositeExpression.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
PutResourceMetricRuleRequest.CompositeExpression |
build() |
PutResourceMetricRuleRequest.CompositeExpression.Builder |
expressionList(List<PutResourceMetricRuleRequest.ExpressionList> expressionList)
The trigger conditions that are created by using expressions.
|
PutResourceMetricRuleRequest.CompositeExpression.Builder |
expressionListJoin(String expressionListJoin)
The alert threshold.
|
PutResourceMetricRuleRequest.CompositeExpression.Builder |
expressionRaw(String expressionRaw)
The threshold for Info-level alerts.
|
PutResourceMetricRuleRequest.CompositeExpression.Builder |
level(String level)
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
|
PutResourceMetricRuleRequest.CompositeExpression.Builder |
times(Integer times)
The statistical methods for Warn-level alerts.
|
public PutResourceMetricRuleRequest.CompositeExpression.Builder expressionList(List<PutResourceMetricRuleRequest.ExpressionList> expressionList)
* Set an alert blacklist for specific resources. For example, if you specify ` $instanceId != \"i-io8kfvcpp7x5****\" ``&&`` $Average > 50 `, no alert is generated even when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 50. * Set a special alert threshold for a specified instance in the rule. For example, if you specify `$Average > ($instanceId == \"i-io8kfvcpp7x5****\"? 80: 50)`, an alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 80 or the `average metric value` of other instances exceeds 50. * Limits the number of instances whose metric values exceed the threshold. For example, if you specify `count($Average > 20) > 3`, an alert is triggered only when the number of instances whose `average metric value` exceeds 20 exceeds three.
public PutResourceMetricRuleRequest.CompositeExpression.Builder expressionListJoin(String expressionListJoin)
public PutResourceMetricRuleRequest.CompositeExpression.Builder expressionRaw(String expressionRaw)
> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for the selected alert level.
public PutResourceMetricRuleRequest.CompositeExpression.Builder level(String level)
public PutResourceMetricRuleRequest.CompositeExpression.Builder times(Integer times)
* Maximum: the maximum value * Minimum: the minimum value * Average: the average value * Availability: the availability rate > You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for the selected alert level.
public PutResourceMetricRuleRequest.CompositeExpression build()
Copyright © 2023. All rights reserved.