Service bookkeeper
bookkeeper.py
The bookkeeper service of mercure, which receives notifications from all mercure services and stores the information in a Postgres database.
- bookkeeper.create_database() None [source]
Creates all tables in the database if they do not exist.
- async bookkeeper.parse_and_submit_tags(payload) None [source]
Helper function that reads series information from the request body.
- async bookkeeper.post_mercure_event(request) JSONResponse [source]
Endpoint for receiving mercure system events.
- async bookkeeper.post_task_event(request) JSONResponse [source]
Endpoint for logging all events related to one series.
- async bookkeeper.post_webgui_event(request) JSONResponse [source]
Endpoint for logging relevant events of the webgui.
- async bookkeeper.processor_logs(request) JSONResponse [source]
Endpoint for receiving mercure system events.
- async bookkeeper.register_dicom(request) JSONResponse [source]
Endpoint for registering newly received DICOM files. Called by the getdcmtags module.
- async bookkeeper.register_series(request) JSONResponse [source]
Endpoint that is called by the router whenever a new series arrives.
- async bookkeeper.startup() None [source]
Connects to database on startup. If the database does not exist, it will be created.