public class CreatePrometheusAlertRuleRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CreatePrometheusAlertRuleRequest.CreatePrometheusAlertRuleRequestTags |
| 限定符和类型 | 字段和说明 |
|---|---|
String |
alertName
This parameter is required.
|
String |
annotations
example:
[{"Value": "xxx","Name": "description"}]
|
String |
clusterId
This parameter is required.
|
Long |
dispatchRuleId
example:
10282
|
String |
duration
This parameter is required.
|
String |
expression
This parameter is required.
|
String |
labels
example:
[{"Value": "critical","Name": "severity"}]
|
String |
message
This parameter is required.
|
String |
notifyType
example:
ALERT_MANAGER
|
String |
regionId
This parameter is required.
|
List<CreatePrometheusAlertRuleRequest.CreatePrometheusAlertRuleRequestTags> |
tags |
String |
type
example:
101
|
| 构造器和说明 |
|---|
CreatePrometheusAlertRuleRequest() |
@NameInMap(value="AlertName") public String alertName
This parameter is required.
example:Prometheus_Alert
@NameInMap(value="Annotations") public String annotations
[{"Value": "xxx","Name": "description"}]
@NameInMap(value="ClusterId") public String clusterId
This parameter is required.
example:c0bad479465464e1d8c1e641b0afb****
@NameInMap(value="DispatchRuleId") public Long dispatchRuleId
10282
@NameInMap(value="Duration") public String duration
This parameter is required.
@NameInMap(value="Expression") public String expression
This parameter is required.
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 String labels
[{"Value": "critical","Name": "severity"}]
@NameInMap(value="Message") public String message
This parameter is required.
@NameInMap(value="NotifyType") public String notifyType
ALERT_MANAGER
@NameInMap(value="RegionId") public String regionId
This parameter is required.
example:cn-hangzhou
@NameInMap(value="Tags") public List<CreatePrometheusAlertRuleRequest.CreatePrometheusAlertRuleRequestTags> tags
@NameInMap(value="Type") public String type
101
public static CreatePrometheusAlertRuleRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreatePrometheusAlertRuleRequest setAlertName(String alertName)
public String getAlertName()
public CreatePrometheusAlertRuleRequest setAnnotations(String annotations)
public String getAnnotations()
public CreatePrometheusAlertRuleRequest setClusterId(String clusterId)
public String getClusterId()
public CreatePrometheusAlertRuleRequest setDispatchRuleId(Long dispatchRuleId)
public Long getDispatchRuleId()
public CreatePrometheusAlertRuleRequest setDuration(String duration)
public String getDuration()
public CreatePrometheusAlertRuleRequest setExpression(String expression)
public String getExpression()
public CreatePrometheusAlertRuleRequest setLabels(String labels)
public String getLabels()
public CreatePrometheusAlertRuleRequest setMessage(String message)
public String getMessage()
public CreatePrometheusAlertRuleRequest setNotifyType(String notifyType)
public String getNotifyType()
public CreatePrometheusAlertRuleRequest setRegionId(String regionId)
public String getRegionId()
public CreatePrometheusAlertRuleRequest setTags(List<CreatePrometheusAlertRuleRequest.CreatePrometheusAlertRuleRequestTags> tags)
public List<CreatePrometheusAlertRuleRequest.CreatePrometheusAlertRuleRequestTags> getTags()
public CreatePrometheusAlertRuleRequest setType(String type)
public String getType()
Copyright © 2024. All rights reserved.