@processing_app.route('/metrics/')
def retrieve_metrics():
    valid_metrics = _get_valid_metric_options().keys()
    output = json.dumps({'metrics': valid_metrics})
    response.content_type = 'application/json'

    if request.query.callback:
        return '%s(%s)' % (request.query.callback, output)
    return output
Retrieve available metric names.
dataset/ETHPy150Open apache/climate/ocw-ui/backend/processing.py/retrieve_metrics