def get_data(self, classification_filter_operation, classification_list):
        """
            getting the incident and alert data from digital shadows
        """
        triage_ids = []
        max_event_num = -1
        item_data = []
        event_data = []

        if isinstance(self.event, int):
            max_event_num = self.event
            event_data = self.DS_obj.get_triage_events_by_num(self.event, classification_filter_operation, classification_list)
            #calculating the max event number from current batch to  use in next call
            if event_data:
                max_event_num = max([e['event-num'] for e in event_data])

        else:
            event_data = self.DS_obj.get_triage_events(self.before_time, self.after_time, classification_filter_operation, classification_list)
            #calculating the max event number from current batch to  use in next call
            if event_data:
                max_event_num = max([e['event-num'] for e in event_data])
                logger.info("First poll from event number " + str(event_data[0]['event-num']))
                logger.info("Total number of events are " + str(len(event_data)))
        
        for event in event_data:
            if event is not None and event['triage-item-id'] not in triage_ids:
                triage_ids.append(event['triage-item-id'])

        #fetch the triage id's from azure fileshare if file exist
        logger.info('triage length from api call: {}'.format(len(triage_ids)))
        triage_ids = self.get_last_polled_triage_items(triage_ids, self.date)

        
        return triage_ids, max_event_num

            getting the incident and alert data from digital shadows
        
Solutions/Digital Shadows/Data Connectors/Digital Shadows/DigitalShadowsConnectorAzureFunction/DS_poller.py