def check_data_exists_or_not_device(self):
        """Check_data_exists_or_not is to check if the data is exists or not using the timestamp file.

        Args:
            self: Armis object.

        """

        try:
            self.state_devices = StateManager(
                connection_string=connection_string, file_path="funcarmisdevicesfile"
            )
            checkpoint_table_obj = ExportsTableStore(
                connection_string=connection_string, table_name=CHECKPOINT_TABLE_NAME
            )
            last_time_devices = self.state_devices.get()

            if last_time_devices is not None:
                logging.info(
                    "Armis Device Connector: The checkpoint file in file share is available for device endpoint."
                )
                logging.info(
                    "Armis Device Connector: Last timestamp stored in file for devices: {}".format(
                        last_time_devices
                    )
                )
                logging.info("Armis Device Connector: Creating Checkpoint table.")
                checkpoint_table_obj.create()

                logging.info(
                    "Armis Device Connector: Storing value in Checkpoint table - last_seen: {}, offset: 0".format(
                        last_time_devices
                    )
                )
                checkpoint_table_obj.merge(
                    "armisdevice",
                    "devicecheckpoint",
                    {"last_seen": last_time_devices, "offset": 0},
                )
                self.state_devices.delete()
                logging.info(
                    "Armis Device Connector: Checkpoint file deleted from fileshare."
                )
                self._fetch_device_data(
                    checkpoint_table_obj,
                    armis_devices_table_name,
                    False,
                    last_time_devices,
                )
                return

            # last_time_devices is None
            is_last_seen_not_available = False
            record = checkpoint_table_obj.get("armisdevice", "devicecheckpoint")
            if not record:
                # first iteration and start from the beginning
                logging.info("Armis Device Connector: Creating Checkpoint table.")
                checkpoint_table_obj.create()
                checkpoint_table_obj.post(
                    "armisdevice", "devicecheckpoint", {"offset": 0}
                )
                is_last_seen_not_available = True
            else:
                logging.info(
                    "Armis Device Connector: Fetching Entity from Checkpoint table: {}".format(
                        CHECKPOINT_TABLE_NAME
                    )
                )
                last_time_devices = record.get("last_seen")
                self._data_device_from = (
                    record.get("offset") if record.get("offset") else 0
                )
                logging.info(
                    "Armis Device Connector: Checkpoint table: {} last_seen: {}, offset: {}".format(
                        armis_devices_table_name,
                        last_time_devices,
                        self._data_device_from,
                    )
                )
                if last_time_devices is None:
                    logging.info(
                        "Armis Device Connector: last_seen value not available in checkpoint table."
                    )
                    is_last_seen_not_available = True
                else:
                    logging.info(
                        "Armis Device Connector: last_seen value is available in checkpoint table."
                    )

            self._fetch_device_data(
                checkpoint_table_obj,
                armis_devices_table_name,
                is_last_seen_not_available,
                last_time_devices,
            )

        except ArmisTimeOutException:
            logging.info(
                "Armis Device Connector: 9:30 mins executed hence stopping the execution"
            )
            return
        except ArmisException as err:
            logging.error(err)
            raise ArmisException(
                "Armis Device Connector: Error occured during checking whether log table exist or not."
            )

        except ArmisDataNotFoundException:
            raise ArmisDataNotFoundException()
Check_data_exists_or_not is to check if the data is exists or not using the timestamp file.

        Args:
            self: Armis object.

        
Solutions/Armis/Data Connectors/ArmisDevice/ArmisDeviceSentinelConnector/__init__.py