Use this API to fetch the statistics of all appfwpolicy_stats resources that are configured on netscaler.
504337
public static appfwpolicy_stats[] get(nitro_service service) throws Exception{
		appfwpolicy_stats obj = new appfwpolicy_stats();
		appfwpolicy_stats[] response = (appfwpolicy_stats[])obj.stat_resources(service);
		return response;
	}
1102833
def get_icinga_stats(self, app_stats):
        
        stats = {}
        stats = dict(stats.items() + self._get_active_stats(app_stats).items())
        stats = dict(stats.items() + self._get_cached_stats(app_stats).items())
        stats = dict(
            stats.items() + self._get_command_execution(app_stats).items())
        stats = dict(
            stats.items() + self._get_externalcmd_stats(app_stats).items())
        stats["uptime"] = self._get_uptime(app_stats)
        return stats
1154502
public static protocolip_stats get(nitro_service service) throws Exception{
		protocolip_stats obj = new protocolip_stats();
		protocolip_stats[] response = (protocolip_stats[])obj.stat_resources(service);
		return response[0];
	}
531697
public static transformpolicylabel_stats[] get(nitro_service service) throws Exception{
		transformpolicylabel_stats obj = new transformpolicylabel_stats();
		transformpolicylabel_stats[] response = (transformpolicylabel_stats[])obj.stat_resources(service);
		return response;
	}
992132
public static transformpolicy_stats[] get(nitro_service service) throws Exception{
		transformpolicy_stats obj = new transformpolicy_stats();
		transformpolicy_stats[] response = (transformpolicy_stats[])obj.stat_resources(service);
		return response;
	}
396798
public static authenticationvserver_stats[] get(nitro_service service) throws Exception{
		authenticationvserver_stats obj = new authenticationvserver_stats();
		authenticationvserver_stats[] response = (authenticationvserver_stats[])obj.stat_resources(service);
		return response;
	}
1118082
public static authorizationpolicylabel_stats[] get(nitro_service service) throws Exception{
		authorizationpolicylabel_stats obj = new authorizationpolicylabel_stats();
		authorizationpolicylabel_stats[] response = (authorizationpolicylabel_stats[])obj.stat_resources(service);
		return response;
	}
166085
public static pqpolicy_stats get(nitro_service service, String policyname) throws Exception{
		pqpolicy_stats obj = new pqpolicy_stats();
		obj.set_policyname(policyname);
		pqpolicy_stats response = (pqpolicy_stats) obj.stat_resource(service);
		return response;
	}
321582
def stats(self):
        
        response = self.requester.get(
            '/{endpoint}/{id}/stats',
            endpoint=self.endpoint, id=self.id
        )
        return response.json()
1292278
public static dnsrecords_stats[] get(nitro_service service) throws Exception{
		dnsrecords_stats obj = new dnsrecords_stats();
		dnsrecords_stats[] response = (dnsrecords_stats[])obj.stat_resources(service);
		return response;
	}
1329250
public static appfwpolicylabel_stats get(nitro_service service, String labelname) throws Exception{
		appfwpolicylabel_stats obj = new appfwpolicylabel_stats();
		obj.set_labelname(labelname);
		appfwpolicylabel_stats response = (appfwpolicylabel_stats) obj.stat_resource(service);
		return response;
	}
1264711
public static appfwpolicy_appfwglobal_binding[] get(nitro_service service, String name) throws Exception{
		appfwpolicy_appfwglobal_binding obj = new appfwpolicy_appfwglobal_binding();
		obj.set_name(name);
		appfwpolicy_appfwglobal_binding response[] = (appfwpolicy_appfwglobal_binding[]) obj.get_resources(service);
		return response;
	}
347574
public static spilloverpolicy_stats[] get(nitro_service service) throws Exception{
		spilloverpolicy_stats obj = new spilloverpolicy_stats();
		spilloverpolicy_stats[] response = (spilloverpolicy_stats[])obj.stat_resources(service);
		return response;
	}
1167510
public static inat_stats[] get(nitro_service service) throws Exception{
		inat_stats obj = new inat_stats();
		inat_stats[] response = (inat_stats[])obj.stat_resources(service);
		return response;
	}
1110106
def _get_cached_stats(self, app_stats):
        
        stats = {}
        app_keys = [
            "cached_host_check_stats",
            "cached_service_check_stats",
        ]
        for app_key in app_keys:
            if app_key not in app_stats.keys():
                continue

            (x01, x05, x15) = self._convert_tripplet(app_stats[app_key])
            scratch = app_key.split("_")[1]
            stats["%ss.cached.01" % (scratch)] = x01
            stats["%ss.cached.05" % (scratch)] = x05
            stats["%ss.cached.15" % (scratch)] = x15

        return stats
1362357
public static appfwprofile_stats[] get(nitro_service service) throws Exception{
		appfwprofile_stats obj = new appfwprofile_stats();
		appfwprofile_stats[] response = (appfwprofile_stats[])obj.stat_resources(service);
		return response;
	}
574599
public static tmtrafficpolicy_stats[] get(nitro_service service) throws Exception{
		tmtrafficpolicy_stats obj = new tmtrafficpolicy_stats();
		tmtrafficpolicy_stats[] response = (tmtrafficpolicy_stats[])obj.stat_resources(service);
		return response;
	}