public class CreateMetricRuleBlackListRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CreateMetricRuleBlackListRequest.CreateMetricRuleBlackListRequestMetrics |
| 限定符和类型 | 字段和说明 |
|---|---|
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.
|
List<String> |
instances
The IDs of instances that belong to the specified cloud service.
|
List<CreateMetricRuleBlackListRequest.CreateMetricRuleBlackListRequestMetrics> |
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 ID of the application group.
|
| 构造器和说明 |
|---|
CreateMetricRuleBlackListRequest() |
@NameInMap(value="Category") public 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`.
@NameInMap(value="EffectiveTime") public 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.
@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="Instances") public List<String> instances
The IDs of instances that belong to the specified cloud service.
@NameInMap(value="Metrics") public List<CreateMetricRuleBlackListRequest.CreateMetricRuleBlackListRequestMetrics> 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 for the current Alibaba Cloud account.
* GROUP (default): The blacklist policy takes effect only for the specified application group. For more information about how to obtain the ID of an application group, see [DescribeMonitorGroups](~~115032~~).
@NameInMap(value="ScopeValue") public String scopeValue
The ID of the application group. The value of this parameter is a JSON array.
> This parameter must be specified when `ScopeType` is set to `GROUP`.
public static CreateMetricRuleBlackListRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateMetricRuleBlackListRequest setCategory(String category)
public String getCategory()
public CreateMetricRuleBlackListRequest setEffectiveTime(String effectiveTime)
public String getEffectiveTime()
public CreateMetricRuleBlackListRequest setEnableEndTime(String enableEndTime)
public String getEnableEndTime()
public CreateMetricRuleBlackListRequest setEnableStartTime(String enableStartTime)
public String getEnableStartTime()
public CreateMetricRuleBlackListRequest setInstances(List<String> instances)
public CreateMetricRuleBlackListRequest setMetrics(List<CreateMetricRuleBlackListRequest.CreateMetricRuleBlackListRequestMetrics> metrics)
public List<CreateMetricRuleBlackListRequest.CreateMetricRuleBlackListRequestMetrics> getMetrics()
public CreateMetricRuleBlackListRequest setName(String name)
public String getName()
public CreateMetricRuleBlackListRequest setNamespace(String namespace)
public String getNamespace()
public CreateMetricRuleBlackListRequest setRegionId(String regionId)
public String getRegionId()
public CreateMetricRuleBlackListRequest setScopeType(String scopeType)
public String getScopeType()
public CreateMetricRuleBlackListRequest setScopeValue(String scopeValue)
public String getScopeValue()
Copyright © 2024. All rights reserved.