Use this API to fetch all the statistic objects resources that are available on netscaler.
327519
public static statobjects get(nitro_service service) throws Exception{
		statobjects obj = new statobjects();
		statobjects[] response = (statobjects[])obj.get_resources(service);
		return response[0];
	}
815376
def get_all_stats(self):
        '''
        
        '''
        self.logger.debug("Gathering all stats")
        the_dict = {}
        the_dict['kafka-monitor'] = self.get_kafka_monitor_stats()
        the_dict['redis-monitor'] = self.get_redis_monitor_stats()
        the_dict['crawler'] = self.get_crawler_stats()
        the_dict['rest'] = self.get_rest_stats()

        return the_dict
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;
	}
1357434
public static systemdatasource get(nitro_service service) throws Exception{
		systemdatasource obj = new systemdatasource();
		systemdatasource[] response = (systemdatasource[])obj.get_resources(service);
		return response[0];
	}
997654
def get_all_objects_in_bucket(
        aws_bucket_name,
        s3_client=None,
        max_keys=1000
):
    
    logger.debug("Retrieving bucket object list")

    if not s3_client:
        s3_client, s3_resource = get_s3_client()

    obj_dict = {}
    paginator = s3_client.get_paginator('list_objects')
    page_iterator = paginator.paginate(Bucket=aws_bucket_name)
    for page in page_iterator:
        key_list = page.get('Contents', [])
        logger.debug("Loading page with {} keys".format(len(key_list)))
        for obj in key_list:
            obj_dict[obj.get('Key')] = obj
    return obj_dict
984426
public java.util.List<DataSource> getDataSources() {
        if (dataSources == null) {
            dataSources = new com.amazonaws.internal.SdkInternalList<DataSource>();
        }
        return dataSources;
    }
338047
def _retrieve_resources(self, url, class_, full):
        ''''''
        objects_to_return = []
        response = self.session.get(url)
        if response.status_code == 200:
            result = response.json()
            resources = result['results']
            objects_to_return.extend([class_(session=self.session, **resource)
                                      for resource in resources])
            while full and result['next'] is not None:
                response = self.session.get(result['next'])
                if response.status_code == 200:
                    result = response.json()
                    resources = result['results']
                    objects_to_return.extend([class_(session=self.session,
                                                     **resource)
                                              for resource in resources])
                else:
                    raise RuntimeError("Failed downloading data with status {}"
                            ". The response was: '{}'"
                            .format(response.status_code, response.text))
            return objects_to_return
        else:
            raise RuntimeError("Failed downloading data with status {}"
                    ". The response was: '{}'"
                    .format(response.status_code, response.text))
1331635
public static tunnelip6_stats[] get(nitro_service service) throws Exception{
		tunnelip6_stats obj = new tunnelip6_stats();
		tunnelip6_stats[] response = (tunnelip6_stats[])obj.stat_resources(service);
		return response;
	}
1317352
def get_stats(self):
        '''
        
        '''
        resp = requests.get('%s/api/stats.json' % self.url)
        assert(resp.status_code == 200)
        return resp.json()
327195
public static autoscalepolicy_stats[] get(nitro_service service) throws Exception{
		autoscalepolicy_stats obj = new autoscalepolicy_stats();
		autoscalepolicy_stats[] response = (autoscalepolicy_stats[])obj.stat_resources(service);
		return response;
	}
315312
public static nspbr6_stats[] get(nitro_service service, options option) throws Exception{
		nspbr6_stats obj = new nspbr6_stats();
		nspbr6_stats[] response = (nspbr6_stats[])obj.stat_resources(service,option);
		return response;
	}
544104
public static lacp[] get(nitro_service service) throws Exception{
		lacp obj = new lacp();
		lacp[] response = (lacp[])obj.get_resources(service);
		return response;
	}
16781
public function getAll()
    {
        if (!$this->getResource()) {
            return [];
        }
        if ($this->useLocalResource) {
            return $this->localResource;
        }

        // If we're attempting to use a global resource but it doesn't exist, we've got a problem.
        if (!isset($GLOBALS[$this->getResource()])) {
            throw new \Parable\GetSet\Exception(
                "Attempting to use global resource '{$this->getResource()}' but resource not available."
            );
        }

        return $GLOBALS[$this->getResource()];
    }
1337402
public static service[] get(nitro_service service) throws Exception{
		service obj = new service();
		service[] response = (service[])obj.get_resources(service);
		return response;
	}
952257
public static ns[] get(nitro_service client) throws Exception
	{
		ns resource = new ns();
		resource.validate("get");
		return (ns[]) resource.get_resources(client);
	}
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)
919038
public static gslbservice_stats[] get(nitro_service service) throws Exception{
		gslbservice_stats obj = new gslbservice_stats();
		gslbservice_stats[] response = (gslbservice_stats[])obj.stat_resources(service);
		return response;
	}