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.
|
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.
|
DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus |
prometheus
The Prometheus alert rule.
|
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: The alert rule has no active alerts.
* ALARM: The alert rule has active alerts.
* INSUFFICIENT_DATA: No data is available.
@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.
@NameInMap(value="Dimensions") public String dimensions
The dimensions of the alert rule.
@NameInMap(value="EffectiveInterval") public String effectiveInterval
The time period during which the alert rule is effective.
@NameInMap(value="EnableState") public Boolean enableState
Indicates whether the alert rule is enabled. Valid values:
* true: The alert rule is enabled.
* false: The alert rule is disabled.
@NameInMap(value="Escalations") public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmEscalations escalations
The conditions for triggering different levels of alerts.
@NameInMap(value="GroupId") public String groupId
The ID of the application group.
@NameInMap(value="GroupName") public String groupName
The name of the application group.
> If the alert rule is associated with an application group, the name of the application group is returned in this parameter.
@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.
@NameInMap(value="MetricName") public String metricName
The name of the metric.
@NameInMap(value="Namespace") public String namespace
The namespace of the cloud service.
@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 (default value): No operation is performed.
* INSUFFICIENT_DATA: An alert whose content is "Insufficient data" is triggered.
* OK: The status is considered normal.
@NameInMap(value="NoEffectiveInterval") public String noEffectiveInterval
The time period during which the alert rule is ineffective.
@NameInMap(value="Period") public String period
The statistical period.
@NameInMap(value="Prometheus") public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmPrometheus prometheus
The Prometheus alert rule.
> This parameter is required only when 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.
@NameInMap(value="RuleId") public String ruleId
The ID of the alert rule.
@NameInMap(value="RuleName") public String ruleName
The name of the alert rule.
@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.
@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.
@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.
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 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 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 © 2024. All rights reserved.