public static class DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations |
annotations
The annotations of the Prometheus alert rule.
|
String |
level
The level of the alert.
|
String |
promQL
The PromQL query statement.
|
Long |
times
The number of consecutive triggers.
|
| 构造器和说明 |
|---|
DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus() |
@NameInMap(value="Annotations") public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations 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 Long 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 DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus()
public static DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus build(Map<String,?> map) throws Exception
Exceptionpublic DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus setAnnotations(DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations annotations)
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheusAnnotations getAnnotations()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus setLevel(String level)
public String getLevel()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus setPromQL(String promQL)
public String getPromQL()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus setTimes(Long times)
public Long getTimes()
Copyright © 2024. All rights reserved.