public static final class DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder extends Object
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder dimensions(String dimensions)
The dimensions based on which the resources are queried.
example:{"region":"cn-huhehaote","queue":"test-0128","userId":"120886317861****"}
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder enable(String enable)
Indicates whether the alert rule is enabled. Valid values:
true
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder escalation(DescribeAlertingMetricRuleResourcesResponseBody.Escalation escalation)
The alert rule based on which the alert is triggered.
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder groupId(String groupId)
The ID of the application group.
example:If the alert rule is associated with an application group, the ID of the application group is returned in this parameter.
7671****
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder lastAlertTime(String lastAlertTime)
The time when the last alert was triggered for the resource based on the alert rule. The value is a timestamp.
Unit: milliseconds.
example:1622427900000
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder lastModifyTime(String lastModifyTime)
The time when the alert rule was last modified. The value is a timestamp.
Unit: milliseconds.
example:1622827900000
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder level(Integer level)
The severity level and notification methods of the alert. Valid values:
3
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder metricName(String metricName)
The metric name.
example:ActiveMessages
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder metricValues(String metricValues)
The metric value that triggered the alert based on the alert rule. The value is a JSON string.
example:{"timestamp":1623727500000,"Sum":926,"value":463,"Maximum":463,"Minimum":463,"Average":463,"SampleCount":2,"userId":"120886317861****","region":"cn-huhehaote","queue":"test-0128"}
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder namespace(String namespace)
The namespace of the cloud service.
example:acs_mns_new
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder productCategory(String productCategory)
The type of the cloud service.
example:mns
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder resource(String resource)
The resources that are monitored.
example:userId=120886317861****,region=cn-huhehaote,queue=test-0128
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder retryTimes(String retryTimes)
The consecutive number of times for which the metric value meets the alert condition before an alert is triggered.
example:3
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder ruleId(String ruleId)
The ID of the alert rule.
example:putNewAlarm_user_7e78d765-0e3e-4671-ba6d-7ce39108****
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder ruleName(String ruleName)
The name of the alert rule.
example:test123456789
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder startTime(String startTime)
The time when the resource was associated with the alert rule. The value is a timestamp.
Unit: milliseconds.
example:1622427900000
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder statistics(String statistics)
The method used to calculate the metric values that trigger alerts.
example:Average
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource.Builder threshold(String threshold)
The alert threshold.
example:10
public DescribeAlertingMetricRuleResourcesResponseBody.ResourcesResource build()
Copyright © 2026. All rights reserved.