public static final class ModifyMetricRuleBlackListRequest.Builder extends Object
public ModifyMetricRuleBlackListRequest.Builder category(String category)
The category of the cloud service. For example, ApsaraDB for Redis supports the standard architecture, the cluster architecture, and the read/write splitting architecture. In this case, the valid values of this parameter for ApsaraDB for Redis include kvstore_standard, kvstore_sharding, and kvstore_splitrw.
This parameter is required.
example:ecs
public ModifyMetricRuleBlackListRequest.Builder effectiveTime(String effectiveTime)
The time range within which the blacklist policy is effective. Take note of the following information:
If you do not configure this parameter, the blacklist policy is permanently effective.
If you configure this parameter, the blacklist policy is effective only within the specified time range. Examples:
03:00-04:59: The blacklist policy is effective from 03:00 to 05:00 local time. 05:00 local time is excluded.03:00-04:59 UTC+0700: The blacklist policy is effective from 03:00 to 05:00 (UTC+7). 05:00 (UTC+7) is excluded.03:00-04:59
public ModifyMetricRuleBlackListRequest.Builder enableEndTime(String enableEndTime)
The timestamp when the blacklist policy expires.
Unit: milliseconds.
example:1640608200000
public ModifyMetricRuleBlackListRequest.Builder enableStartTime(String enableStartTime)
The timestamp when the blacklist policy starts to take effect.
Unit: milliseconds.
example:1640237400000
public ModifyMetricRuleBlackListRequest.Builder id(String id)
The ID of the blacklist policy.
For information about how to obtain the ID of a blacklist policy, see DescribeMetricRuleBlackList.
This parameter is required.
example:93514c96-ceb8-47d8-8ee3-93b6d98b****
public ModifyMetricRuleBlackListRequest.Builder instances(List<String> instances)
The IDs of the instances that belong to the specified cloud service.
This parameter is required.
public ModifyMetricRuleBlackListRequest.Builder metrics(List<ModifyMetricRuleBlackListRequest.Metrics> metrics)
The metrics of the instance.
public ModifyMetricRuleBlackListRequest.Builder name(String name)
The name of the blacklist policy.
This parameter is required.
example:Blacklist-02
public ModifyMetricRuleBlackListRequest.Builder namespace(String namespace)
The namespace of the cloud service.
For more information about the namespaces of cloud services, see Appendix 1: Metrics.
This parameter is required.
example:acs_ecs_dashboard
public ModifyMetricRuleBlackListRequest.Builder scopeType(String scopeType)
The effective scope of the blacklist policy. Valid values:
USER
public ModifyMetricRuleBlackListRequest.Builder scopeValue(String scopeValue)
The IDs of the application groups.
example:This parameter is required only when
ScopeTypeis set toGROUP.
["67****","78****"]
public ModifyMetricRuleBlackListRequest build()
Copyright © 2026. All rights reserved.