def parse_performance_data(response):
    """Parse metrics response to a map
    :param response: response from unispshere REST API
    :returns: map with key as metric name and value as dictionary
        containing {timestamp: value} for a the timestamps available
    """
    metrics_map = {}
    for metrics in response["resultList"]["result"]:
        timestamp = metrics["timestamp"]
        for key, value in metrics.items():
            metrics_map[key] = metrics_map.get(key, {})
            metrics_map[key][timestamp] = value
    return metrics_map