def METHOD_NAME(event_id):
    """
    Get details of an event and add it to the result arrays
    :event_id   the id of the event
    """
    global network_ip_src, network_ip_dst, network_hostname, network_domain
    global app_hostname, app_domain, app_ip_src, app_ip_dst, app_ids_only, app_printcomment, app_netflow
    event_id = int(event_id)
    if event_id > 0:
        event_json = source.METHOD_NAME(event_id)
        event_core = event_json["Event"]
        # event_threatlevel_id = event_core["threat_level_id"]
        # attribute_count = event_core["attribute_count"]
        attribute = event_core["Attribute"]
        for attribute in event_core["Attribute"]:
            if app_ids_only and not attribute["to_ids"]:
                continue
            value = attribute["value"]
            title = event_core["info"]
            if app_netflow:
                app_printcomment = False
                if attribute["type"] == "ip-dst" and app_ip_dst:
                    network_ip_dst.append([build_entry(value, event_id, title, "ip-dst")])
            else:
                if attribute["type"] == "ip-src" and app_ip_src:
                    network_ip_src.append([build_entry(value, event_id, title, "ip-src")])
                elif attribute["type"] == "ip-dst" and app_ip_dst:
                    network_ip_dst.append([build_entry(value, event_id, title, "ip-dst")])
                elif attribute["type"] == "domain" and app_domain:
                    network_domain.append([build_entry(value, event_id, title, "domain")])
                elif attribute["type"] == "hostname" and app_hostname:
                    network_hostname.append([build_entry(value, event_id, title, "hostname")])
                else:
                    continue
    else:
        print("Not a valid ID")
        return