public static final class DescribeMetricRuleListResponseBody.Alarm.Builder extends Object
构造器和说明 |
---|
Builder() |
public DescribeMetricRuleListResponseBody.Alarm.Builder alertState(String alertState)
The status of the alert rule. Valid values:
OK
public DescribeMetricRuleListResponseBody.Alarm.Builder compositeExpression(DescribeMetricRuleListResponseBody.CompositeExpression compositeExpression)
The trigger conditions for multiple metrics.
The trigger conditions for a single metric and multiple metrics are mutually exclusive. You cannot specify trigger conditions for a single metric and multiple metrics at the same time.
public DescribeMetricRuleListResponseBody.Alarm.Builder contactGroups(String contactGroups)
The alert contact group.
example:ECS_Alarm
public DescribeMetricRuleListResponseBody.Alarm.Builder dimensions(String dimensions)
The dimensions of the alert rule.
example:[{"instanceId":"i-2ze2d6j5uhg20x47****"}]
public DescribeMetricRuleListResponseBody.Alarm.Builder effectiveInterval(String effectiveInterval)
The time period during which the alert rule is effective.
example:05:31-23:59
public DescribeMetricRuleListResponseBody.Alarm.Builder enableState(Boolean enableState)
Indicates whether the alert rule is enabled. Valid values:
true
public DescribeMetricRuleListResponseBody.Alarm.Builder escalations(DescribeMetricRuleListResponseBody.Escalations escalations)
The conditions for triggering different levels of alerts.
public DescribeMetricRuleListResponseBody.Alarm.Builder groupId(String groupId)
The ID of the application group.
example:7301****
public DescribeMetricRuleListResponseBody.Alarm.Builder groupName(String groupName)
The name of the application group.
example:If the alert rule is associated with an application group, the name of the application group is returned in this parameter.
ECS_Group
public DescribeMetricRuleListResponseBody.Alarm.Builder labels(DescribeMetricRuleListResponseBody.AlarmLabels labels)
The tags of the alert rule.
public DescribeMetricRuleListResponseBody.Alarm.Builder mailSubject(String mailSubject)
The subject of the alert notification email.
example:"${serviceType}-${metricName}-${levelDescription}Notification(${dimensions})"
public DescribeMetricRuleListResponseBody.Alarm.Builder metricName(String metricName)
The name of the metric.
example:cpu_total
public DescribeMetricRuleListResponseBody.Alarm.Builder namespace(String namespace)
The namespace of the cloud service.
example:acs_ecs_dashboard
public DescribeMetricRuleListResponseBody.Alarm.Builder noDataPolicy(String noDataPolicy)
The method that is used to handle alerts when no monitoring data is found. Valid values:
KEEP_LAST_STATE
public DescribeMetricRuleListResponseBody.Alarm.Builder noEffectiveInterval(String noEffectiveInterval)
The time period during which the alert rule is ineffective.
example:00:00-05:30
public DescribeMetricRuleListResponseBody.Alarm.Builder period(String period)
The statistical period.
example:60
public DescribeMetricRuleListResponseBody.Alarm.Builder prometheus(DescribeMetricRuleListResponseBody.Prometheus prometheus)
The Prometheus alerts.
This parameter is required only if you create a Prometheus alert rule for Hybrid Cloud Monitoring.
public DescribeMetricRuleListResponseBody.Alarm.Builder resources(String resources)
The resources that are associated with the alert rule.
example:[{"instanceId":"i-2ze2d6j5uhg20x47****"}]
public DescribeMetricRuleListResponseBody.Alarm.Builder ruleId(String ruleId)
The ID of the alert rule.
example:applyTemplate344cfd42-0f32-4fd6-805a-88d7908a****
public DescribeMetricRuleListResponseBody.Alarm.Builder ruleName(String ruleName)
The name of the alert rule.
example:Rule_01
public DescribeMetricRuleListResponseBody.Alarm.Builder silenceTime(Integer silenceTime)
The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds. Default value: 86400. Minimum value: 3600.
Only one alert is reported during each mute period even if the metric value consecutively exceeds the alert rule threshold several times.
example:86400
public DescribeMetricRuleListResponseBody.Alarm.Builder sourceType(String sourceType)
The type of the alert rule. Valid value: METRIC. This value indicates an alert rule for time series metrics.
example:METRIC
public DescribeMetricRuleListResponseBody.Alarm.Builder webhook(String webhook)
The callback URL. CloudMonitor pushes an alert notification to the specified callback URL by sending an HTTP POST request. Only the HTTP protocol is supported.
example:public DescribeMetricRuleListResponseBody.Alarm build()
Copyright © 2024. All rights reserved.