Saves a byte stream via AMQP messages.
save_amqp [url:str, channel=int, exchange=str, routing_key=str, options=record, mandatory=bool, immediate=bool]Description
Section titled “Description”The save_amqp operator is an AMQP 0-9-1 client to
send messages to an exchange.
url: str (optional)
Section titled “url: str (optional)”A URL that specifies the AMQP server. The URL must have the following format:
amqp://[USERNAME[:PASSWORD]@]HOSTNAME[:PORT]/[VHOST]When the URL is present, it will overwrite the corresponding values of the configuration options.
channel = int (optional)
Section titled “channel = int (optional)”The channel number to use.
Defaults to 1.
exchange = str (optional)
Section titled “exchange = str (optional)”The exchange to interact with.
Defaults to "amq.direct".
routing_key = str (optional)
Section titled “routing_key = str (optional)”The routing key to publish messages with.
Defaults to the empty string.
options = record (optional)
Section titled “options = record (optional)”An option record for RabbitMQ , e.g., {max_channels: 42, frame_size: 1024, sasl_method: "external"}.
Available options are:
hostname: 127.0.0.1port: 5672ssl: falsevhost: /max_channels: 2047frame_size: 131072heartbeat: 0sasl_method: plainusername: guestpassword: guestmandatory = bool (optional)
Section titled “mandatory = bool (optional)”This flag tells the server how to react if the message cannot be routed to a
queue. If true, the server will return an unroutable message with a Return
method. Otherwise the server silently drops the message.
Defaults to false.
immediate = bool (optional)
Section titled “immediate = bool (optional)”This flag tells the server how to react if the message cannot be routed to a
queue consumer immediately. If true, the server will return an undeliverable
message with a Return method. If false, the server will queue the message, but
with no guarantee that it will ever be consumed.
Defaults to false.
Examples
Section titled “Examples”Send the list of plugins as JSON
Section titled “Send the list of plugins as JSON”pluginswrite_jsonsave_amqp