public static class DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
alertState
The status of the alert rule.
|
DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression |
compositeExpression
The trigger conditions for multiple metrics.
|
String |
contactGroups
The alert contact group.
|
String |
dimensions
The dimensions of the alert rule.
|
String |
effectiveInterval
The time period during which the alert rule is effective.
|
Boolean |
enableState
Indicates whether the alert rule is enabled.
|
DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations |
escalations
The conditions for triggering different levels of alerts.
|
Long |
gmtCreate |
String |
gmtUpdate |
String |
groupId
The ID of the application group.
|
String |
groupName
The name of the application group.
|
DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmLabels |
labels
The tags of the alert rule.
|
String |
mailSubject
The subject of the alert notification email.
|
String |
metricName
The name of the metric.
|
String |
namespace
The namespace of the cloud service.
|
String |
noDataPolicy
The method that is used to handle alerts when no monitoring data is found.
|
String |
noEffectiveInterval
The time period during which the alert rule is ineffective.
|
String |
period
The statistical period.
|
String |
productCategory |
DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus |
prometheus
The Prometheus alerts.
|
String |
resources
The resources that are associated with the alert rule.
|
String |
ruleId
The ID of the alert rule.
|
String |
ruleName
The name of the alert rule.
|
Integer |
silenceTime
The mute period during which new alert notifications are not sent even if the trigger conditions are met.
|
String |
sourceType
The type of the alert rule.
|
String |
webhook
The callback URL.
|
| 构造器和说明 |
|---|
DescribeMetricRuleListResponseBodyAlarmsAlarm() |
@NameInMap(value="AlertState") public String alertState
The status of the alert rule. Valid values:
OK
@NameInMap(value="CompositeExpression") public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression compositeExpression
The trigger conditions for multiple metrics.
The trigger conditions for a single metric and multiple metrics are mutually exclusive. You cannot specify trigger conditions for a single metric and multiple metrics at the same time.
@NameInMap(value="ContactGroups") public String contactGroups
The alert contact group.
example:ECS_Alarm
@NameInMap(value="Dimensions") public String dimensions
The dimensions of the alert rule.
example:[{"instanceId":"i-2ze2d6j5uhg20x47****"}]
@NameInMap(value="EffectiveInterval") public String effectiveInterval
The time period during which the alert rule is effective.
example:05:31-23:59
@NameInMap(value="EnableState") public Boolean enableState
Indicates whether the alert rule is enabled. Valid values:
true
@NameInMap(value="Escalations") public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations escalations
The conditions for triggering different levels of alerts.
@NameInMap(value="GmtCreate") public Long gmtCreate
@NameInMap(value="GmtUpdate") public String gmtUpdate
@NameInMap(value="GroupId") public String groupId
The ID of the application group.
example:7301****
@NameInMap(value="GroupName") public String groupName
The name of the application group.
example:If the alert rule is associated with an application group, the name of the application group is returned in this parameter.
ECS_Group
@NameInMap(value="Labels") public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmLabels labels
The tags of the alert rule.
@NameInMap(value="MailSubject") public String mailSubject
The subject of the alert notification email.
example:"${serviceType}-${metricName}-${levelDescription}Notification(${dimensions})"
@NameInMap(value="MetricName") public String metricName
The name of the metric.
example:cpu_total
@NameInMap(value="Namespace") public String namespace
The namespace of the cloud service.
example:acs_ecs_dashboard
@NameInMap(value="NoDataPolicy") public String noDataPolicy
The method that is used to handle alerts when no monitoring data is found. Valid values:
KEEP_LAST_STATE
@NameInMap(value="NoEffectiveInterval") public String noEffectiveInterval
The time period during which the alert rule is ineffective.
example:00:00-05:30
@NameInMap(value="Period") public String period
The statistical period.
example:60
@NameInMap(value="ProductCategory") public String productCategory
@NameInMap(value="Prometheus") public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus prometheus
The Prometheus alerts.
This parameter is required only if you create a Prometheus alert rule for Hybrid Cloud Monitoring.
@NameInMap(value="Resources") public String resources
The resources that are associated with the alert rule.
example:[{\"instanceId\":\"i-2ze2d6j5uhg20x47****\"}]
@NameInMap(value="RuleId") public String ruleId
The ID of the alert rule.
example:applyTemplate344cfd42-0f32-4fd6-805a-88d7908a****
@NameInMap(value="RuleName") public String ruleName
The name of the alert rule.
example:Rule_01
@NameInMap(value="SilenceTime") public Integer silenceTime
The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds. Default value: 86400. Minimum value: 3600.
Only one alert is reported during each mute period even if the metric value consecutively exceeds the alert rule threshold several times.
example:86400
@NameInMap(value="SourceType") public String sourceType
The type of the alert rule. Valid value: METRIC. This value indicates an alert rule for time series metrics.
example:METRIC
@NameInMap(value="Webhook") public String webhook
The callback URL. CloudMonitor pushes an alert notification to the specified callback URL by sending an HTTP POST request. Only the HTTP protocol is supported.
example:public DescribeMetricRuleListResponseBodyAlarmsAlarm()
public static DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm build(Map<String,?> map) throws Exception
Exceptionpublic DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setAlertState(String alertState)
public String getAlertState()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setCompositeExpression(DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression compositeExpression)
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression getCompositeExpression()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setContactGroups(String contactGroups)
public String getContactGroups()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setDimensions(String dimensions)
public String getDimensions()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setEffectiveInterval(String effectiveInterval)
public String getEffectiveInterval()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setEnableState(Boolean enableState)
public Boolean getEnableState()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setEscalations(DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations escalations)
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations getEscalations()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setGmtCreate(Long gmtCreate)
public Long getGmtCreate()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setGmtUpdate(String gmtUpdate)
public String getGmtUpdate()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setGroupId(String groupId)
public String getGroupId()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setGroupName(String groupName)
public String getGroupName()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setLabels(DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmLabels labels)
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmLabels getLabels()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setMailSubject(String mailSubject)
public String getMailSubject()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setMetricName(String metricName)
public String getMetricName()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setNamespace(String namespace)
public String getNamespace()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setNoDataPolicy(String noDataPolicy)
public String getNoDataPolicy()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setNoEffectiveInterval(String noEffectiveInterval)
public String getNoEffectiveInterval()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setPeriod(String period)
public String getPeriod()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setProductCategory(String productCategory)
public String getProductCategory()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setPrometheus(DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus prometheus)
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus getPrometheus()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setResources(String resources)
public String getResources()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setRuleId(String ruleId)
public String getRuleId()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setRuleName(String ruleName)
public String getRuleName()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setSilenceTime(Integer silenceTime)
public Integer getSilenceTime()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setSourceType(String sourceType)
public String getSourceType()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarm setWebhook(String webhook)
public String getWebhook()
Copyright © 2026. All rights reserved.