public static class PutMetricRuleTargetsRequest.PutMetricRuleTargetsRequestTargets
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
arn
The Alibaba Cloud Resource Name (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 alert level.
|
| 构造器和说明 |
|---|
PutMetricRuleTargetsRequestTargets() |
@NameInMap(value="Arn") public String arn
The Alibaba Cloud Resource Name (ARN) of the resource. Simple Message Queue (formerly MNS) (SMQ), Auto Scaling, Simple Log Service, and Function Compute are supported.
The following part describes the ARN of SMQ and the parameters in the ARN:
acs:mns:{regionId}:{userId}:/{Resource type}/{Resource name}/message.
{regionId}: the region ID of the SMQ queue or topic.
{userId}: the ID of the Alibaba Cloud account that owns the resource.
{Resource type}: the type of the resource for which alerts are triggered. Valid values:
{Resource name}: the resource name.
ARN of Auto Scaling:
acs:ess:{regionId}:{userId}:scalingGroupId/{Scaling group ID}:scalingRuleId/{Scaling rule ID}
ARN of Simple Log Service:
acs:log:{regionId}:{userId}:project/{Project name}/logstore/{Logstore name}
ARN of Function Compute:
acs:fc:{regionId}:{userId}:services/{Service name}/functions/{Function name}
This parameter is required.
example:acs:mns:cn-hangzhou:120886317861****:/queues/test/message
@NameInMap(value="Id") public String id
The ID of the resource for which alerts are triggered.
For more information about how to obtain the ID of the resource for which alerts are triggered, see DescribeMetricRuleTargets.
This parameter is required.
example:1
@NameInMap(value="JsonParams") public String jsonParams
The parameters of the alert callback. The parameters are in the JSON format.
example:{"customField1":"value1","customField2":"$.name"}
@NameInMap(value="Level") public String level
The alert level. Valid values:
["INFO", "WARN", "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 © 2026. All rights reserved.