public static final class ModifyMetricRuleBlackListRequest.Builder extends Object
public ModifyMetricRuleBlackListRequest.Builder category(String category)
public ModifyMetricRuleBlackListRequest.Builder effectiveTime(String effectiveTime)
* 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.
public ModifyMetricRuleBlackListRequest.Builder enableEndTime(String enableEndTime)
Unit: milliseconds.
public ModifyMetricRuleBlackListRequest.Builder enableStartTime(String enableStartTime)
Unit: milliseconds.
public ModifyMetricRuleBlackListRequest.Builder id(String id)
For information about how to obtain the ID of a blacklist policy, see [DescribeMetricRuleBlackList](~~457257~~).
public ModifyMetricRuleBlackListRequest.Builder instances(List<String> instances)
public ModifyMetricRuleBlackListRequest.Builder metrics(List<ModifyMetricRuleBlackListRequest.Metrics> metrics)
* 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.
public ModifyMetricRuleBlackListRequest.Builder name(String name)
public ModifyMetricRuleBlackListRequest.Builder namespace(String namespace)
For more information about the namespaces of different cloud services, see [Appendix 1: Metrics](~~163515~~).
public ModifyMetricRuleBlackListRequest.Builder scopeType(String scopeType)
* 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~~).
public ModifyMetricRuleBlackListRequest.Builder scopeValue(String scopeValue)
> This parameter must be specified when `ScopeType` is set to `GROUP`.
public ModifyMetricRuleBlackListRequest build()
Copyright © 2024. All rights reserved.