(self)
return self._decode_response(response)
Hit a given http url and return the stats lines.
Hit a given http url and return the stats lines.
Hit a given http url and return the stats lines .
def _fetch_url_data(self):
        """Hit a given http url and return the stats lines."""
        # Try to fetch data from the stats URL
        url = "%s%s" % (self.url, STATS_URL)

        self.log.debug("Fetching haproxy stats from url: %s", url)

        response = self.http.get(url)
        response.raise_for_status()
        return self._decode_response(response)
def _fetch_url_data ( self ) : # Try to fetch data from the stats URL url = "%s%s" % ( self . url , STATS_URL ) self . log . debug ( "Fetching haproxy stats from url: %s" , url ) response = self . http . get ( url ) response . raise_for_status ( ) return self . _decode_response ( response )