
Publish
Publish a message to an AMQP exchange.
Publish a message to an AMQP exchange.
Publish a message to an AMQP exchange.
type: "io.kestra.plugin.amqp.Publish"Examples
id: amqp_publish
namespace: company.team
tasks:
- id: publish
type: io.kestra.plugin.amqp.Publish
host: localhost
port: 5672
username: guest
password: guest
virtualHost: /my_vhost
exchange: kestramqp.exchange
from:
- data: value-1
headers:
testHeader: KestraTest
timestamp: '2023-01-09T08:46:33.103130753Z'
- data: value-2
timestamp: '2023-01-09T08:46:33.115456977Z'
appId: unit-kestra
Properties
exchange*Requiredstring
The exchange to publish the message to
from*Requiredstringarray
Structured data items, either as a map, a list of map, a URI, or a JSON string.
Structured data items can be defined in the following ways:
- A single item as a map (a document).
- A list of items as a list of maps (a list of documents).
- A URI, supported schemes are
kestrafor internal storage files,filefor host local files, andnsfilefor namespace files. - A JSON String that will then be serialized either as a single item or a list of items.
io.kestra.plugin.amqp.models.Message
durationdate-timehost*Requiredstring
The broker host
passwordstring
The broker password
portstring
5672The broker port
routingKeystring
The routing key
serdeTypestring
STRINGSTRINGJSONSerializer / Deserializer used for the message.
usernamestring
The broker username
virtualHoststring
/The broker virtual host
Outputs
messagesCountinteger
Number of messages published
Metrics
published.recordscounter
recordsNumber of messages published to the AMQP exchange