Skip to main content

A TOM Toolkit Broker module for querying the Hermes Alert API

Project description

pypi

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

tom_hermes-0.1.10.tar.gz (18.5 kB view hashes)

Uploaded Source

Built Distribution

tom_hermes-0.1.10-py3-none-any.whl (19.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page