def _construct_mock_bigquery_response(mock_rows):
    mock_response = {
        'schema': {
            'fields': [{'name': f} for f in mock_rows[0].keys()]
        }
    }
    mock_response['rows'] = []
    for mock_row in mock_rows:
        value_row = [{'v': v} for v in mock_row.values()]
        mock_response['rows'].append({'f': value_row})
    mock_response['totalRows'] = len(mock_response['rows'])
    return mock_response
Returns the result of calling "uptime" on the target host.
dataset/ETHPy150Open m-lab/telescope/tests/test_external.py/_construct_mock_bigquery_response--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/compute/cells_api.py/HostAPI.get_host_uptime