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