def send_alert_data_to_sentinel(self, data):
        """To process alerts data received via DataminrPulse RTAP and ingest into Sentinel.

        Raises:
            DataminrPulseException: raises when any error occurs.
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            if type(data) == dict:
                self.prepare_alerts(data)
                body = json.dumps(data)
                applogger.debug(
                    "{}(method={}) Posting the RTAP alerts from DataminrPulseAlertsSentinelConnector".format(
                        self.logs_starts_with, __method_name
                    )
                )
                self.microsoftsentinel.post_data(
                    body,
                    alerts_table,
                )
                applogger.info(
                    "{}(method={}) Alert data is ingested into Sentinel.".format(
                        self.logs_starts_with, __method_name
                    )
                )
            else:
                applogger.info(
                    "{}(method={}) Total alerts recived via RTAP are {}.".format(
                        self.logs_starts_with, __method_name, len(data)
                    )
                )
                count = 0
                for alert in data:
                    self.prepare_alerts(alert)
                    count += 1
                body = json.dumps(data)
                applogger.debug(
                    "{}(method={}) Posting the RTAP alert data from DataminrPulseAlertsSentinelConnector".format(
                        self.logs_starts_with, __method_name
                    )
                )
                self.microsoftsentinel.post_data(
                    body,
                    alerts_table,
                )
                applogger.info(
                    "{}(method={}) Total {} alerts ingested in Sentinel.".format(
                        self.logs_starts_with, __method_name, count
                    )
                )
            return "Data ingetsed successfully to Sentinel log analytics workspace."
        except DataminrPulseException as err:
            raise DataminrPulseException(err)
        except Exception as error:
            applogger.error(
                "{}".format(
                    self.error_logs.format(self.logs_starts_with, __method_name, error)
                )
            )
            raise DataminrPulseException(error)
To process alerts data received via DataminrPulse RTAP and ingest into Sentinel.

        Raises:
            DataminrPulseException: raises when any error occurs.
        
Solutions/Dataminr Pulse/Data Connectors/DataminrPulseAlerts/DataminrPulseAlertsSentinelActivity/dataminr_pulse.py