public static final class PutGroupMetricRuleRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
PutGroupMetricRuleRequest |
build() |
PutGroupMetricRuleRequest.Builder |
category(String category)
The operation that you want to perform.
|
PutGroupMetricRuleRequest.Builder |
contactGroups(String contactGroups)
The ID of the alert rule.
|
PutGroupMetricRuleRequest.Builder |
dimensions(String dimensions)
The error message.
|
PutGroupMetricRuleRequest.Builder |
effectiveInterval(String effectiveInterval)
The ID of the application group.
|
PutGroupMetricRuleRequest.Builder |
emailSubject(String emailSubject)
The second-level or third-level dimension of the alert rule in the application group.
|
PutGroupMetricRuleRequest.Builder |
escalations(PutGroupMetricRuleRequest.Escalations escalations)
Escalations.
|
PutGroupMetricRuleRequest.Builder |
extraDimensionJson(String extraDimensionJson)
The name of the metric.
|
PutGroupMetricRuleRequest.Builder |
groupId(String groupId)
The statistical methods for Warn-level alerts.
|
PutGroupMetricRuleRequest.Builder |
interval(String interval)
The callback URL.
|
PutGroupMetricRuleRequest.Builder |
labels(List<PutGroupMetricRuleRequest.Labels> labels)
Labels.
|
PutGroupMetricRuleRequest.Builder |
metricName(String metricName)
The comparison operator that is used to compare the metric value with the threshold.
|
PutGroupMetricRuleRequest.Builder |
namespace(String namespace)
The threshold for Critical-level alerts.
|
PutGroupMetricRuleRequest.Builder |
noDataPolicy(String noDataPolicy)
The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered.
|
PutGroupMetricRuleRequest.Builder |
noEffectiveInterval(String noEffectiveInterval)
The threshold for Info-level alerts.
|
PutGroupMetricRuleRequest.Builder |
period(String period)
The threshold for Warn-level alerts.
|
PutGroupMetricRuleRequest.Builder |
ruleId(String ruleId)
The HTTP status code.
|
PutGroupMetricRuleRequest.Builder |
ruleName(String ruleName)
The namespace of the cloud service.
|
PutGroupMetricRuleRequest.Builder |
silenceTime(Integer silenceTime)
The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered.
|
PutGroupMetricRuleRequest.Builder |
webhook(String webhook)
The aggregation period of the metric data.
|
public PutGroupMetricRuleRequest.Builder escalations(PutGroupMetricRuleRequest.Escalations escalations)
public PutGroupMetricRuleRequest.Builder category(String category)
public PutGroupMetricRuleRequest.Builder contactGroups(String contactGroups)
* 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~~).
public PutGroupMetricRuleRequest.Builder dimensions(String dimensions)
public PutGroupMetricRuleRequest.Builder effectiveInterval(String effectiveInterval)
For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](~~115032~~).
public PutGroupMetricRuleRequest.Builder emailSubject(String emailSubject)
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.
public PutGroupMetricRuleRequest.Builder extraDimensionJson(String extraDimensionJson)
For information about how to obtain the name of a metric, see [DescribeMetricMetaList](~~98846~~) or [Appendix 1: Metrics](~~163515~~).
public PutGroupMetricRuleRequest.Builder groupId(String groupId)
* Average: the average value * Minimum: the minimum value * Maximum: the maximum value
public PutGroupMetricRuleRequest.Builder interval(String interval)
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 PutGroupMetricRuleRequest.Builder labels(List<PutGroupMetricRuleRequest.Labels> labels)
public PutGroupMetricRuleRequest.Builder metricName(String metricName)
* GreaterThanOrEqualToThreshold: greater than or equal to the threshold * GreaterThanThreshold: greater than the threshold * LessThanOrEqualToThreshold: less than or equal to the threshold * LessThanThreshold: less than the threshold * NotEqualToThreshold: not equal to the threshold * GreaterThanYesterday: greater than the metric value at the same time yesterday * LessThanYesterday: less than the metric value at the same time yesterday * GreaterThanLastWeek: greater than the metric value at the same time last week * LessThanLastWeek: less than the metric value at the same time last week * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle * LessThanLastPeriod: less than the metric value in the last monitoring cycle
public PutGroupMetricRuleRequest.Builder namespace(String namespace)
public PutGroupMetricRuleRequest.Builder noDataPolicy(String noDataPolicy)
public PutGroupMetricRuleRequest.Builder noEffectiveInterval(String noEffectiveInterval)
public PutGroupMetricRuleRequest.Builder period(String period)
public PutGroupMetricRuleRequest.Builder ruleId(String ruleId)
> The status code 200 indicates that the call was successful.
public PutGroupMetricRuleRequest.Builder ruleName(String ruleName)
For information about how to obtain the namespace of a cloud service, see [DescribeMetricMetaList](~~98846~~) or [Appendix 1: Metrics](~~163515~~).
public PutGroupMetricRuleRequest.Builder silenceTime(Integer silenceTime)
public PutGroupMetricRuleRequest.Builder webhook(String webhook)
Set the `Period` parameter to an integral multiple of 60. Unit: seconds. Default value: 300.
public PutGroupMetricRuleRequest build()
Copyright © 2023. All rights reserved.