public static class PutMetricRuleTargetsRequest.PutMetricRuleTargetsRequestTargets
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
arn
The ARN of the resource.
|
String |
id
The ID of the resource for which alerts are triggered.
|
String |
jsonParams
The parameters of the alert callback.
|
String |
level
The level of the alert.
|
| 构造器和说明 |
|---|
PutMetricRuleTargetsRequestTargets() |
@NameInMap(value="Arn") public String arn
The ARN of the resource.
For information about how to obtain the ARN of a resource, see [DescribeMetricRuleTargets](~~121592~~).
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.`
@NameInMap(value="Id") public String id
The ID of the resource for which alerts are triggered.
For information about how to obtain the ID of a resource for which alerts are triggered, see [DescribeMetricRuleTargets](~~121592~~).
@NameInMap(value="JsonParams") public String jsonParams
The parameters of the alert callback. The parameters are in the JSON format.
@NameInMap(value="Level") public String level
The level of the alert. Valid values:
* INFO: information
* WARN: warning
* CRITICAL: critical
public static PutMetricRuleTargetsRequest.PutMetricRuleTargetsRequestTargets build(Map<String,?> map) throws Exception
Exceptionpublic PutMetricRuleTargetsRequest.PutMetricRuleTargetsRequestTargets setArn(String arn)
public String getArn()
public PutMetricRuleTargetsRequest.PutMetricRuleTargetsRequestTargets setId(String id)
public String getId()
public PutMetricRuleTargetsRequest.PutMetricRuleTargetsRequestTargets setJsonParams(String jsonParams)
public String getJsonParams()
public PutMetricRuleTargetsRequest.PutMetricRuleTargetsRequestTargets setLevel(String level)
public String getLevel()
Copyright © 2024. All rights reserved.