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 pkof the ECC server and the integertarget_stateto change to. The request must be made via POST.Returns: The JSON response includes the items outlined in _make_status_response. Return type: JsonResponse