def __init__(self, function_name, ds_id, ds_key, secret, as_id, as_key, connection_string, historical_days, url):
        """ 
            initializes all necessary variables from other classes for polling 
        """
        
        self.DS_obj = DS_api.api(ds_id, ds_key, secret, url)
        self.AS_obj = AS_api.logs_api(as_id, as_key)
        self.date = State(connection_string, function_name)
        logger.info("got inside the poller code")
        self.event = self.date.get_last_event(historical_days)
        if isinstance(self.event, tuple):
            self.after_time = self.event[0]
            self.before_time = self.event[1]
            logger.info("From time: %s", self.after_time)
            logger.info("to time: %s", self.before_time)
        else:
            logger.info("Polling from event number " + str(self.event))
 
            initializes all necessary variables from other classes for polling 
        
Solutions/Digital Shadows/Data Connectors/Digital Shadows/DigitalShadowsConnectorAzureFunction/DS_poller.py