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

        Args:
            self: Armis object.
        """
        activity_field_list = ["title", "type", "time", "site", "sensor", "protocol", "content", "activityUUID"]
        try:
            parameter_activity = {
                "aql": "in:activity",
                "orderBy": "time",
                "fields": ','.join(activity_field_list),
            }
            state_activities = StateManager(
                connection_string=connection_string, file_path="funcarmisactivitiesfile"
            )
            last_time_activities = state_activities.get()
            if last_time_activities is None:
                logging.info(
                    "Armis Activity Connector: The last run timestamp is not available for the activities."
                )
                self._fetch_activity_data(
                    parameter_activity,
                    state_activities,
                    armis_activities,
                    True,
                    last_time_activities,
                )
                logging.info("Armis Activity Connector: Data ingestion initiated.")
            else:
                logging.info(
                    "Armis Activity Connector: The last time point is available in activities: {}.".format(
                        last_time_activities
                    )
                )
                self._fetch_activity_data(
                    parameter_activity,
                    state_activities,
                    armis_activities,
                    False,
                    last_time_activities,
                )
                logging.info(
                    "Armis Activity Connector: Data added when logs was already in %s.",
                    armis_activities,
                )
            logging.info("Armis Activity Connector: Activity data added successfully .")
        except ArmisException as err:
            logging.error(err)
            raise ArmisException(
                "Armis Activity 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/ArmisActivities/ArmisActivitySentinelConnector/__init__.py