attpcdaq.daq.views.api.source_change_state

attpcdaq.daq.views.api.source_change_state(request)[source]

Submits a request to tell the ECC server to change a source’s state.

The transition request is put in the Celery task queue.

Parameters:request (HttpRequest) – The request must include the primary key pk of the ECC server and the integer target_state to change to. The request must be made via POST.
Returns:The JSON response includes the items outlined in _make_status_response.
Return type:JsonResponse