Target - Queue
Configuration
The name of this target is QueueTarget
To configure the message queue action, you need to provide the following:
- subject
The optional subject of the message
- queue
The name of the queue to send the message to
Adding a queue target
To add a message queue target to an existing subscription:
- Web Portal
- OpenDataDSL
- REST API
- Select Subscriptions
- Find the subscription you want to add the target to.
- Click the + button next to targets
- Select QueueTarget
- Fill out the subject and queue fields appropriately
- Click the save button
// Adding a message queue target to an existing subscription
sub = ${subscription:"MySubscription"}
sub.addQueueTarget("subject", "myqueue")
save sub
POST https://api.opendatadsl.com/api/subscription/v1
Authorization: Bearer {{token}}
{
"name": "MySubscription",
"targets":[{
"name": "QueueTarget",
"subject": "subject",
"queue": "myqueue"
}]
}