attpcdaq.daq.views.helpers.get_data_router_statuses¶
-
attpcdaq.daq.views.helpers.
get_data_router_statuses
(request)[source]¶ Gets some information about the data routers.
This produces a dictionary with the following key-value pairs:
- ‘success’
- Whether the request succeeded.
- ‘pk’
- The integer primary key of the data router in the database.
- ‘is_online’
- Whether the router is available.
- ‘is_clean’
- Whether the staging directory is clean.
Returns: A dictionary of the values above. Return type: dict