public static final class PutResourceMetricRuleRequest.Prometheus.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
PutResourceMetricRuleRequest.Prometheus.Builder |
annotations(List<PutResourceMetricRuleRequest.Annotations> annotations)
The operator that is used to compare the metric value with the threshold.
|
PutResourceMetricRuleRequest.Prometheus |
build() |
PutResourceMetricRuleRequest.Prometheus.Builder |
level(String level)
The annotations of the Prometheus alert rule.
|
PutResourceMetricRuleRequest.Prometheus.Builder |
promQL(String promQL)
The threshold for Critical-level alerts.
|
PutResourceMetricRuleRequest.Prometheus.Builder |
times(Integer times)
The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered.
|
public PutResourceMetricRuleRequest.Prometheus.Builder annotations(List<PutResourceMetricRuleRequest.Annotations> annotations)
* 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 PutResourceMetricRuleRequest.Prometheus.Builder level(String level)
> This parameter is equivalent to the annotations parameter of open source Prometheus.
public PutResourceMetricRuleRequest.Prometheus.Builder promQL(String promQL)
> 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.Prometheus.Builder times(Integer times)
> 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.Prometheus build()
Copyright © 2023. All rights reserved.