A TOM Toolkit Broker module for querying the Hermes Alert API
Project description
tom_hermes
This module adds Hermes Broker
support to the TOM Toolkit. Using this module, TOMs can query non-localized events in the Hermes alert archive.
tom_hermes
is different than other TOM Toolkit broker modules whose query results are alerts associated with specific Targets, and from which you can create Targets in your TOM). tom_hermes
query results are non-localized events. In conjunction with tom_nonlocalizedevents, from your tom_hermes
query results, you can create non-localized events in your TOM.
Installation
Install the module into your TOM environment:
pip install tom-hermes
Add tom_hermes.hermes.HermesBroker
to the TOM_ALERT_CLASSES
in your TOM's settings.py
:
TOM_ALERT_CLASSES = [
'tom_alerts.brokers.antares.ANTARESBroker',
...
'tom_hermes.hermes.HermesBroker',
]
Add tom_hermes
to your settings.INSTALLED_APPS
:
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
...
'tom_hermes'
]
Add HERMES_API_URL
to your settings.py
if you want to point to a hermes instance other than https://hermes.lco.global
.
This is the same settings variable that tom_nonlocalizedevents
uses to make queries to hermes as well.
Hermes
is now available as a Broker from the TOM Toolkit Alerts page. You may configure and execute your queries as you would any Broker.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tom_hermes-0.1.10.tar.gz
.
File metadata
- Download URL: tom_hermes-0.1.10.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f2ebe25a131dc7be78f143cb35705ad267b745d021a3af4a8c4abbc3a86bdbb |
|
MD5 | f55d11575e4a80a26f7c6e852712b86d |
|
BLAKE2b-256 | b6a5232e4941bdfd849a9b372766346cd05472597311b9e69a3e6640e0353ae0 |
File details
Details for the file tom_hermes-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: tom_hermes-0.1.10-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fe250bfebe0c84de049ca3059e07f8cd7fabc5ea4c5949fd7f24465d6fd8a11 |
|
MD5 | 1cc7e0d22903981cdef5453916c86941 |
|
BLAKE2b-256 | a50670c1157fb282aa0bfc87830fa7237df12e5ac5b5f39ee025274b886b3758 |