def get_risk_data(data_dict, key):
    """
    Gets the total risk value from the provided key and returns the value else 0
    :param data_dict: input data dictionary to parse
    :param key: key name to retrieve
    :return:
    """
    data = data_dict.get(key)
    data_score = data.get('total', 0) if data else 0
    return data_score