public static final class PutMetricRuleTargetsRequest.Targets.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
PutMetricRuleTargetsRequest.Targets.Builder |
arn(String arn)
The ARN of the resource.
|
PutMetricRuleTargetsRequest.Targets |
build() |
PutMetricRuleTargetsRequest.Targets.Builder |
id(String id)
The ID of the resource for which alerts are triggered.
|
PutMetricRuleTargetsRequest.Targets.Builder |
jsonParams(String jsonParams)
The ID of the resource for which alerts are triggered.
|
PutMetricRuleTargetsRequest.Targets.Builder |
level(String level)
The HTTP status code.
|
public PutMetricRuleTargetsRequest.Targets.Builder arn(String arn)
Format: `acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. Example: `acs:mns:cn-hangzhou:120886317861****:/queues/test123/message`. Fields: * {Service name abbreviation}: the abbreviation of the service name. Valid value: 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: - **queues** - **topics** {Resource name}: the name of the resource. - If the resource type is set to **queues**, the resource name is the name of the message queue. - If the resource type is set to **topics**, the resource name is the name of the topic.`
public PutMetricRuleTargetsRequest.Targets.Builder id(String id)
For information about how to obtain the ID of a resource for which alerts are triggered, see [DescribeMetricRuleTargets](~~121592~~).
public PutMetricRuleTargetsRequest.Targets.Builder jsonParams(String jsonParams)
public PutMetricRuleTargetsRequest.Targets.Builder level(String level)
> The status code 200 indicates that the call was successful.
public PutMetricRuleTargetsRequest.Targets build()
Copyright © 2023. All rights reserved.