def get_summary_metrics(d):
    """Get metrics for the AliveNodesInfoJson"""

    nodes_count = d['nodes']
    alive_count = d['alive']
    slots = d['slots']
    metrics = {
        'total_nodes' : nodes_count,
        'alive_nodes' : alive_count,
        'dead_nodes' : nodes_count - alive_count,
        'map_slots' : slots['map_slots'],
        'reduce_slots' : slots['reduce_slots'],
        'map_slots_used' : slots['map_slots_used'],
        'reduce_slots_used' : slots['reduce_slots_used']
    }

    return metrics