RabbitMQ Provider
RabbitMQ provider is a class that allows to consume messages from RabbitMQ in one queue and one exchange with multi routing keys per vhost. In order to handle different message received from queue, RabbitMQ provider provides a abstract class BaseMessageHandler which process message. It is flexible to derive a new class with override process(...) method.
Authentication ¶
This provider requires authentication.
- host: RabbitMQ host (required: True, sensitive: False)
- port: Port (required: False, sensitive: False)
- username: Username (required: True, sensitive: True)
- password: Password (required: True, sensitive: True)
- queue: Queue to consume message (required: True, sensitive: False)
- message_type: Message type, flexible to extend more message handlers (required: True, sensitive: False, options:
webex service now,general, default:webex service now) - ssl: Enable SSL (required: False, sensitive: False, default: False)
- vhost: Virtual host (required: False, sensitive: False, default: /)
Certain scopes may be required to perform specific actions or queries via the provider. Below is a summary of relevant scopes and their use cases:
- read: The rabbitmq user has permissions to read resources, e.g., exchange and bindings, on a per-vhost.
In workflows ¶
This provider can't be used as "step" or "action" in workflows.
Connecting with the Provider ¶
- Set up RabbitMQ queue, exchange and routing key, and make sure it is accessible.
- Configure the providers with these parameters.