public static class DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Long |
alertId
The ID of the alert rule.
|
String |
alertName
The name of the alert rule.
|
List<DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations> |
annotations
The annotations of the alert rule.
|
String |
clusterId
The ID of the cluster.
|
Long |
dispatchRuleId
The ID of the notification policy.
|
String |
duration
The duration of the alert.
|
String |
expression
The expression of the alert rule.
|
List<DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels> |
labels
The tags of the alert rule.
|
String |
message
The alert message.
|
String |
notifyType
The method of that is used to send alert notifications.
|
Integer |
status
Indicates whether the alert rule is enabled.
|
String |
type
The type of the alert rule.
|
| 构造器和说明 |
|---|
DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule() |
@NameInMap(value="AlertId") public Long alertId
The ID of the alert rule.
example:3888704
@NameInMap(value="AlertName") public String alertName
The name of the alert rule.
example:Prometheus_Alert
@NameInMap(value="Annotations") public List<DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations> annotations
The annotations of the alert rule.
@NameInMap(value="ClusterId") public String clusterId
The ID of the cluster.
example:c0bad479465464e1d8c1e641b0afb****
@NameInMap(value="DispatchRuleId") public Long dispatchRuleId
The ID of the notification policy. This parameter is returned if the NotifyType parameter is set to DISPATCH_RULE.
10282
@NameInMap(value="Duration") public String duration
The duration of the alert. Valid values: 1 to 1440. Unit: minutes.
example:1m
@NameInMap(value="Expression") public String expression
The expression of the alert rule.
example:100 * (sum(rate(container_cpu_usage_seconds_total[1m])) by (pod_name) / sum(label_replace(kube_pod_container_resource_limits_cpu_cores, \"pod_name\", \"$1\", \"pod\", \"(.*)\")) by (pod_name))>75
@NameInMap(value="Labels") public List<DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels> labels
The tags of the alert rule.
@NameInMap(value="Message") public String message
The alert message. Tags can be referenced in the {{$labels.xxx}} format.
example:The CPU utilization of ${{$labels.pod_name}} has exceeded 80%. Current value: {{$value}}%
@NameInMap(value="NotifyType") public String notifyType
The method of that is used to send alert notifications. Valid values:
ALERT_MANAGER: Alert notifications are sent by Operation Center.DISPATCH_RULE: Alert notifications are sent based on the specified notification policy.ALERT_MANAGER
@NameInMap(value="Status") public Integer status
Indicates whether the alert rule is enabled. Valid values:
1: The alert rule is enabled.0: The alert rule is disabled.1
@NameInMap(value="Type") public String type
The type of the alert rule.
example:Kubernetes component alert
public DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule()
public static DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule build(Map<String,?> map) throws Exception
Exceptionpublic DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule setAlertId(Long alertId)
public Long getAlertId()
public DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule setAlertName(String alertName)
public String getAlertName()
public DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule setAnnotations(List<DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations> annotations)
public List<DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations> getAnnotations()
public DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule setClusterId(String clusterId)
public String getClusterId()
public DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule setDispatchRuleId(Long dispatchRuleId)
public Long getDispatchRuleId()
public DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule setDuration(String duration)
public String getDuration()
public DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule setExpression(String expression)
public String getExpression()
public DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule setLabels(List<DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels> labels)
public List<DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels> getLabels()
public DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule setMessage(String message)
public String getMessage()
public DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule setNotifyType(String notifyType)
public String getNotifyType()
public DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule setStatus(Integer status)
public Integer getStatus()
public DescribePrometheusAlertRuleResponseBody.DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule setType(String type)
public String getType()
Copyright © 2024. All rights reserved.