public static class PutResourceMetricRuleRequest.PutResourceMetricRuleRequestPrometheus
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
List<PutResourceMetricRuleRequest.PutResourceMetricRuleRequestPrometheusAnnotations> |
annotations
The annotations of the Prometheus alert rule.
|
String |
level
The level of the alert.
|
String |
promQL
The PromQL query statement.
|
Integer |
times
The number of consecutive triggers.
|
| 构造器和说明 |
|---|
PutResourceMetricRuleRequestPrometheus() |
@NameInMap(value="Annotations") public List<PutResourceMetricRuleRequest.PutResourceMetricRuleRequestPrometheusAnnotations> annotations
The annotations of the Prometheus alert rule. When a Prometheus alert is triggered, the system renders the annotated keys and values to help you understand the metrics and alert rule.
> This parameter is equivalent to the annotations parameter of open source Prometheus.
@NameInMap(value="Level") public String level
The level of the alert. Valid values:
* Critical
* Warn
* Info
@NameInMap(value="PromQL") public String promQL
The PromQL query statement.
> The data obtained by using the PromQL query statement is the monitoring data. You must include the alert threshold in this statement.
@NameInMap(value="Times") public Integer times
The number of consecutive triggers. If the number of times that the metric values meet the trigger conditions reaches the value of this parameter, CloudMonitor sends alert notifications.
public static PutResourceMetricRuleRequest.PutResourceMetricRuleRequestPrometheus build(Map<String,?> map) throws Exception
Exceptionpublic PutResourceMetricRuleRequest.PutResourceMetricRuleRequestPrometheus setAnnotations(List<PutResourceMetricRuleRequest.PutResourceMetricRuleRequestPrometheusAnnotations> annotations)
public List<PutResourceMetricRuleRequest.PutResourceMetricRuleRequestPrometheusAnnotations> getAnnotations()
public PutResourceMetricRuleRequest.PutResourceMetricRuleRequestPrometheus setLevel(String level)
public String getLevel()
public PutResourceMetricRuleRequest.PutResourceMetricRuleRequestPrometheus setPromQL(String promQL)
public String getPromQL()
public PutResourceMetricRuleRequest.PutResourceMetricRuleRequestPrometheus setTimes(Integer times)
public Integer getTimes()
Copyright © 2024. All rights reserved.