def get_last_event(self, historical_days):
        """
            gets the event number from which last polled
        """
        event = None
        try:
            event = int(self.get_event())
        except Exception:
            event = self.get_last_polled_time(historical_days)

        return event

            gets the event number from which last polled
        
Solutions/Digital Shadows/Data Connectors/Digital Shadows/DigitalShadowsConnectorAzureFunction/state_serializer.py