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