public class PutGroupMetricRuleRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
PutGroupMetricRuleRequest.PutGroupMetricRuleRequestEscalations |
static class |
PutGroupMetricRuleRequest.PutGroupMetricRuleRequestEscalationsCritical |
static class |
PutGroupMetricRuleRequest.PutGroupMetricRuleRequestEscalationsInfo |
static class |
PutGroupMetricRuleRequest.PutGroupMetricRuleRequestEscalationsWarn |
static class |
PutGroupMetricRuleRequest.PutGroupMetricRuleRequestLabels |
| 限定符和类型 | 字段和说明 |
|---|---|
String |
category
The abbreviation of the cloud service name.
|
String |
contactGroups
The alert contact group.
|
String |
dimensions
The first-level dimension of the alert rule in the application group.
|
String |
effectiveInterval
The time period during which the alert rule is effective.
|
String |
emailSubject
The subject of the alert notification email.
|
PutGroupMetricRuleRequest.PutGroupMetricRuleRequestEscalations |
escalations |
String |
extraDimensionJson
The second-level or third-level dimension of the alert rule in the application group.
|
String |
groupId
The application group ID.
|
String |
interval
The interval at which CloudMonitor checks whether the alert rule is triggered.
|
List<PutGroupMetricRuleRequest.PutGroupMetricRuleRequestLabels> |
labels
The tags of the alert rule.
|
String |
metricName
The metric name.
|
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 |
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.
|
| 构造器和说明 |
|---|
PutGroupMetricRuleRequest() |
@NameInMap(value="Escalations") public PutGroupMetricRuleRequest.PutGroupMetricRuleRequestEscalations escalations
@NameInMap(value="Category") public String category
The abbreviation of the cloud service name.
For more information about how to obtain the abbreviation of a cloud service name, see `metricCategory` in the response parameter `Labels` of the [DescribeProjectMeta](~~114916~~) operation.
@NameInMap(value="ContactGroups") public String contactGroups
The alert contact group.
@NameInMap(value="Dimensions") public String dimensions
The first-level dimension of the alert rule in the application group.
Set the value to a set of key-value pairs, for example, `userId:120886317861****` or `instanceId:i-m5e1qg6uo38rztr4****`.
@NameInMap(value="EffectiveInterval") public String effectiveInterval
The time period during which the alert rule is effective.
@NameInMap(value="EmailSubject") public String emailSubject
The subject of the alert notification email.
@NameInMap(value="ExtraDimensionJson") public String extraDimensionJson
The second-level or third-level dimension of the alert rule in the application group.
Set the value to a set of key-value pairs, for example, `port:80` or `/dev/xvda:d-m5e6yphgzn3aprwu****`.
If the first-level dimension of the alert rule is `instanceId:i-m5e1qg6uo38rztr4****`, its second-level dimension is the `/dev/xvda:d-m5e6yphgzn3aprwu****` disk in the instance.
@NameInMap(value="GroupId") public String groupId
The application group ID.
For more information about how to obtain the ID of an application group, see [DescribeMonitorGroups](~~115032~~).
@NameInMap(value="Interval") public String interval
The interval at which CloudMonitor checks whether the alert rule is triggered. Unit: seconds.
> 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.
@NameInMap(value="Labels") public List<PutGroupMetricRuleRequest.PutGroupMetricRuleRequestLabels> labels
The tags of the alert rule.
The specified tag is contained in alert notifications.
@NameInMap(value="MetricName") public String metricName
The metric name.
For more information about how to obtain the name of a metric, see [DescribeMetricMetaList](~~98846~~) or [Appendix 1: Metrics](~~163515~~).
@NameInMap(value="Namespace") public String namespace
The namespace of the cloud service.
For more information about how to obtain the namespace of a cloud service, see [DescribeMetricMetaList](~~98846~~) or [Appendix 1: Metrics](~~163515~~).
@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): 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="Options") public String options
@NameInMap(value="Period") public String period
The aggregation period of the metric data.
Set the `Period` parameter to an integral multiple of 60. Unit: seconds. Default value: 300.
@NameInMap(value="RuleId") public String ruleId
The ID of the alert rule.
* When you create an alert rule for the application group, enter the ID of the alert rule.
* When you modify a specified alert rule in the application group, you must obtain the ID of the alert rule. For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](~~114941~~).
@NameInMap(value="RuleName") public String ruleName
The name of the alert rule.
* When you create an alert rule for the application group, enter the name of the alert rule.
* When you modify a specified alert rule in the application group, you must obtain the name of the alert rule. For more information about how to obtain the name of an alert rule, see [DescribeMetricRuleList](~~114941~~).
@NameInMap(value="SilenceTime") public Integer silenceTime
The mute period during which new alerts are not sent even if the trigger conditions are met.
Unit: seconds. Default value: 86400.
@NameInMap(value="Webhook") public String webhook
The callback URL.
The callback URL must be accessible over the Internet. CloudMonitor sends a POST request to push an alert notification to the callback URL that you specify. Only HTTP requests are supported.
public static PutGroupMetricRuleRequest build(Map<String,?> map) throws Exception
Exceptionpublic PutGroupMetricRuleRequest setEscalations(PutGroupMetricRuleRequest.PutGroupMetricRuleRequestEscalations escalations)
public PutGroupMetricRuleRequest.PutGroupMetricRuleRequestEscalations getEscalations()
public PutGroupMetricRuleRequest setCategory(String category)
public String getCategory()
public PutGroupMetricRuleRequest setContactGroups(String contactGroups)
public String getContactGroups()
public PutGroupMetricRuleRequest setDimensions(String dimensions)
public String getDimensions()
public PutGroupMetricRuleRequest setEffectiveInterval(String effectiveInterval)
public String getEffectiveInterval()
public PutGroupMetricRuleRequest setEmailSubject(String emailSubject)
public String getEmailSubject()
public PutGroupMetricRuleRequest setExtraDimensionJson(String extraDimensionJson)
public String getExtraDimensionJson()
public PutGroupMetricRuleRequest setGroupId(String groupId)
public String getGroupId()
public PutGroupMetricRuleRequest setInterval(String interval)
public String getInterval()
public PutGroupMetricRuleRequest setLabels(List<PutGroupMetricRuleRequest.PutGroupMetricRuleRequestLabels> labels)
public List<PutGroupMetricRuleRequest.PutGroupMetricRuleRequestLabels> getLabels()
public PutGroupMetricRuleRequest setMetricName(String metricName)
public String getMetricName()
public PutGroupMetricRuleRequest setNamespace(String namespace)
public String getNamespace()
public PutGroupMetricRuleRequest setNoDataPolicy(String noDataPolicy)
public String getNoDataPolicy()
public PutGroupMetricRuleRequest setNoEffectiveInterval(String noEffectiveInterval)
public String getNoEffectiveInterval()
public PutGroupMetricRuleRequest setOptions(String options)
public String getOptions()
public PutGroupMetricRuleRequest setPeriod(String period)
public String getPeriod()
public PutGroupMetricRuleRequest setRuleId(String ruleId)
public String getRuleId()
public PutGroupMetricRuleRequest setRuleName(String ruleName)
public String getRuleName()
public PutGroupMetricRuleRequest setSilenceTime(Integer silenceTime)
public Integer getSilenceTime()
public PutGroupMetricRuleRequest setWebhook(String webhook)
public String getWebhook()
Copyright © 2024. All rights reserved.