def single_ent_events(KVUri= None, ent_name= None, api_key= None, lookout_mes_uri= None, ent_index= 0):
    '''
    Fetching events for an ENT and syncing fetched events into sentinel
    '''
    logging.info("Events fetching for ent_name %s..." % str(ent_name))
    mes = MESRequest(lookout_mes_uri, ent_name, api_key, KVUri, ent_index)
    
    events = mes.get_events()
    if events and len(events) > 0:
        logging.info("Got events")        
        logging.info("Processing {} events".format(len(events)))
        processed_events = []
        for event in events:
            event['enterprise_name'] = ent_name
            event['time_collected'] = event["eventTime"] 
            processed_events.append(event)

        post_status_code = post_data(json.dumps(processed_events))
        if post_status_code is not None:
            logging.info("Events processed to Sentinel successfully")
        else:
            logging.info("Failed to Post Events to Sentinel")

    Fetching events for an ENT and syncing fetched events into sentinel
    
Solutions/Lookout/Data Connectors/LookoutAPISentinelConnector/__init__.py