def send_data_to_sentinel(self, data, data_table, company_name, endpoint):
        """To post the data into sentinel.

        Args:
            data (dict): data to post in sentinel
            data_table (str): log type
            company_name (str): company name
        """
        try:
            body = json.dumps(data, sort_keys=True)
            post_data_status_code = self.azuresentinel.post_data(body, data_table)
            if post_data_status_code >= 200 and post_data_status_code <= 299:
                applogger.info(
                    "BitSight: [status code {}] Successfully posted the {} of {} company.".format(
                        post_data_status_code, endpoint, company_name
                    )
                )
            else:
                applogger.error(
                    "BitSight: [status code {}] The {} of {} company is not posted".format(
                        post_data_status_code, endpoint, company_name
                    )
                )
                raise BitSightException()
        except BitSightException:
            raise BitSightException()
        except Exception as err:
            applogger.exception("BitSight: SEND DATA TO SENTINEL: {}".format(err))
            raise BitSightException()
To post the data into sentinel.

        Args:
            data (dict): data to post in sentinel
            data_table (str): log type
            company_name (str): company name
        
Solutions/BitSight/Data Connectors/BitSightDataConnector/SharedCode/bitsight_client.py