Use this API to fetch the statistics of all pq_stats resources that are configured on netscaler.
480945
public static pq_stats get(nitro_service service) throws Exception{
		pq_stats obj = new pq_stats();
		pq_stats[] response = (pq_stats[])obj.stat_resources(service);
		return response[0];
	}
818658
def get_supported_resources(netid):
    
    url = _netid_supported_url(netid)
    response = get_resource(url)
    return _json_to_supported(response)
530473
def stats(self):
        
        # TODO - this would be nicer if we formatted the stats
        return self._client.get('{}/stats'.format(Instance.api_endpoint), model=self)
1110623
def get_stats(self, pattern):
        
        if not self.cache:
            return
        key_list = self.cache.get(Conf.Q_STAT)
        if not key_list or len(key_list) == 0:
            return []
        stats = []
        for key in key_list:
            stat = self.cache.get(key)
            if stat:
                stats.append(stat)
            else:
                key_list.remove(key)
        self.cache.set(Conf.Q_STAT, key_list)
        return stats
716305
public static Interface_stats[] get(nitro_service service) throws Exception{
		Interface_stats obj = new Interface_stats();
		Interface_stats[] response = (Interface_stats[])obj.stat_resources(service);
		return response;
	}
892529
protected base_resource[] stat_resources(nitro_service service,options option) throws Exception
	{
		if (!service.isLogin())
			service.login();

		base_resource[] response = stat_request(service, option);
		return response;
	}
1271434
def issues_stats(self):
        
        response = self.requester.get(
            '/{endpoint}/{id}/issues_stats',
            endpoint=self.endpoint, id=self.id
        )
        return response.json()
1350304
public static service_stats[] get(nitro_service service) throws Exception{
		service_stats obj = new service_stats();
		service_stats[] response = (service_stats[])obj.stat_resources(service);
		return response;
	}
525967
public static protocoltcp_stats get(nitro_service service) throws Exception{
		protocoltcp_stats obj = new protocoltcp_stats();
		protocoltcp_stats[] response = (protocoltcp_stats[])obj.stat_resources(service);
		return response[0];
	}
205981
def collect(self):
        
        stats = self.parse_stats_file(self.config["status_path"])
        if len(stats) == 0:
            return {}
        elif "info" not in stats.keys():
            return {}
        elif "programstatus" not in stats.keys():
            return {}

        metrics = self.get_icinga_stats(stats["programstatus"])
        if "hoststatus" in stats.keys():
            metrics = dict(
                metrics.items() + self.get_host_stats(
                    stats["hoststatus"]).items())

        if "servicestatus" in stats.keys():
            metrics = dict(
                metrics.items() + self.get_svc_stats(
                    stats["servicestatus"]).items())

        for metric in metrics.keys():
            self.log.debug("Publishing '%s %s'.", metric, metrics[metric])
            self.publish(metric, metrics[metric])
232624
def get(api_code=None):
    
    
    resource = 'stats?format=json'
    if api_code is not None:
        resource += '&api_code=' + api_code
    response = util.call_api(resource)
    json_response = json.loads(response)
    return Stats(json_response)
1317352
def get_stats(self):
        '''
        
        '''
        resp = requests.get('%s/api/stats.json' % self.url)
        assert(resp.status_code == 200)
        return resp.json()
780548
public static tunnelip_stats get(nitro_service service, String tunnelip) throws Exception{
		tunnelip_stats obj = new tunnelip_stats();
		obj.set_tunnelip(tunnelip);
		tunnelip_stats response = (tunnelip_stats) obj.stat_resource(service);
		return response;
	}
68439
def get_stats(self, request, context):
        """"""
        _log_request(request, context)
        m = self.listener.memory
        return clearly_pb2.StatsMessage(
            task_count=m.task_count,
            event_count=m.event_count,
            len_tasks=len(m.tasks),
            len_workers=len(m.workers)
        )
782600
public static qos_stats get(nitro_service service) throws Exception{
		qos_stats obj = new qos_stats();
		qos_stats[] response = (qos_stats[])obj.stat_resources(service);
		return response[0];
	}
230828
public static scpolicy_stats[] get(nitro_service service) throws Exception{
		scpolicy_stats obj = new scpolicy_stats();
		scpolicy_stats[] response = (scpolicy_stats[])obj.stat_resources(service);
		return response;
	}
69770
public static appqoe_stats get(nitro_service service) throws Exception{
		appqoe_stats obj = new appqoe_stats();
		appqoe_stats[] response = (appqoe_stats[])obj.stat_resources(service);
		return response[0];
	}