public static final class PutCustomMetricRuleRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
PutCustomMetricRuleRequest |
build() |
PutCustomMetricRuleRequest.Builder |
comparisonOperator(String comparisonOperator)
The HTTP status code.
|
PutCustomMetricRuleRequest.Builder |
contactGroups(String contactGroups)
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
|
PutCustomMetricRuleRequest.Builder |
effectiveInterval(String effectiveInterval)
The mute period during which notifications are not repeatedly sent for an alert.
|
PutCustomMetricRuleRequest.Builder |
emailSubject(String emailSubject)
The threshold of the metric value.
|
PutCustomMetricRuleRequest.Builder |
evaluationCount(Integer evaluationCount)
The method that is used to calculate the metric values that trigger alerts.
|
PutCustomMetricRuleRequest.Builder |
groupId(String groupId)
The ID of the alert rule.
|
PutCustomMetricRuleRequest.Builder |
level(String level)
The consecutive number of times for which the metric value is measured before an alert is triggered.
|
PutCustomMetricRuleRequest.Builder |
metricName(String metricName)
The custom monitoring data to which the alert rule applies.
|
PutCustomMetricRuleRequest.Builder |
period(String period)
The subject of the alert notification email.
|
PutCustomMetricRuleRequest.Builder |
resources(String resources)
The alert group that receives alert notifications.
|
PutCustomMetricRuleRequest.Builder |
ruleId(String ruleId)
The name of the alert rule.
|
PutCustomMetricRuleRequest.Builder |
ruleName(String ruleName)
The name of the metric.
|
PutCustomMetricRuleRequest.Builder |
silenceTime(Integer silenceTime)
The cycle that is used to aggregate custom monitoring data.
|
PutCustomMetricRuleRequest.Builder |
statistics(String statistics)
The comparison operator before the threshold.
|
PutCustomMetricRuleRequest.Builder |
threshold(String threshold)
The level of the alert.
|
PutCustomMetricRuleRequest.Builder |
webhook(String webhook)
The time period during which the alert rule is effective.
|
public PutCustomMetricRuleRequest.Builder comparisonOperator(String comparisonOperator)
> The value 200 indicates that the call was successful.
public PutCustomMetricRuleRequest.Builder contactGroups(String contactGroups)
public PutCustomMetricRuleRequest.Builder effectiveInterval(String effectiveInterval)
> Only one alert notification is sent during each mute period even if the metric value consecutively exceeds the alert threshold several times.
public PutCustomMetricRuleRequest.Builder emailSubject(String emailSubject)
public PutCustomMetricRuleRequest.Builder evaluationCount(Integer evaluationCount)
public PutCustomMetricRuleRequest.Builder groupId(String groupId)
> You can specify an existing ID to modify the corresponding alert rule or specify a new ID to create an alert rule.
public PutCustomMetricRuleRequest.Builder level(String level)
public PutCustomMetricRuleRequest.Builder metricName(String metricName)
public PutCustomMetricRuleRequest.Builder period(String period)
public PutCustomMetricRuleRequest.Builder resources(String resources)
public PutCustomMetricRuleRequest.Builder ruleId(String ruleId)
public PutCustomMetricRuleRequest.Builder ruleName(String ruleName)
> For more information about how to obtain the metric name, see [DescribeCustomMetricList](~~115005~~).
public PutCustomMetricRuleRequest.Builder silenceTime(Integer silenceTime)
public PutCustomMetricRuleRequest.Builder statistics(String statistics)
* `>=` * `=` * `<=` * `>` * `<` * `!=`
public PutCustomMetricRuleRequest.Builder threshold(String threshold)
* CRITICAL * WARN * INFO
public PutCustomMetricRuleRequest.Builder webhook(String webhook)
public PutCustomMetricRuleRequest build()
Copyright © 2023. All rights reserved.