def post_alert_activity_data(
        self, alerts_data_to_post, activity_uuid_list, offset_to_post, checkpoint_table_object: ExportsTableStore
    ):
        """Post alert and activity data to respective table in sentinel.

        Args:
            alerts_data_to_post (list): alerts data to post
            activity_uuid_list (list): list of activity uuids to post
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            if alerts_data_to_post:
                if activity_uuid_list:
                    logging.info(consts.LOG_FORMAT.format(__method_name, "Fetching activities data."))
                    activity_data = self.get_activity_data(activity_uuid_list)
                    self.azuresentinel.post_data(
                        json.dumps(activity_data, indent=2), consts.ARMIS_ACTIVITIES_TABLE, "armis_activity_time"
                    )
                    self.total_activities_posted += len(activity_data)
                    logging.info(
                        consts.LOG_FORMAT.format(
                            __method_name, "Posted Activities count : {}.".format(len(activity_data))
                        )
                    )
                self.azuresentinel.post_data(
                    json.dumps(alerts_data_to_post, indent=2), consts.ARMIS_ALERTS_TABLE, "armis_alert_time"
                )
                self.total_alerts_posted += len(alerts_data_to_post)
                logging.info(
                    consts.LOG_FORMAT.format(
                        __method_name, "Posted Alerts count : {}.".format(len(alerts_data_to_post))
                    )
                )
                offset_to_post += len(alerts_data_to_post)
                logging.info(
                    consts.LOG_FORMAT.format(__method_name, "Saving offset '{}' in checkpoint".format(offset_to_post))
                )
                checkpoint_table_object.merge(
                    "armisalertactivity", "alertactivitycheckpoint", {"offset": offset_to_post}
                )
            return offset_to_post
        except ArmisException:
            raise ArmisException()
        except Exception as err:
            logging.error(
                consts.LOG_FORMAT.format(
                    __method_name, "Error while posting alerts and activity data : {}.".format(err)
                )
            )
            raise ArmisException()
Post alert and activity data to respective table in sentinel.

        Args:
            alerts_data_to_post (list): alerts data to post
            activity_uuid_list (list): list of activity uuids to post
        
Solutions/Armis/Data Connectors/ArmisAlertsActivities/ArmisAlertActivitySentinelConnector/__init__.py