def get_alert_data(self, parameter):
        """get_alert_data is used to get data using api.

        Args:
            parameter (json): will contain the json data to sends to parameter to get data from REST API.

        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            results = self.make_rest_call(
                method="GET",
                url=consts.URL + consts.SEARCH_SUFFIX,
                params=parameter,
                headers=self.header,
                retry_401=consts.RETRY_COUNT_401,
            )
            if ("data" in results) and ("count" in results["data"]) and (results["data"].get("count") == 0):
                raise ArmisDataNotFoundException(consts.LOG_FORMAT.format(__method_name, "Alert Data not found."))

            if (("results" in results["data"]) and ("total" in results["data"]) and ("next" in results["data"])):
                count_per_frame_data = results["data"]["count"]
                data = results["data"]["results"]
                for i in data:
                    i["armis_alert_time"] = i["time"]

                logging.info(
                    consts.LOG_FORMAT.format(__method_name, "Alerts From {} length 1000".format(self.data_alert_from))
                )
                self.data_alert_from = results["data"]["next"]
                alert_time = self.get_formatted_time(data[-1]["time"][:19])

                return data, alert_time, count_per_frame_data
            else:
                logging.error(consts.LOG_FORMAT.format(__method_name, "There are no proper keys in alerts data."))
                raise ArmisException()

        except KeyError as err:
            logging.error(consts.LOG_FORMAT.format(__method_name, "Key error : {}.".format(err)))
            raise ArmisException()

        except ArmisException:
            raise ArmisException()

        except ArmisDataNotFoundException as err:
            logging.info(err)
            raise ArmisDataNotFoundException()
        except Exception as err:
            logging.error(consts.LOG_FORMAT.format(__method_name, "Error while fetching Alerts. : {}.".format(err)))
            raise ArmisException()
get_alert_data is used to get data using api.

        Args:
            parameter (json): will contain the json data to sends to parameter to get data from REST API.

        
Solutions/Armis/Data Connectors/ArmisAlertsActivities/ArmisAlertActivitySentinelConnector/__init__.py