def shim_metric_definition(vdrp_measurement_doc):
    """Convert JSON structure in validate DRP into the JSON expected
    by SQuaSH for metric definition.
    """
    metric = vdrp_measurement_doc['metric']
    metric_json = {'metric': metric['name'], 'description': metric[
        'description'], 'reference': metric['reference'], 'specs': metric[
        'specifications'], 'operator': metric['operator_str'], 'parameters':
        metric['parameters'], 'unit': vdrp_measurement_doc['unit']}
    return metric_json
