public class PutCustomMetricRuleRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
comparisonOperator
The comparison operator before the threshold.
|
String |
contactGroups
The alert group that receives alert notifications.
|
String |
effectiveInterval
The time period during which the alert rule is effective.
|
String |
emailSubject
The subject of the alert notification email.
|
Integer |
evaluationCount
The consecutive number of times for which the metric value is measured before an alert is triggered.
|
String |
groupId
The ID of the application group to which the custom monitoring data belongs.
|
String |
level
The level of the alert.
|
String |
metricName
The name of the metric.
|
String |
period
The cycle that is used to aggregate custom monitoring data.
|
String |
resources
The custom monitoring data to which the alert rule applies.
|
String |
ruleId
The ID of the alert rule.
|
String |
ruleName
The name of the alert rule.
|
Integer |
silenceTime
The mute period during which notifications are not repeatedly sent for an alert.
|
String |
statistics
The method that is used to calculate the metric values that trigger alerts.
|
String |
threshold
The threshold of the metric value.
|
String |
webhook
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
|
| 构造器和说明 |
|---|
PutCustomMetricRuleRequest() |
@NameInMap(value="ComparisonOperator") public String comparisonOperator
The comparison operator before the threshold. Valid values:
* `>=`
* `=`
* `<=`
* `>`
* `<`
* `!=`
@NameInMap(value="ContactGroups") public String contactGroups
The alert group that receives alert notifications. Separate multiple alert groups with commas (,).
@NameInMap(value="EffectiveInterval") public String effectiveInterval
The time period during which the alert rule is effective. Valid values: 00:00 to 23:59.
@NameInMap(value="EmailSubject") public String emailSubject
The subject of the alert notification email.
@NameInMap(value="EvaluationCount") public Integer evaluationCount
The consecutive number of times for which the metric value is measured before an alert is triggered.
@NameInMap(value="GroupId") public String groupId
The ID of the application group to which the custom monitoring data belongs.
> The value 0 indicates that the reported custom monitoring data does not belong to an application group.
@NameInMap(value="Level") public String level
The level of the alert. Valid values:
* CRITICAL
* WARN
* INFO
@NameInMap(value="MetricName") public String metricName
The name of the metric.
> For more information about how to obtain the metric name, see [DescribeCustomMetricList](~~115005~~).
@NameInMap(value="Period") public String period
The cycle that is used to aggregate custom monitoring data. Unit: seconds. Set the value to an integral multiple of 60. The original reporting cycle of custom monitoring data is used by default.
@NameInMap(value="Resources") public String resources
The custom monitoring data to which the alert rule applies. The value includes the application group ID to which the custom monitoring data belongs and the dimension to which the metric belongs.
@NameInMap(value="RuleId") public String ruleId
The ID of the alert rule.
> You can specify an existing ID to modify the corresponding alert rule or specify a new ID to create an 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 notifications are not repeatedly sent for an alert. Unit: seconds. Default value: 86400. The default value indicates one day.
> Only one alert notification is sent during each mute period even if the metric value consecutively exceeds the alert threshold several times.
@NameInMap(value="Statistics") public String statistics
The method that is used to calculate the metric values that trigger alerts.
@NameInMap(value="Threshold") public String threshold
The threshold of the metric value.
@NameInMap(value="Webhook") public String webhook
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
public static PutCustomMetricRuleRequest build(Map<String,?> map) throws Exception
Exceptionpublic PutCustomMetricRuleRequest setComparisonOperator(String comparisonOperator)
public String getComparisonOperator()
public PutCustomMetricRuleRequest setContactGroups(String contactGroups)
public String getContactGroups()
public PutCustomMetricRuleRequest setEffectiveInterval(String effectiveInterval)
public String getEffectiveInterval()
public PutCustomMetricRuleRequest setEmailSubject(String emailSubject)
public String getEmailSubject()
public PutCustomMetricRuleRequest setEvaluationCount(Integer evaluationCount)
public Integer getEvaluationCount()
public PutCustomMetricRuleRequest setGroupId(String groupId)
public String getGroupId()
public PutCustomMetricRuleRequest setLevel(String level)
public String getLevel()
public PutCustomMetricRuleRequest setMetricName(String metricName)
public String getMetricName()
public PutCustomMetricRuleRequest setPeriod(String period)
public String getPeriod()
public PutCustomMetricRuleRequest setResources(String resources)
public String getResources()
public PutCustomMetricRuleRequest setRuleId(String ruleId)
public String getRuleId()
public PutCustomMetricRuleRequest setRuleName(String ruleName)
public String getRuleName()
public PutCustomMetricRuleRequest setSilenceTime(Integer silenceTime)
public Integer getSilenceTime()
public PutCustomMetricRuleRequest setStatistics(String statistics)
public String getStatistics()
public PutCustomMetricRuleRequest setThreshold(String threshold)
public String getThreshold()
public PutCustomMetricRuleRequest setWebhook(String webhook)
public String getWebhook()
Copyright © 2024. All rights reserved.