public static final class PutResourceMetricRuleRequest.Warn.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
PutResourceMetricRuleRequest.Warn |
build() |
PutResourceMetricRuleRequest.Warn.Builder |
comparisonOperator(String comparisonOperator)
The key of the annotation.
|
PutResourceMetricRuleRequest.Warn.Builder |
statistics(String statistics)
The name of the metric.
|
PutResourceMetricRuleRequest.Warn.Builder |
threshold(String threshold)
The operator that is used to compare the metric value with the threshold.
|
PutResourceMetricRuleRequest.Warn.Builder |
times(Integer times)
The processing method of alerts when no monitoring data is found.
|
public PutResourceMetricRuleRequest.Warn.Builder comparisonOperator(String comparisonOperator)
public PutResourceMetricRuleRequest.Warn.Builder statistics(String statistics)
> If you create a Prometheus alert rule for Hybrid Cloud Monitoring, you must set this parameter to the name of the namespace. For information about how to obtain the name of a namespace, see [DescribeHybridMonitorNamespaceList](~~428880~~).
public PutResourceMetricRuleRequest.Warn.Builder threshold(String threshold)
* 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 > 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.Warn.Builder times(Integer times)
* 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 PutResourceMetricRuleRequest.Warn build()
Copyright © 2023. All rights reserved.