supervisord-slack-notifier
Event listener for Supervisord that sends notifications to Slack via Web API
Installation
pip install slack_notifier
Tests
Testing is set up using py.test and coverage is handled with the pytest-cov plugin.
Run your tests with py.test in the root directory.
Coverage is ran by default and is set in the pytest.ini file. To see an html output of coverage open htmlcov/index.html after running the tests.
Travis CI
There is a .travis.yml file that is set up to run your tests for python 2.7 and python 3.2, should you choose to use it.
Set up
Add the following to supervisord.conf:
[eventlistener:slack_notifier]
command=/path/to/slack_notifier -t=%AUTH_TOKEN% -c=%CHANNEL_NAME% -a
events=PROCESS_STATE
Options
-p -- specify a supervisor process_name. Notify when the process goes to
any of the 'followed' states. If this process is part of a group, it
can be specified using the 'process_name:group_name' syntax.
-a -- Notify about ALL processes. Overrides any -p
parameters passed in the same crashmail process invocation.
-e -- follow only transitions to these events. This overrides event list in
config.py
-c -- Channel to send notifications to. Can be either:
'#public_channel',
'@private_group',
'CHANNEL_ID',
-t -- Web API auth token
The -p and -e options may be specified more than once, allowing for specification of multiple processes and events. Specifying -a overrides any selection of -p.
License
Released under the MIT License: http://www.opensource.org/licenses/mit-license.php
Metadata
Release files for slack_notifier 1.0.0
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 |
|---|---|---|---|---|
| slack_notifier-1.0.0.tar.gz | 4.6 kB | Without provenance | Details for slack_notifier-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slack_notifier-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for slack_notifier-1.0.0-py2.py3-none-any.whl |
Total release size: 12.1 kB
Release files / slack_notifier-1.0.0.tar.gz
| Download URL | slack_notifier-1.0.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
737e58ce057a83283dbbdb3b914b435a1f0552fe22936f7c9ffdaf8f817eea61
|
|
BLAKE2b-256 checksum How to use checksums |
4279fa6cf2e553cf433e5eb19a8efd35507e7816fb80a5b8f99b807cb87f63e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / slack_notifier-1.0.0-py2.py3-none-any.whl
| Download URL | slack_notifier-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
38069e001c19f1fe04ef42b3b14f80b2efcb9826d04e23fdf2ff19e1e11d8e73
|
|
BLAKE2b-256 checksum How to use checksums |
fc8bdeba83857638f716f7437cfbc73ed16cd3b04199277e06bf9e44d47183cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for slack_notifier 1.0.0
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.