def process_successful_data(self, results):
        """process_successful_data will process the data and return the data to be posted in sentinel.

        Args:
            results (json): json data to be processed.

        Returns:
            tuple: tuple containing data, last_seen_time, total_data_length, count_per_frame_data
        """
        try:
            if results["data"]["count"] == 0:
                raise ArmisDataNotFoundException(
                    "Armis Device Connector: Data not found."
                )

            if (
                "data" in results
                and "results" in results["data"]
                and "total" in results["data"]
                and "count" in results["data"]
                and "next" in results["data"]
            ):
                total_data_length = results["data"]["total"]
                count_per_frame_data = results["data"]["count"]
                data = results["data"]["results"]

                for i in data:
                    i["armis_device_time"] = i["lastSeen"]

                logging.info(
                    "Armis Device Connector: From {}, total length {}".format(
                        self._data_device_from, total_data_length
                    )
                )
                self._data_device_from = results["data"]["next"]
                last_seen_time = data[-1]["lastSeen"][:19]
                last_seen_time = self.validate_timestamp(last_seen_time)

                return (
                    data,
                    last_seen_time,
                    total_data_length,
                    count_per_frame_data,
                )
            else:
                raise ArmisException(
                    "Armis Device Connector: There are no proper keys in data."
                )
        except ArmisDataNotFoundException as err:
            logging.info(err)
            raise ArmisDataNotFoundException()
        except ArmisException as err:
            raise ArmisException(err)
process_successful_data will process the data and return the data to be posted in sentinel.

        Args:
            results (json): json data to be processed.

        Returns:
            tuple: tuple containing data, last_seen_time, total_data_length, count_per_frame_data
        
Solutions/Armis/Data Connectors/ArmisDevice/ArmisDeviceSentinelConnector/__init__.py