def get_timestamp(self, filename):
        """Get the timestamp from filename.

        Args:
            filename (str): The name of the file.

        Returns:
            int: The timestamp of the file.
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            return int(filename.split("_")[5])
        except IndexError as index_error:
            applogger.error(
                self.log_format.format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    self.azure_function_name,
                    "Index error : Error-{}".format(index_error),
                )
            )
            raise InfobloxException()
        except Exception as error:
            applogger.error(
                self.log_format.format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    self.azure_function_name,
                    consts.UNEXPECTED_ERROR_MSG.format(error),
                )
            )
            raise InfobloxException()
Get the timestamp from filename.

        Args:
            filename (str): The name of the file.

        Returns:
            int: The timestamp of the file.
        
Solutions/Infoblox/Data Connectors/InfobloxCloudDataConnector/SharedCode/utils.py