Lifeguard RabbitMQ
Usage
Configure plugin in lifeguard_settings.py.
import lifeguard_rabbitmq
PLUGINS = [lifeguard_rabbitmq]
Settings
| Name | Description | Value |
|---|---|---|
| LIFEGUARD_RABBITMQ_\w+_ADMIN_BASE_URL | RabbitMQ admin base url of default instance | http://localhost:15672 |
| LIFEGUARD_RABBITMQ_\w+_ADMIN_USER | RabbitMQ admin user of default instance | guest |
| LIFEGUARD_RABBITMQ_\w+_ADMIN_PASSWD | RabbitMQ admin password of default instance | guest |
| LIFEGUARD_RABBITMQ_\w+_ADMIN_VHOST | RabbitMQ admin virtual host of default instance | / |
| LIFEGUARD_RABBITMQ_INSTANCES | List of rabbitmq instances separated by comma | default |
Builtin Validations
Consumers Running Validation
Usage example:
# in lifeguard_settings.py
from lifeguard_rabbitmq import RABBITMQ_PLUGIN_CONTEXT
from lifeguard import NORMAL, PROBLEM
from lifeguard.actions.email import send_email
RABBITMQ_PLUGIN_CONTEXT.consumers_validation_options = {
"actions": [send_email],
"schedule": {"every": {"minutes": 1}},
"settings": {
"email": {
"subject": "[Lifeguard] - Consumers validation",
"receivers": [{"name": "User", "email": "user@cserver.com"}],
"send_in": [PROBLEM],
"remove_from_sent_list_when": [NORMAL],
}
},
"queues": {
"default": [{"name": "lifeguard.queue.example", "min_number_of_consumers": 1}],
},
}
Messages Increasing Validation
Usage example:
# in lifeguard_settings.py
from lifeguard_rabbitmq import RABBITMQ_PLUGIN_CONTEXT
from lifeguard import NORMAL, PROBLEM
from lifeguard.actions.database import save_result_into_database
RABBITMQ_PLUGIN_CONTEXT.messages_increasing_validation_options = {
"actions": [save_result_into_database],
"schedule": {"every": {"minutes": 1}},
"settings": {},
"queues": {
"default": [{"name": "lifeguard.queue.example", "count_before_alert": 10}],
},
}
Metadata
Release files for lifeguard-rabbitmq 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lifeguard_rabbitmq-1.1.1.tar.gz | 8.8 kB | Without provenance | Details for lifeguard_rabbitmq-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lifeguard_rabbitmq-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for lifeguard_rabbitmq-1.1.1-py3-none-any.whl |
Total release size: 17.8 kB
Release files / lifeguard_rabbitmq-1.1.1.tar.gz
| Download URL | lifeguard_rabbitmq-1.1.1.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7f373dca4a3c9e310670c1ffa7ca17c01e03eb8646e253f3f917c66faed3fbf
|
|
BLAKE2b-256 checksum How to use checksums |
696903815a9dca22d1b8904ac71db6defd4a47757f33548241039ecce640e0e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / lifeguard_rabbitmq-1.1.1-py3-none-any.whl
| Download URL | lifeguard_rabbitmq-1.1.1-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d52355170de59469688c69aabdbf5c64170700c44c7d842a5a8c914e8f9a5ff3
|
|
BLAKE2b-256 checksum How to use checksums |
adb3eba17f071e71316864c702c606e5afad2af1dff324c5b3887ea90407016f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for lifeguard-rabbitmq 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.