public static final class PutMetricRuleTargetsResponseBody.Target.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
PutMetricRuleTargetsResponseBody.Target.Builder |
arn(String arn)
The ARN of the resource.
|
PutMetricRuleTargetsResponseBody.Target |
build() |
PutMetricRuleTargetsResponseBody.Target.Builder |
id(String id)
The ID of the resource for which alerts are triggered.
|
PutMetricRuleTargetsResponseBody.Target.Builder |
level(String level)
The alert level.
|
public PutMetricRuleTargetsResponseBody.Target.Builder arn(String arn)
The ARN of the resource. Format: acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message
. MNS, Auto Scaling, Simple Log Service, and Function Compute are supported. Example: acs:mns:cn-hangzhou:120886317861****:/queues/test123/message
. The following part describes the ARN of MNS and the parameters in the ARN:
{Service name abbreviation}: mns.
{userId}: the ID of the Alibaba Cloud account.
{regionId}: the region ID of the message queue or topic.
{Resource type}: the type of the resource for which alerts are triggered. Valid values:
{Resource name}: the resource name.
acs:mns:cn-hangzhou:111:/queues/test/message
public PutMetricRuleTargetsResponseBody.Target.Builder id(String id)
The ID of the resource for which alerts are triggered.
example:1
public PutMetricRuleTargetsResponseBody.Target.Builder level(String level)
The alert level. Valid values:
["INFO", "WARN", "CRITICAL"]
public PutMetricRuleTargetsResponseBody.Target build()
Copyright © 2024. All rights reserved.