public static class CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Long |
alertId
example:
3888704
|
String |
alertName
example:
Prometheus_Alert
|
List<CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations> |
annotations |
String |
clusterId
example:
c0bad479465464e1d8c1e641b0afb****
|
Long |
dispatchRuleId
example:
10282
|
String |
duration |
String |
expression
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
|
List<CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels> |
labels |
String |
message |
String |
notifyType
example:
ALERT_MANAGER
|
Integer |
status
example:
1
|
String |
type |
| 构造器和说明 |
|---|
CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule() |
@NameInMap(value="AlertId") public Long alertId
3888704
@NameInMap(value="AlertName") public String alertName
Prometheus_Alert
@NameInMap(value="Annotations") public List<CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations> annotations
@NameInMap(value="ClusterId") public String clusterId
c0bad479465464e1d8c1e641b0afb****
@NameInMap(value="DispatchRuleId") public Long dispatchRuleId
10282
@NameInMap(value="Duration") public String duration
@NameInMap(value="Expression") public String expression
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<CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels> labels
@NameInMap(value="Message") public String message
@NameInMap(value="NotifyType") public String notifyType
ALERT_MANAGER
@NameInMap(value="Status") public Integer status
1
@NameInMap(value="Type") public String type
public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule()
public static CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule build(Map<String,?> map) throws Exception
Exceptionpublic CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setAlertId(Long alertId)
public Long getAlertId()
public CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setAlertName(String alertName)
public String getAlertName()
public CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setAnnotations(List<CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations> annotations)
public List<CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations> getAnnotations()
public CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setClusterId(String clusterId)
public String getClusterId()
public CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setDispatchRuleId(Long dispatchRuleId)
public Long getDispatchRuleId()
public CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setDuration(String duration)
public String getDuration()
public CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setExpression(String expression)
public String getExpression()
public CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setLabels(List<CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels> labels)
public List<CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels> getLabels()
public CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setMessage(String message)
public String getMessage()
public CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setNotifyType(String notifyType)
public String getNotifyType()
public CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setStatus(Integer status)
public Integer getStatus()
public CreatePrometheusAlertRuleResponseBody.CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setType(String type)
public String getType()
Copyright © 2024. All rights reserved.