def send_event(service, check_name, overrides, status, output, soa_dir, ttl=None):
    # This function assumes the input is a string like "mumble.main"
    team = get_team(overrides, service, soa_dir)
    if not team:
        return
    runbook = overrides.get('runbook', 'http://y/paasta-troubleshooting')
    system_paasta_config = load_system_paasta_config()
    result_dict = {
        'tip': get_tip(overrides, service, soa_dir),
        'notification_email': get_notification_email(overrides, service, soa_dir),
        'irc_channels': get_irc_channels(overrides, service, soa_dir),
        'ticket': get_ticket(overrides, service, soa_dir),
        'project': get_project(overrides, service, soa_dir),
        'page': get_page(overrides, service, soa_dir),
        'alert_after': overrides.get('alert_after', '5m'),
        'check_every': overrides.get('check_every', '1m'),
        'realert_every': -1,
        'source': 'paasta-%s' % system_paasta_config.get_cluster(),
        'ttl': ttl,
    }

    sensu_host = system_paasta_config.get_sensu_host()
    sensu_port = system_paasta_config.get_sensu_port()

    if sensu_host is not None:
        pysensu_yelp.send_event(check_name, runbook, status, output, team, sensu_host=sensu_host, sensu_port=sensu_port,
                                **result_dict)
Returns the pairwise cost matrix: nlabels x nlabels matrix.
dataset/ETHPy150Open Yelp/paasta/paasta_tools/monitoring_tools.py/send_event--crossover with--dataset/ETHPy150Open seanbell/intrinsic/bell2014/energy/energy.py/IntrinsicEnergy.compute_pairwise_costs