def post_related_alerts(self, related_alerts, alert_id):
        """Post related alerts in seperate table obtained in alerts data received via DataminrPulse RTAP.

        Args:
            related_alerts (list): alerts related to provided alert_id.
            alert_id (_type_): id  of an alert whose related alerts are going to be ingested.

        Raises:
            DataminrPulseException: raises when any error occurs.

        Returns:
            list: returns list of related_alerts_id.
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            count = 0
            related_alert_ids = []
            applogger.info(
                "{}(method={}) Received total {} alerts data related to id={} via RTAP.".format(
                    self.logs_starts_with,
                    __method_name,
                    len(related_alerts),
                    alert_id,
                )
            )
            for alert in related_alerts:
                alert.update({"alert_relatedTo": alert_id})
                self.prepare_rawtoredirecturl(alert)
                embeded = alert.get("_embedded")
                if embeded:
                    embeded_labels = embeded.get("labels")
                    if embeded_labels:
                        updated_embeded_labels = self.prepare_embeded_labels_data(
                            alert.get("index"),
                            embeded_labels,
                            vulnerabilities_products_related_alerts_table,
                        )
                        alert.update({"_embedded": {"labels": updated_embeded_labels}})
                related_alert_ids.append(alert.get("index"))
                body = json.dumps(alert)
                status_code = self.microsoftsentinel.post_data(
                    body, related_alerts_table
                )
                if status_code >= 200 and status_code <= 299:
                    count += 1
            applogger.info(
                "{}(method={}) Posted total {} alerts data related to id={} successfully.".format(
                    self.logs_starts_with,
                    __method_name,
                    count,
                    alert_id,
                )
            )
            return related_alert_ids
        except DataminrPulseException as err:
            raise DataminrPulseException(err)
        except Exception as err:
            applogger.error(
                "{}".format(
                    self.error_logs.format(self.logs_starts_with, __method_name, err)
                )
            )
            raise DataminrPulseException(err)
Post related alerts in seperate table obtained in alerts data received via DataminrPulse RTAP.

        Args:
            related_alerts (list): alerts related to provided alert_id.
            alert_id (_type_): id  of an alert whose related alerts are going to be ingested.

        Raises:
            DataminrPulseException: raises when any error occurs.

        Returns:
            list: returns list of related_alerts_id.
        
Solutions/Dataminr Pulse/Data Connectors/DataminrPulseAlerts/DataminrPulseAlertsSentinelActivity/dataminr_pulse.py