public class ModifyMetricRuleBlackListRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ModifyMetricRuleBlackListRequest.ModifyMetricRuleBlackListRequestMetrics |
| 限定符和类型 | 字段和说明 |
|---|---|
String |
category
The category of the cloud service.
|
String |
effectiveTime
The time range within which the blacklist policy is effective.
|
String |
enableEndTime
The timestamp when the blacklist policy expires.
|
String |
enableStartTime
The timestamp when the blacklist policy starts to take effect.
|
String |
id
The ID of the blacklist policy.
|
List<String> |
instances
The IDs of the instances that belong to the specified cloud service.
|
List<ModifyMetricRuleBlackListRequest.ModifyMetricRuleBlackListRequestMetrics> |
metrics
The metrics of the instance.
|
String |
name
The name of the blacklist policy.
|
String |
namespace
The namespace of the cloud service.
|
String |
regionId |
String |
scopeType
The effective scope of the blacklist policy.
|
String |
scopeValue
The IDs of the application groups.
|
| 构造器和说明 |
|---|
ModifyMetricRuleBlackListRequest() |
@NameInMap(value="Category") public 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
@NameInMap(value="EffectiveTime") public 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
@NameInMap(value="EnableEndTime") public String enableEndTime
The timestamp when the blacklist policy expires.
Unit: milliseconds.
example:1640608200000
@NameInMap(value="EnableStartTime") public String enableStartTime
The timestamp when the blacklist policy starts to take effect.
Unit: milliseconds.
example:1640237400000
@NameInMap(value="Id") public 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****
@NameInMap(value="Instances") public List<String> instances
The IDs of the instances that belong to the specified cloud service.
This parameter is required.
@NameInMap(value="Metrics") public List<ModifyMetricRuleBlackListRequest.ModifyMetricRuleBlackListRequestMetrics> metrics
The metrics of the instance.
@NameInMap(value="Name") public String name
The name of the blacklist policy.
This parameter is required.
example:Blacklist-02
@NameInMap(value="Namespace") public 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
@NameInMap(value="RegionId") public String regionId
@NameInMap(value="ScopeType") public String scopeType
The effective scope of the blacklist policy. Valid values:
USER
@NameInMap(value="ScopeValue") public String scopeValue
The IDs of the application groups.
example:This parameter is required only when
ScopeTypeis set toGROUP.
["67****","78****"]
public static ModifyMetricRuleBlackListRequest build(Map<String,?> map) throws Exception
Exceptionpublic ModifyMetricRuleBlackListRequest setCategory(String category)
public String getCategory()
public ModifyMetricRuleBlackListRequest setEffectiveTime(String effectiveTime)
public String getEffectiveTime()
public ModifyMetricRuleBlackListRequest setEnableEndTime(String enableEndTime)
public String getEnableEndTime()
public ModifyMetricRuleBlackListRequest setEnableStartTime(String enableStartTime)
public String getEnableStartTime()
public ModifyMetricRuleBlackListRequest setId(String id)
public String getId()
public ModifyMetricRuleBlackListRequest setInstances(List<String> instances)
public ModifyMetricRuleBlackListRequest setMetrics(List<ModifyMetricRuleBlackListRequest.ModifyMetricRuleBlackListRequestMetrics> metrics)
public List<ModifyMetricRuleBlackListRequest.ModifyMetricRuleBlackListRequestMetrics> getMetrics()
public ModifyMetricRuleBlackListRequest setName(String name)
public String getName()
public ModifyMetricRuleBlackListRequest setNamespace(String namespace)
public String getNamespace()
public ModifyMetricRuleBlackListRequest setRegionId(String regionId)
public String getRegionId()
public ModifyMetricRuleBlackListRequest setScopeType(String scopeType)
public String getScopeType()
public ModifyMetricRuleBlackListRequest setScopeValue(String scopeValue)
public String getScopeValue()
Copyright © 2026. All rights reserved.