@app.route('<STR_LIT>')<EOL>@requires_auth<EOL>@jsonapi_mediatype<EOL>def internal_state():
data = {'<STR_LIT>': {<EOL>'<STR_LIT>': ServiceStatus.str(get_service_status(Service.CAPTURE)),<EOL>'<STR_LIT>': ServiceStatus.str(get_service_status(Service.INGEST)),<EOL>'<STR_LIT>': ServiceStatus.str(get_service_status(Service.SCHEDULE)),<EOL>'<STR_LIT>': ServiceStatus.str(get_service_status(Service.AGENTSTATE))<EOL>}<EOL>}<EOL>return make_response(jsonify({'<STR_LIT>': data}))<EOL>
Serve a json representation of internal agentstate as meta data