boundary/api_call.py
def _call_api(self):
        """
        Make an API call to get the metric definition
        """

        self._url = self.form_url()
        if self._headers is not None:
            logging.debug(self._headers)
        if self._data is not None:
            logging.debug(self._data)
        if len(self._get_url_parameters()) > 0:
            logging.debug(self._get_url_parameters())

        result = self._methods[self._method]()

        if not self.good_response(result.status_code):
            logging.error(self._url)
            logging.error(self._method)
            if self._data is not None:
                logging.error(self._data)
            logging.error(result)
        self._api_result = result
def _call_api(self):
        self._url = self.form_url()
        if self._headers is not None:
            logging.debug(self._headers)
        if self._data is not None:
            logging.debug(self._data)
        if len(self._get_url_parameters()) > 0:
            logging.debug(self._get_url_parameters())

        result = self._methods[self._method]()

        if not self.good_response(result.status_code):
            logging.error(self._url)
            logging.error(self._method)
            if self._data is not None:
                logging.error(self._data)
            logging.error(result)
        self._api_result = result
def _call_api ( self ) : self . _url = self . form_url ( ) if self . _headers is not None : logging . debug ( self . _headers ) if self . _data is not None : logging . debug ( self . _data ) if len ( self . _get_url_parameters ( ) ) > 0 : logging . debug ( self . _get_url_parameters ( ) ) result = self . _methods [ self . _method ] ( ) if not self . good_response ( result . status_code ) : logging . error ( self . _url ) logging . error ( self . _method ) if self . _data is not None : logging . error ( self . _data ) logging . error ( result ) self . _api_result = result
Make an API call to get the metric definition
Make an API call to get the metric definition