public class ModifyMetricRuleBlackListRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ModifyMetricRuleBlackListRequest.ModifyMetricRuleBlackListRequestMetrics |
| 限定符和类型 | 字段和说明 |
|---|---|
String |
category
The category of the Alibaba 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 Alibaba 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`.
@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.
@NameInMap(value="EnableEndTime") public String enableEndTime
The timestamp when the blacklist policy expires.
Unit: milliseconds.
@NameInMap(value="EnableStartTime") public String enableStartTime
The timestamp when the blacklist policy starts to take effect.
Unit: milliseconds.
@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](~~457257~~).
@NameInMap(value="Instances") public List<String> instances
The IDs of the instances that belong to the specified cloud service.
@NameInMap(value="Metrics") public List<ModifyMetricRuleBlackListRequest.ModifyMetricRuleBlackListRequestMetrics> metrics
The metrics of the instance.
* If you do not configure this parameter, the blacklist policy applies to all metrics of the specified cloud service.
* If you configure this parameter, the blacklist policy applies only to the current metric.
@NameInMap(value="Name") public String name
The name of the blacklist policy.
@NameInMap(value="Namespace") public String namespace
The namespace of the cloud service.
For more information about the namespaces of different cloud services, see [Appendix 1: Metrics](~~163515~~).
@NameInMap(value="RegionId") public String regionId
@NameInMap(value="ScopeType") public String scopeType
The effective scope of the blacklist policy. Valid values:
* USER: The blacklist policy takes effect only within the current Alibaba Cloud account.
* GROUP (default): The blacklist policy takes effect only within the specified application group. For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](~~115032~~).
@NameInMap(value="ScopeValue") public String scopeValue
The IDs of the application groups. Specify a JSON array.
> This parameter must be specified when `ScopeType` is set to `GROUP`.
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 © 2024. All rights reserved.