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
Hashes for tom_hermes-0.1.10-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 6fe250bfebe0c84de049ca3059e07f8cd7fabc5ea4c5949fd7f24465d6fd8a11 |
|
| MD5 | 1cc7e0d22903981cdef5453916c86941 |
|
| BLAKE2b-256 | a50670c1157fb282aa0bfc87830fa7237df12e5ac5b5f39ee025274b886b3758 |