Use this API to fetch the statistics of all dns_stats resources that are configured on netscaler.
973810
public static dns_stats get(nitro_service service) throws Exception{
		dns_stats obj = new dns_stats();
		dns_stats[] response = (dns_stats[])obj.stat_resources(service);
		return response[0];
	}
277739
def get_stats(self, stat_name):
        

        return [self.get_stat(r, stat_name) for r in self.statistics.keys()]
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;
	}
792944
public static systemmemory_stats get(nitro_service service) throws Exception{
		systemmemory_stats obj = new systemmemory_stats();
		systemmemory_stats[] response = (systemmemory_stats[])obj.stat_resources(service);
		return response[0];
	}
931591
public static lbvserver_stats[] get(nitro_service service) throws Exception{
		lbvserver_stats obj = new lbvserver_stats();
		lbvserver_stats[] response = (lbvserver_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;
	}
115333
public static system_stats get(nitro_service service) throws Exception{
		system_stats obj = new system_stats();
		system_stats[] response = (system_stats[])obj.stat_resources(service);
		return response[0];
	}
1227145
def _setup_stats(self):
        '''
        
        '''
        self.stats_dict = {}

        redis_conn = redis.Redis(host=self.settings['REDIS_HOST'],
                                 port=self.settings['REDIS_PORT'],
                                 db=self.settings.get('REDIS_DB'))

        try:
            redis_conn.info()
            self.logger.debug("Connected to Redis in StatsCollector Setup")
            self.redis_conn = redis_conn
        except ConnectionError:
            self.logger.warn("Failed to connect to Redis in StatsCollector"
                             " Setup, no stats will be collected")
            return

        if self.settings['STATS_TOTAL']:
            self._setup_stats_total(redis_conn)

        if self.settings['STATS_PLUGINS']:
            self._setup_stats_plugins(redis_conn)
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;
	}
1217025
def get_netki_domains(self, fetch=False):
        """"""
        return NetkiDomains(
            self.resource.netki_domains, self.client, populate=fetch)
1284139
public static crvserver_stats[] get(nitro_service service) throws Exception{
		crvserver_stats obj = new crvserver_stats();
		crvserver_stats[] response = (crvserver_stats[])obj.stat_resources(service);
		return response;
	}
523232
public static cachepolicy_stats[] get(nitro_service service) throws Exception{
		cachepolicy_stats obj = new cachepolicy_stats();
		cachepolicy_stats[] response = (cachepolicy_stats[])obj.stat_resources(service);
		return response;
	}
339526
public static authenticationvserver_stats get(nitro_service service, String name) throws Exception{
		authenticationvserver_stats obj = new authenticationvserver_stats();
		obj.set_name(name);
		authenticationvserver_stats response = (authenticationvserver_stats) obj.stat_resource(service);
		return response;
	}
908735
def get_stats(self):
        

        stats = yield from self._hypervisor.send("nio get_stats {}".format(self._name))
        return stats[0]
1312344
public static dos_stats get(nitro_service service,  options option) throws Exception{
		dos_stats obj = new dos_stats();
		dos_stats[] response = (dos_stats[])obj.stat_resources(service,option);
		return response[0];
	}
1008179
def read_stats(self):
        

        self.statistics = TgnObjectsDict()
        for port in self.session.ports.values():
            self.statistics[port] = port.read_port_stats()
        return self.statistics
1083780
public static cmppolicy_stats[] get(nitro_service service) throws Exception{
		cmppolicy_stats obj = new cmppolicy_stats();
		cmppolicy_stats[] response = (cmppolicy_stats[])obj.stat_resources(service);
		return response;
	}