public static class GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
alertCheckType
The alert check type of the Prometheus alert rule.
|
Long |
alertGroup
The ID of the alert contact group to which the alert rule belongs.
|
Long |
alertId
The ID of the alert rule.
|
String |
alertName
The name of the alert rule.
|
GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesAlertRuleContent |
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<GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesAnnotations> |
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 cluster ID of the Prometheus alert rule.
|
Long |
createdTime
The time when the alert rule was created.
|
String |
duration
The duration of the Prometheus alert rule.
|
String |
extend
The extended fields.
|
GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesFilters |
filters
The filter conditions of the Application Monitoring or Browser Monitoring alert rule.
|
List<GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesLabels> |
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 |
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<GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesTags> |
tags
The list of tags.
|
Long |
updatedTime
The time when the alert rule was updated.
|
String |
userId
The ID of the Alibaba Cloud account to which the resource belongs.
|
| 构造器和说明 |
|---|
GetAlertRulesResponseBodyPageBeanAlertRules() |
@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 ID of the alert contact group to which the alert rule belongs. Valid values:
1
@NameInMap(value="AlertId") public Long alertId
The ID of the alert rule.
example:5730***
@NameInMap(value="AlertName") public String alertName
The name of the alert rule.
example:arms-test
@NameInMap(value="AlertRuleContent") public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesAlertRuleContent 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.
APPLICATION_MONITORING_ALERT_RULE
@NameInMap(value="Annotations") public List<GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesAnnotations> 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:
truefalsefalse
@NameInMap(value="ClusterId") public String clusterId
The cluster ID of the Prometheus alert rule.
example:ceba9b9ea5b924dd0b6726d2de6******
@NameInMap(value="CreatedTime") public Long createdTime
The time when the alert rule was created. The value is a timestamp. Unit: milliseconds.
example:1640333981000
@NameInMap(value="Duration") public String duration
The duration of the Prometheus alert rule.
example:1
@NameInMap(value="Extend") public String extend
The extended fields.
example:For existing Application Monitoring alert rules, the fields contained information such as contacts, alert template, and notification content.
{\\"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 GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesFilters filters
The filter conditions of the Application Monitoring or Browser Monitoring alert rule.
@NameInMap(value="Labels") public List<GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesLabels> 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}} CPU usage: {{$labels.metrics_params_opt_label_value}} {{$labels.metrics_params_value}}%. 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="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<GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesTags> tags
The list of tags.
@NameInMap(value="UpdatedTime") public Long updatedTime
The time when the alert rule was updated. The value is a timestamp. Unit: milliseconds.
example:1640333981000
@NameInMap(value="UserId") public String userId
The ID of the Alibaba Cloud account to which the resource belongs.
example:1131971649******
public GetAlertRulesResponseBodyPageBeanAlertRules()
public static GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules build(Map<String,?> map) throws Exception
Exceptionpublic GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setAlertCheckType(String alertCheckType)
public String getAlertCheckType()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setAlertGroup(Long alertGroup)
public Long getAlertGroup()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setAlertId(Long alertId)
public Long getAlertId()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setAlertName(String alertName)
public String getAlertName()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setAlertRuleContent(GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesAlertRuleContent alertRuleContent)
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesAlertRuleContent getAlertRuleContent()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setAlertStatus(String alertStatus)
public String getAlertStatus()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setAlertType(String alertType)
public String getAlertType()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setAnnotations(List<GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesAnnotations> annotations)
public List<GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesAnnotations> getAnnotations()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setAutoAddNewApplication(Boolean autoAddNewApplication)
public Boolean getAutoAddNewApplication()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setClusterId(String clusterId)
public String getClusterId()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setCreatedTime(Long createdTime)
public Long getCreatedTime()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setDuration(String duration)
public String getDuration()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setExtend(String extend)
public String getExtend()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setFilters(GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesFilters filters)
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesFilters getFilters()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setLabels(List<GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesLabels> labels)
public List<GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesLabels> getLabels()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setLevel(String level)
public String getLevel()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setMessage(String message)
public String getMessage()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setMetricsType(String metricsType)
public String getMetricsType()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setNotifyStrategy(String notifyStrategy)
public String getNotifyStrategy()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setPids(List<String> pids)
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setPromQL(String promQL)
public String getPromQL()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setRegionId(String regionId)
public String getRegionId()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setTags(List<GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesTags> tags)
public List<GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRulesTags> getTags()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setUpdatedTime(Long updatedTime)
public Long getUpdatedTime()
public GetAlertRulesResponseBody.GetAlertRulesResponseBodyPageBeanAlertRules setUserId(String userId)
public String getUserId()
Copyright © 2024. All rights reserved.