public static class CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
alertCheckType
The alert check type of the Prometheus alert rule.
|
Long |
alertGroup
The alert contact group ID of the Prometheus alert rule.
|
Float |
alertId
The ID of the alert rule.
|
String |
alertName
The name of the alert rule.
|
CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleAlertRuleContent |
alertRuleContent
The content of the Application Monitoring or Browser Monitoring alert rule.
|
String |
alertStatus
The status of the alert rule.
|
String |
alertType
The type of the alert rule.
|
List<CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleAnnotations> |
annotations
The annotations of the Prometheus alert rule.
|
Boolean |
autoAddNewApplication
Indicates whether the alert rule was applied to new applications that were created in Application Monitoring or Browser Monitoring.
|
String |
clusterId
The ID of the monitored cluster.
|
Long |
createdTime
The timestamp generated when the alert rule was created.
|
String |
duration
The duration of the Prometheus alert rule.
|
String |
extend
The extended fields.
|
CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleFilters |
filters
The filter conditions of the Application Monitoring or Browser Monitoring alert rule.
|
List<CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleLabels> |
labels
The tags of the Prometheus alert rule.
|
String |
level
The severity level of the Prometheus alert rule.
|
String |
message
The alert message of the Prometheus alert rule.
|
String |
metricsType
The metric type of the Application Monitoring or Browser Monitoring alert rule.
|
String |
notifyMode
Notification Mode.
|
String |
notifyStrategy
The name of the notification policy.
|
List<String> |
pids
The process ID (PID) that was associated with the Application Monitoring or Browser Monitoring alert rule.
|
String |
promQL
The PromQL statement of the Prometheus alert rule.
|
String |
regionId
The region ID.
|
List<CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleTags> |
tags
The list of tags.
|
Long |
updatedTime
The timestamp generated when the alert rule was updated.
|
String |
userId
The ID of the Alibaba Cloud account.
|
| 构造器和说明 |
|---|
CreateOrUpdateAlertRuleResponseBodyAlertRule() |
@NameInMap(value="AlertCheckType") public String alertCheckType
The alert check type of the Prometheus alert rule. Valid values:
STATIC
@NameInMap(value="AlertGroup") public Long alertGroup
The alert contact group ID of the Prometheus alert rule. Valid values:
-1
@NameInMap(value="AlertId") public Float alertId
The ID of the alert rule.
example:5510445
@NameInMap(value="AlertName") public String alertName
The name of the alert rule.
example:arms-test
@NameInMap(value="AlertRuleContent") public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleAlertRuleContent alertRuleContent
The content of the Application Monitoring or Browser Monitoring alert rule.
@NameInMap(value="AlertStatus") public String alertStatus
The status of the alert rule. Valid values:
example:The PAUSED status indicates that the alert rule is abnormal and is actively paused by the system. The alert rule may be paused because that it is not unique or the associated cluster has been deleted.
RUNNING
@NameInMap(value="AlertType") public String alertType
The type of the alert rule. Valid values:
APPLICATION_MONITORING_ALERT_RULE
@NameInMap(value="Annotations") public List<CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleAnnotations> annotations
The annotations of the Prometheus alert rule.
@NameInMap(value="AutoAddNewApplication") public Boolean autoAddNewApplication
Indicates whether the alert rule was applied to new applications that were created in Application Monitoring or Browser Monitoring. Valid values:
true: enables the health check feature.false: disables the automatic backup feature.false
@NameInMap(value="ClusterId") public String clusterId
The ID of the monitored cluster.
example:ceba9b9ea5b924dd0b6726d2de6******
@NameInMap(value="CreatedTime") public Long createdTime
The timestamp generated when the alert rule was created. Unit: seconds.
example:1641438611000
@NameInMap(value="Duration") public String duration
The duration of the Prometheus alert rule. Unit: minutes.
example:1
@NameInMap(value="Extend") public String extend
The extended fields.
example:{\\"alarmContext\\":\\"{\\\\\"content\\\\\":\\\\Alert name: $Alert name\\\\\\nFilter condition: $Filter condition\\\\\\nAlert time: $Alert time\\\\\\nAlert content: $Alert content\\\\\\nNote: The alert persists before you receive an email that reminds you to clear the alert. You will be reminded of the alert again 24 hours later. \\\\\",\\\\\"subTitle\\\\\":\\\\\"\\\\\"}\\",\\"alertWays\\":\\"[0,1]\\",\\"contactGroupIds\\":\\"381,5075\\",\\"notice\\":\\"{\\\\\"endTime\\\\\":1480607940000,\\\\\"noticeEndTime\\\\\":1480607940000,\\\\\"noticeStartTime\\\\\":1480521600000,\\\\\"startTime\\\\\":1480521600000}\\"}
@NameInMap(value="Filters") public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleFilters filters
The filter conditions of the Application Monitoring or Browser Monitoring alert rule.
@NameInMap(value="Labels") public List<CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleLabels> labels
The tags of the Prometheus alert rule.
@NameInMap(value="Level") public String level
The severity level of the Prometheus alert rule.
P2
@NameInMap(value="Message") public String message
The alert message of the Prometheus alert rule.
example:Namespace: {{$labels.namespace}} / Pod: {{$labels.pod_name}} / Container: {{$labels.container}} Memory usage exceeds 80%. Current value: {{ printf \\\\\"%.2f\\\\\" $value }}%
@NameInMap(value="MetricsType") public String metricsType
The metric type of the Application Monitoring or Browser Monitoring alert rule.
example:JVM
@NameInMap(value="NotifyMode") public String notifyMode
Notification Mode.
example:NORMAL_MODE
@NameInMap(value="NotifyStrategy") public String notifyStrategy
The name of the notification policy.
example:ALERT_MANAGER
@NameInMap(value="Pids") public List<String> pids
The process ID (PID) that was associated with the Application Monitoring or Browser Monitoring alert rule.
@NameInMap(value="PromQL") public String promQL
The PromQL statement of the Prometheus alert rule.
example:node_memory_MemAvailable_bytes{} / node_memory_MemTotal_bytes{} * 100
@NameInMap(value="RegionId") public String regionId
The region ID.
example:cn-hangzhou
@NameInMap(value="Tags") public List<CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleTags> tags
The list of tags.
@NameInMap(value="UpdatedTime") public Long updatedTime
The timestamp generated when the alert rule was updated. Unit: seconds.
example:1641438611000
@NameInMap(value="UserId") public String userId
The ID of the Alibaba Cloud account.
example:1131971649******
public CreateOrUpdateAlertRuleResponseBodyAlertRule()
public static CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule build(Map<String,?> map) throws Exception
Exceptionpublic CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setAlertCheckType(String alertCheckType)
public String getAlertCheckType()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setAlertGroup(Long alertGroup)
public Long getAlertGroup()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setAlertId(Float alertId)
public Float getAlertId()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setAlertName(String alertName)
public String getAlertName()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setAlertRuleContent(CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleAlertRuleContent alertRuleContent)
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleAlertRuleContent getAlertRuleContent()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setAlertStatus(String alertStatus)
public String getAlertStatus()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setAlertType(String alertType)
public String getAlertType()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setAnnotations(List<CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleAnnotations> annotations)
public List<CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleAnnotations> getAnnotations()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setAutoAddNewApplication(Boolean autoAddNewApplication)
public Boolean getAutoAddNewApplication()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setClusterId(String clusterId)
public String getClusterId()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setCreatedTime(Long createdTime)
public Long getCreatedTime()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setDuration(String duration)
public String getDuration()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setExtend(String extend)
public String getExtend()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setFilters(CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleFilters filters)
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleFilters getFilters()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setLabels(List<CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleLabels> labels)
public List<CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleLabels> getLabels()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setLevel(String level)
public String getLevel()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setMessage(String message)
public String getMessage()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setMetricsType(String metricsType)
public String getMetricsType()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setNotifyMode(String notifyMode)
public String getNotifyMode()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setNotifyStrategy(String notifyStrategy)
public String getNotifyStrategy()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setPids(List<String> pids)
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setPromQL(String promQL)
public String getPromQL()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setRegionId(String regionId)
public String getRegionId()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setTags(List<CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleTags> tags)
public List<CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRuleTags> getTags()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setUpdatedTime(Long updatedTime)
public Long getUpdatedTime()
public CreateOrUpdateAlertRuleResponseBody.CreateOrUpdateAlertRuleResponseBodyAlertRule setUserId(String userId)
public String getUserId()
Copyright © 2024. All rights reserved.