public static class CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
category
The name of the cloud service.
|
String |
contactGroups
The alert contact groups.
|
String |
dimensions
The dimension of the alert rule.
|
String |
effectiveInterval
The time period during which the alert rule is effective.
|
String |
emailSubject
The subject of the alert notification email.
|
CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRulesEscalations |
escalations |
String |
interval
The interval at which CloudMonitor checks whether the alert rule is triggered.
|
List<CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRulesLabels> |
labels |
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 |
options
example:
{
"NotSendOK": true
}
|
String |
period
The aggregation period of the metric data.
|
String |
ruleId
The ID of the alert rule.
|
String |
ruleName
The name of the alert rule.
|
Integer |
silenceTime
The mute period during which new alerts are not sent even if the trigger conditions are met.
|
String |
webhook
The callback URL.
|
| 构造器和说明 |
|---|
CreateGroupMetricRulesRequestGroupMetricRules() |
@NameInMap(value="Escalations") public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRulesEscalations escalations
@NameInMap(value="Category") public String category
The name of the cloud service. Valid values of N: 1 to 200. Valid value:
This parameter is required.
example:ECS
@NameInMap(value="ContactGroups") public String contactGroups
The alert contact groups. Valid values of N: 1 to 200.
For information about how to obtain alert contact groups, see DescribeContactGroupList.
example:ECS_Group
@NameInMap(value="Dimensions") public String dimensions
The dimension of the alert rule. Valid values of N: 1 to 200.
Set the value to a set of key-value pairs, for example, userId:120886317861**** or instanceId:i-m5e1qg6uo38rztr4****.
[{"instanceId":"i-m5e1qg6uo38rztr4****"}]
@NameInMap(value="EffectiveInterval") public String effectiveInterval
The time period during which the alert rule is effective. Valid values of N: 1 to 200.
example:05:31-23:59
@NameInMap(value="EmailSubject") public String emailSubject
The subject of the alert notification email. Valid values of N: 1 to 200.
@NameInMap(value="Interval") public String interval
The interval at which CloudMonitor checks whether the alert rule is triggered. Valid values of N: 1 to 200.
Unit: seconds. The default value is the lowest frequency at which the metric is polled.
example:We recommend that you set the interval to the data aggregation period. If the interval is shorter than the data aggregation period, alerts cannot be triggered due to insufficient data.
60
@NameInMap(value="Labels") public List<CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRulesLabels> labels
@NameInMap(value="MetricName") public String metricName
The name of the metric. Valid values of N: 1 to 200.
For information about how to obtain the name of a metric, see DescribeMetricMetaList or Appendix 1: Metrics.
This parameter is required.
example:cpu_total
@NameInMap(value="Namespace") public String namespace
The namespace of the cloud service. Valid values of N: 1 to 200.
For information about how to obtain the namespace of a cloud service, see DescribeMetricMetaList or Appendix 1: Metrics.
This parameter is required.
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 of N: 1 to 200. Valid value:
KEEP_LAST_STATE
@NameInMap(value="NoEffectiveInterval") public String noEffectiveInterval
The time period during which the alert rule is ineffective. Valid values of N: 1 to 200.
example:00:00-05:30
@NameInMap(value="Options") public String options
{ "NotSendOK": true }
@NameInMap(value="Period") public String period
The aggregation period of the metric data. Valid values of N: 1 to 200.
Set the Period parameter to an integral multiple of 60. Unit: seconds. Default value: 300.
60
@NameInMap(value="RuleId") public String ruleId
The ID of the alert rule. Valid values of N: 1 to 200.
This parameter is required.
example:456789
@NameInMap(value="RuleName") public String ruleName
The name of the alert rule. Valid values of N: 1 to 200.
This parameter is required.
example:ECS_Rule1
@NameInMap(value="SilenceTime") public Integer silenceTime
The mute period during which new alerts are not sent even if the trigger conditions are met. Valid values of N: 1 to 200.
Unit: seconds. Default value: 86400. Minimum value: 3600.
example:86400
@NameInMap(value="Webhook") public String webhook
The callback URL. Valid values of N: 1 to 200.
The callback URL must be accessible over the Internet. CloudMonitor pushes an alert notification to the specified callback URL by sending an HTTP POST request. Only the HTTP protocol is supported.
example:public CreateGroupMetricRulesRequestGroupMetricRules()
public static CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules build(Map<String,?> map) throws Exception
Exceptionpublic CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setEscalations(CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRulesEscalations escalations)
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRulesEscalations getEscalations()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setCategory(String category)
public String getCategory()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setContactGroups(String contactGroups)
public String getContactGroups()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setDimensions(String dimensions)
public String getDimensions()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setEffectiveInterval(String effectiveInterval)
public String getEffectiveInterval()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setEmailSubject(String emailSubject)
public String getEmailSubject()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setInterval(String interval)
public String getInterval()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setLabels(List<CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRulesLabels> labels)
public List<CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRulesLabels> getLabels()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setMetricName(String metricName)
public String getMetricName()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setNamespace(String namespace)
public String getNamespace()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setNoDataPolicy(String noDataPolicy)
public String getNoDataPolicy()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setNoEffectiveInterval(String noEffectiveInterval)
public String getNoEffectiveInterval()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setOptions(String options)
public String getOptions()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setPeriod(String period)
public String getPeriod()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setRuleId(String ruleId)
public String getRuleId()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setRuleName(String ruleName)
public String getRuleName()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setSilenceTime(Integer silenceTime)
public Integer getSilenceTime()
public CreateGroupMetricRulesRequest.CreateGroupMetricRulesRequestGroupMetricRules setWebhook(String webhook)
public String getWebhook()
Copyright © 2026. All rights reserved.