attpcdaq.daq.views.helpers.get_ecc_server_statuses¶
-
attpcdaq.daq.views.helpers.
get_ecc_server_statuses
(request)[source]¶ Gets some information about the ECC servers.
This produces a dictionary with the following key-value pairs:
- ‘success’
- Whether the request succeeded.
- ‘error_message’
- An error message, if applicable.
- ‘pk’
- The integer primary key of the ECC server in the database.
- ‘state’
- The current (integer) state of the ECC server, as enumerated in the constants attached to that class.
- ‘state_name’
- The name of the current state of the ECC server.
- ‘transitioning’
- Whether the ECC server is transitioning between states.
Returns: A dictionary with the above keys. Return type: dict