Welcome to Incident Store’s documentation!

bos-incidents stores incidents from the data-proxies in a mongodb so it’s status can be tracked and displayed via command line tools in bos-auto or the web interface bos-mint.

Default implementation requires a mongodb server running locally (localhost:27017).

from bos_incidents import factory
storage = factory.get_incident_storage()
incidents = storage.get_incidents_by_id({
        "home": "Charlotte Hornets",
        "start_time": "2018-03-22T23:00:00Z",
        "event_group_name": "NBA Regular Season",
        "away": "Memphis Grizzlies",
        "sport": "Basketball"
    }
)

Installation

$ pip3 install bos-incidents

Indices and tables