public static final class PutCustomMetricRuleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
PutCustomMetricRuleRequest |
build() |
PutCustomMetricRuleRequest.Builder |
comparisonOperator(String comparisonOperator)
The comparison operator before the threshold.
|
PutCustomMetricRuleRequest.Builder |
contactGroups(String contactGroups)
The alert group that receives alert notifications.
|
PutCustomMetricRuleRequest.Builder |
effectiveInterval(String effectiveInterval)
The time period during which the alert rule is effective.
|
PutCustomMetricRuleRequest.Builder |
emailSubject(String emailSubject)
The subject of the alert notification email.
|
PutCustomMetricRuleRequest.Builder |
evaluationCount(Integer evaluationCount)
The consecutive number of times for which the metric value is measured before an alert is triggered.
|
PutCustomMetricRuleRequest.Builder |
groupId(String groupId)
The ID of the application group to which the custom monitoring data belongs.
|
PutCustomMetricRuleRequest.Builder |
level(String level)
The level of the alert.
|
PutCustomMetricRuleRequest.Builder |
metricName(String metricName)
The name of the metric.
|
PutCustomMetricRuleRequest.Builder |
period(String period)
The cycle that is used to aggregate custom monitoring data.
|
PutCustomMetricRuleRequest.Builder |
resources(String resources)
The custom monitoring data to which the alert rule applies.
|
PutCustomMetricRuleRequest.Builder |
ruleId(String ruleId)
The ID of the alert rule.
|
PutCustomMetricRuleRequest.Builder |
ruleName(String ruleName)
The name of the alert rule.
|
PutCustomMetricRuleRequest.Builder |
silenceTime(Integer silenceTime)
The mute period during which notifications are not repeatedly sent for an alert.
|
PutCustomMetricRuleRequest.Builder |
statistics(String statistics)
The method that is used to calculate the metric values that trigger alerts.
|
PutCustomMetricRuleRequest.Builder |
threshold(String threshold)
The threshold of the metric value.
|
PutCustomMetricRuleRequest.Builder |
webhook(String webhook)
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
|
public PutCustomMetricRuleRequest.Builder comparisonOperator(String comparisonOperator)
* `>=` * `=` * `<=` * `>` * `<` * `!=`
public PutCustomMetricRuleRequest.Builder contactGroups(String contactGroups)
public PutCustomMetricRuleRequest.Builder effectiveInterval(String effectiveInterval)
public PutCustomMetricRuleRequest.Builder emailSubject(String emailSubject)
public PutCustomMetricRuleRequest.Builder evaluationCount(Integer evaluationCount)
public PutCustomMetricRuleRequest.Builder groupId(String groupId)
> The value 0 indicates that the reported custom monitoring data does not belong to an application group.
public PutCustomMetricRuleRequest.Builder level(String level)
* CRITICAL * WARN * INFO
public PutCustomMetricRuleRequest.Builder metricName(String metricName)
> For more information about how to obtain the metric name, see [DescribeCustomMetricList](~~115005~~).
public PutCustomMetricRuleRequest.Builder period(String period)
public PutCustomMetricRuleRequest.Builder resources(String resources)
public PutCustomMetricRuleRequest.Builder ruleId(String ruleId)
> 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 ruleName(String ruleName)
public PutCustomMetricRuleRequest.Builder silenceTime(Integer silenceTime)
> 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 statistics(String statistics)
public PutCustomMetricRuleRequest.Builder threshold(String threshold)
public PutCustomMetricRuleRequest.Builder webhook(String webhook)
public PutCustomMetricRuleRequest build()
Copyright © 2024. All rights reserved.