Skip to main content

alerta-blackout-regex

Alerta plugin to enhance the blackout management, by matching the alerts against blackouts with PCRE (Perl Compatible Regular Expression) on attributes.

A blackout is considered matched when all its attributes are matched.

Once an alert is identified as matching a blackout, a special label is applied, with the format: regex_blackout=<blackout id>, where blackout id is the ID of the matched blackout, e.g., regex_blackout=d8ba1d3b-dbfd-4677-ab00-e7f8469d7ad3. This way, when the alert is fired again, there’s no need to verify the matching again, but simply verify whether the blackout referenced is still active.

Installation

This plugin is designed to be installed on the Alerta server; the package is available on PyPI so you can install as:

pip install alerta-blackout-regex

Configuration

Add blackout_regex to the list of enabled PLUGINS in alertad.conf server configuration file and set plugin-specific variables either in the server configuration file or as environment variables.

PLUGINS = ['blackout_regex']

References

License

Copyright (c) 2020-2022 Mircea Ulinic. Available under the Apache License 2.0.

Metadata

Release files for alerta-blackout-regex 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alerta-blackout-regex 3.1.0
File Size Uploaded Provenance Actions
alerta-blackout-regex-3.1.0.tar.gz 8.9 kB Without provenance Details for alerta-blackout-regex-3.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for alerta-blackout-regex 3.1.0
File Interpreter ABI Platform Actions
alerta_blackout_regex-3.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for alerta_blackout_regex-3.1.0-py2.py3-none-any.whl

Total release size: 18.6 kB

Release files / alerta-blackout-regex-3.1.0.tar.gz

Download URL alerta-blackout-regex-3.1.0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
846f5a7509c9b25f3ed1dad9a2f0a16ea0272be49f2ef5111c1582a860ad7ba1
BLAKE2b-256 checksum
How to use checksums
61010149a1f839157ab258d04a379e15834415e5448b938946c117856d6e98dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / alerta_blackout_regex-3.1.0-py2.py3-none-any.whl

Download URL alerta_blackout_regex-3.1.0-py2.py3-none-any.whl
Size 9.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
16c116dccd023a9b2c1426726a38a9f67b312a68172d202d13c5046c3a83c156
BLAKE2b-256 checksum
How to use checksums
f77c0d5d4bb4b46fbdfe4b5b46d0273d366034c633fb7455a479bb07141e6a90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Security for alerta-blackout-regex 3.1.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page