def parser_of_connection(data):
    """ Parse the special measurement id for connection events

    Args:
        data (dict): see the following example
        {u'msm_id': 7000, u'timestamp': 1470134587, u'prefix': u'80.100.0.0/15', u'event': u'disconnect',
        u'controller': u'ctr-ams07', u'prb_id': 15093, u'type': u'connection', u'asn': 3265}

    Returns:
        dict, event name as key, either disconnect or connect, timestamp as value
    """
    event = data.get('event', None)
    tstp = data.get('timestamp', None)
    return {str(event): tstp}