public static final class PutResourceMetricRuleRequest.Info.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
PutResourceMetricRuleRequest.Info |
build() |
PutResourceMetricRuleRequest.Info.Builder |
comparisonOperator(String comparisonOperator)
The PromQL query statement.
|
PutResourceMetricRuleRequest.Info.Builder |
statistics(String statistics)
The value of the tag.
|
PutResourceMetricRuleRequest.Info.Builder |
threshold(String threshold)
The information about the resource.
|
PutResourceMetricRuleRequest.Info.Builder |
times(Integer times)
The number of consecutive triggers.
|
public PutResourceMetricRuleRequest.Info.Builder comparisonOperator(String comparisonOperator)
> The data obtained by using the PromQL query statement is the monitoring data. You must include the alert threshold in this statement.
public PutResourceMetricRuleRequest.Info.Builder statistics(String statistics)
> You can use a template parameter to specify a tag value. CloudMonitor replaces the value of the template parameter with an actual tag value.
public PutResourceMetricRuleRequest.Info.Builder threshold(String threshold)
For information about the supported dimensions that are used to query resources, see [Appendix 1: Metrics](~~163515~~).
public PutResourceMetricRuleRequest.Info.Builder times(Integer times)
public PutResourceMetricRuleRequest.Info build()
Copyright © 2023. All rights reserved.