public static final class DescribeMetricRuleListResponseBody.Prometheus.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
DescribeMetricRuleListResponseBody.Prometheus.Builder |
annotations(DescribeMetricRuleListResponseBody.PrometheusAnnotations annotations)
The annotations of the Prometheus alert rule.
|
DescribeMetricRuleListResponseBody.Prometheus |
build() |
DescribeMetricRuleListResponseBody.Prometheus.Builder |
level(String level)
The alert level.
|
DescribeMetricRuleListResponseBody.Prometheus.Builder |
promQL(String promQL)
The PromQL query statement.
|
DescribeMetricRuleListResponseBody.Prometheus.Builder |
times(Long times)
The number of consecutive triggers.
|
public DescribeMetricRuleListResponseBody.Prometheus.Builder annotations(DescribeMetricRuleListResponseBody.PrometheusAnnotations 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.
public DescribeMetricRuleListResponseBody.Prometheus.Builder level(String level)
The alert level. Valid values:
Critical
public DescribeMetricRuleListResponseBody.Prometheus.Builder promQL(String promQL)
The PromQL query statement.
example:The data obtained by using the PromQL query statement is the monitoring data. You must include the alert threshold in this statement.
CpuUsage{instanceId="xxxx"}[1m]>90
public DescribeMetricRuleListResponseBody.Prometheus.Builder times(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.
example:3
public DescribeMetricRuleListResponseBody.Prometheus build()
Copyright © 2024. All rights reserved.