driver/compute_server_client.py
def post_table_level_observation(self, data: TableLevelObservation) -> None:
        """Post the observation to the server.

        Args:
            data: Collected data from the target database.
        Raises:
            ComputeServerClientException: Failed to post the observation.
        """
        # pylint: disable=unused-variable
        headers = self._generate_headers(data["organization_id"])

        url = f"{self._server_url}/table_level_observation/"
        data_str = json.dumps(data, default=str)
        headers["Content-Type"] = "application/json"
        try:
            response = self._req_session.post(
                url, data=data_str, headers=headers, timeout=10
            )
            response.raise_for_status()
        except Exception as ex:
            msg = "Failed to post the table level observation to the server"
            raise ComputeServerClientException(msg, ex) from ex
Post the observation to the server.

        Args:
            data: Collected data from the target database.
        Raises:
            ComputeServerClientException: Failed to post the observation.
        
Post the observation to the server.
Post the observation to the server .
def post_table_level_observation(self, data: TableLevelObservation) -> None:
        headers = self._generate_headers(data["organization_id"])
        url = f"{self._server_url}/table_level_observation/"
        data_str = json.dumps(data, default=str)
        headers["Content-Type"] = "application/json"
        try:
            response = self._req_session.post(
                url, data=data_str, headers=headers, timeout=10
            )
            response.raise_for_status()
        except Exception as ex:
            msg = "Failed to post the table level observation to the server"
            raise ComputeServerClientException(msg, ex) from ex
def post_table_level_observation ( self , data : TableLevelObservation ) -> None : headers = self . _generate_headers ( data [ "organization_id" ] ) url = f"{self._server_url}/table_level_observation/" data_str = json . dumps ( data , default = str ) headers [ "Content-Type" ] = "application/json" try : response = self . _req_session . post ( url , data = data_str , headers = headers , timeout = 10 ) response . raise_for_status ( ) except Exception as ex : msg = "Failed to post the table level observation to the server" raise ComputeServerClientException ( msg , ex ) from ex
Post the observation to the server.
Post the observation to the server .
"""Post the observation to the server.

        Args:
            data: Collected data from the target database.
        Raises:
            ComputeServerClientException: Failed to post the observation.
        """ # pylint: disable=unused-variable
Failed to post the observation.
Failed to post the observation .
ComputeServerClientException
self
data
TableLevelObservation
Collected data from the target database.
Collected data from the target database .