public static class CreateRuleRequest.CreateRuleRequestEventTargets
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
CreateRuleRequest.CreateRuleRequestEventTargetsConcurrentConfig |
concurrentConfig
The concurrency configuration.
|
CreateRuleRequest.CreateRuleRequestEventTargetsDeadLetterQueue |
deadLetterQueue
The dead-letter queue.
|
String |
endpoint
The endpoint of the event target.
|
String |
errorsTolerance
The fault tolerance policy.
|
String |
id
The ID of the event target.
|
List<CreateRuleRequest.CreateRuleRequestEventTargetsParamList> |
paramList
The parameters that are configured for the event target.
|
String |
pushRetryStrategy
The retry policy that you want to use to push failed events.
|
String |
type
The type of the event target.
|
| 构造器和说明 |
|---|
CreateRuleRequestEventTargets() |
@NameInMap(value="ConcurrentConfig") public CreateRuleRequest.CreateRuleRequestEventTargetsConcurrentConfig concurrentConfig
The concurrency configuration.
@NameInMap(value="DeadLetterQueue") public CreateRuleRequest.CreateRuleRequestEventTargetsDeadLetterQueue deadLetterQueue
The dead-letter queue. Events that are not processed or whose maximum number of retries is exceeded are written to the dead-letter queue. You can use queues in ApsaraMQ for RocketMQ, Simple Message Queue (SMQ, formerly MNS), and ApsaraMQ for Kafka as dead-letter queues. You can also use event buses in EventBridge as dead-letter queues.
@NameInMap(value="Endpoint") public String endpoint
The endpoint of the event target.
example:acs:mns:cn-hangzhou:123456789098****:queues/myqueue
@NameInMap(value="ErrorsTolerance") public String errorsTolerance
The fault tolerance policy. Valid values: ALL and NONE. The value ALL specifies that fault tolerance is allowed. If an error occurs in an event, event processing is not blocked. If the event fails to be sent after the maximum number of retries specified by the retry policy is reached, the event is delivered to the dead-letter queue or discarded based on your configurations. The value NONE specifies that fault tolerance is not allowed. If an error occurs in an event and the event fails to be sent after the maximum number of retries specified by the retry policy is reached, event processing is blocked.
example:ALL
@NameInMap(value="Id") public String id
The ID of the event target.
This parameter is required.
example:12021
@NameInMap(value="ParamList") public List<CreateRuleRequest.CreateRuleRequestEventTargetsParamList> paramList
The parameters that are configured for the event target.
@NameInMap(value="PushRetryStrategy") public String pushRetryStrategy
The retry policy that you want to use to push failed events. Valid values: BACKOFF_RETRY and EXPONENTIAL_DECAY_RETRY. BACKOFF_RETRY: A failed event can be retried up to three times. The interval between two consecutive retries is a random value from 10 seconds to 20 seconds. EXPONENTIAL_DECAY_RETRY: A failed event can be retried up to 176 times. The interval between two consecutive retries exponentially increases to a maximum of 512 seconds. The total retry time is 1 day. The specific retry intervals are 1, 2, 4, 8, 16, 32, 64, 128, 256, and 512 seconds. The interval of 512 seconds is used for 167 retries.
example:BACKOFF_RETRY
@NameInMap(value="Type") public String type
The type of the event target. For more information, see Event target parameters.
This parameter is required.
example:acs.mns.queue
public static CreateRuleRequest.CreateRuleRequestEventTargets build(Map<String,?> map) throws Exception
Exceptionpublic CreateRuleRequest.CreateRuleRequestEventTargets setConcurrentConfig(CreateRuleRequest.CreateRuleRequestEventTargetsConcurrentConfig concurrentConfig)
public CreateRuleRequest.CreateRuleRequestEventTargetsConcurrentConfig getConcurrentConfig()
public CreateRuleRequest.CreateRuleRequestEventTargets setDeadLetterQueue(CreateRuleRequest.CreateRuleRequestEventTargetsDeadLetterQueue deadLetterQueue)
public CreateRuleRequest.CreateRuleRequestEventTargetsDeadLetterQueue getDeadLetterQueue()
public CreateRuleRequest.CreateRuleRequestEventTargets setEndpoint(String endpoint)
public String getEndpoint()
public CreateRuleRequest.CreateRuleRequestEventTargets setErrorsTolerance(String errorsTolerance)
public String getErrorsTolerance()
public CreateRuleRequest.CreateRuleRequestEventTargets setId(String id)
public String getId()
public CreateRuleRequest.CreateRuleRequestEventTargets setParamList(List<CreateRuleRequest.CreateRuleRequestEventTargetsParamList> paramList)
public List<CreateRuleRequest.CreateRuleRequestEventTargetsParamList> getParamList()
public CreateRuleRequest.CreateRuleRequestEventTargets setPushRetryStrategy(String pushRetryStrategy)
public String getPushRetryStrategy()
public CreateRuleRequest.CreateRuleRequestEventTargets setType(String type)
public String getType()
Copyright © 2026. All rights reserved.