spark_plugin.py
def request_metrics(self, url, path, *args, **kwargs):
        """
        Makes REST call and converts response to JSON
        """
        resp = self.rest_request(url, path, *args, **kwargs)
        if not resp:
            return []

        try:
            return json.load(resp)
        except ValueError as e:
            collectd.info("Error parsing JSON from API call (%s) %s/%s" % (e, url, path))
            return []

        Makes REST call and converts response to JSON
        
Makes REST call and converts response to JSON
Makes REST call and converts response to JSON
def request_metrics(self, url, path, *args, **kwargs):
        resp = self.rest_request(url, path, *args, **kwargs)
        if not resp:
            return []
        try:
            return json.load(resp)
        except ValueError as e:
            collectd.info("Error parsing JSON from API call (%s) %s/%s" % (e, url, path))
            return []
def request_metrics ( self , url , path , * args , ** kwargs ) : resp = self . rest_request ( url , path , * args , ** kwargs ) if not resp : return [ ] try : return json . load ( resp ) except ValueError as e : collectd . info ( "Error parsing JSON from API call (%s) %s/%s" % ( e , url , path ) ) return [ ]
Makes REST call and converts response to JSON
Makes REST call and converts response to JSON
"""
        Makes REST call and converts response to JSON
        """
self
url
path