public static final class CreateMetricRuleBlackListRequest.Builder extends Object
public CreateMetricRuleBlackListRequest.Builder category(String category)
The category of the cloud service. For example, ApsaraDB for Redis includes the following categories: ApsaraDB for Redis (standard architecture), ApsaraDB for Redis (cluster architecture), and ApsaraDB for Redis (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 CreateMetricRuleBlackListRequest.Builder effectiveTime(String effectiveTime)
The time range within which the blacklist policy is effective.
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 CreateMetricRuleBlackListRequest.Builder enableEndTime(String enableEndTime)
The timestamp when the blacklist policy expires.
Unit: milliseconds.
example:1640608200000
public CreateMetricRuleBlackListRequest.Builder enableStartTime(String enableStartTime)
The timestamp when the blacklist policy starts to take effect.
Unit: milliseconds.
example:1640237400000
public CreateMetricRuleBlackListRequest.Builder instances(List<String> instances)
The IDs of the instances that belong to the specified cloud service.
This parameter is required.
public CreateMetricRuleBlackListRequest.Builder metrics(List<CreateMetricRuleBlackListRequest.Metrics> metrics)
The metrics of the instance.
public CreateMetricRuleBlackListRequest.Builder name(String name)
The name of the blacklist policy.
This parameter is required.
example:Blacklist-01
public CreateMetricRuleBlackListRequest.Builder namespace(String namespace)
The namespace of the cloud service.
For more information about the namespaces of different cloud services, see Appendix 1: Metrics.
This parameter is required.
example:acs_ecs_dashboard
public CreateMetricRuleBlackListRequest.Builder scopeType(String scopeType)
The effective scope of the blacklist policy. Valid values:
USER
public CreateMetricRuleBlackListRequest.Builder scopeValue(String scopeValue)
The ID of the application group. The value of this parameter is a JSON array.
example:This parameter must be specified when
ScopeTypeis set toGROUP.
["67****","78****"]
public CreateMetricRuleBlackListRequest build()
Copyright © 2026. All rights reserved.