Use this API to fetch statistics of authenticationvserver_stats resource of given name .
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;
	}
293014
public static tmtrafficpolicy_stats get(nitro_service service, String name) throws Exception{
		tmtrafficpolicy_stats obj = new tmtrafficpolicy_stats();
		obj.set_name(name);
		tmtrafficpolicy_stats response = (tmtrafficpolicy_stats) obj.stat_resource(service);
		return response;
	}
929858
public static vlan_stats[] get(nitro_service service) throws Exception{
		vlan_stats obj = new vlan_stats();
		vlan_stats[] response = (vlan_stats[])obj.stat_resources(service);
		return response;
	}
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;
	}
151388
public static authenticationvserver_authenticationldappolicy_binding[] get(nitro_service service, String name) throws Exception{
		authenticationvserver_authenticationldappolicy_binding obj = new authenticationvserver_authenticationldappolicy_binding();
		obj.set_name(name);
		authenticationvserver_authenticationldappolicy_binding response[] = (authenticationvserver_authenticationldappolicy_binding[]) obj.get_resources(service);
		return response;
	}
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;
	}
908735
def get_stats(self):
        

        stats = yield from self._hypervisor.send("nio get_stats {}".format(self._name))
        return stats[0]
494506
public static appfwprofile_stats get(nitro_service service, String name) throws Exception{
		appfwprofile_stats obj = new appfwprofile_stats();
		obj.set_name(name);
		appfwprofile_stats response = (appfwprofile_stats) obj.stat_resource(service);
		return response;
	}
827053
public static auditsyslogpolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{
		auditsyslogpolicy_authenticationvserver_binding obj = new auditsyslogpolicy_authenticationvserver_binding();
		obj.set_name(name);
		auditsyslogpolicy_authenticationvserver_binding response[] = (auditsyslogpolicy_authenticationvserver_binding[]) obj.get_resources(service);
		return response;
	}
50450
public static rewritepolicy_stats get(nitro_service service, String name) throws Exception{
		rewritepolicy_stats obj = new rewritepolicy_stats();
		obj.set_name(name);
		rewritepolicy_stats response = (rewritepolicy_stats) obj.stat_resource(service);
		return response;
	}
606260
public static authenticationldappolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{
		authenticationldappolicy_vpnvserver_binding obj = new authenticationldappolicy_vpnvserver_binding();
		obj.set_name(name);
		authenticationldappolicy_vpnvserver_binding response[] = (authenticationldappolicy_vpnvserver_binding[]) obj.get_resources(service);
		return response;
	}
231473
public static authenticationcertpolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{
		authenticationcertpolicy_authenticationvserver_binding obj = new authenticationcertpolicy_authenticationvserver_binding();
		obj.set_name(name);
		authenticationcertpolicy_authenticationvserver_binding response[] = (authenticationcertpolicy_authenticationvserver_binding[]) obj.get_resources(service);
		return response;
	}
810043
public static gslbvserver_stats[] get(nitro_service service) throws Exception{
		gslbvserver_stats obj = new gslbvserver_stats();
		gslbvserver_stats[] response = (gslbvserver_stats[])obj.stat_resources(service);
		return response;
	}
164166
public static authenticationcertpolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{
		authenticationcertpolicy_vpnvserver_binding obj = new authenticationcertpolicy_vpnvserver_binding();
		obj.set_name(name);
		authenticationcertpolicy_vpnvserver_binding response[] = (authenticationcertpolicy_vpnvserver_binding[]) obj.get_resources(service);
		return response;
	}
1245017
public static vpnvserver_stats[] get(nitro_service service) throws Exception{
		vpnvserver_stats obj = new vpnvserver_stats();
		vpnvserver_stats[] response = (vpnvserver_stats[])obj.stat_resources(service);
		return response;
	}
925961
def get_svc_stats(self, svcs):
        
        stats = {
            "services.total": 0,
            "services.ok": 0,
            "services.warning": 0,
            "services.critical": 0,
            "services.unknown": 0,
            "services.flapping": 0,
            "services.in_downtime": 0,
            "services.checked": 0,
            "services.scheduled": 0,
            "services.active_checks": 0,
            "services.passive_checks": 0,
        }
        for svc in svcs:
            if type(svc) is not dict:
                continue

            sane = self._sanitize_entity(svc)
            stats["services.total"] += 1
            stats["services.flapping"] += self._trans_binary(sane["flapping"])
            stats["services.in_downtime"] += self._trans_dtime(
                sane["in_downtime"])
            stats["services.checked"] += self._trans_binary(sane["checked"])
            stats[
                "services.scheduled"] += self._trans_binary(sane["scheduled"])
            stats["services.active_checks"] += sane["active_checks"]
            stats["services.passive_checks"] += sane["passive_checks"]
            state_key = self._trans_svc_state(sane["state"])
            stats["services.%s" % (state_key)] += 1

        return stats
445742
def get_connections_stat(
        self, instance, base_url, object_type, vhosts, limit_vhosts, custom_tags, auth=None, ssl_verify=True
    ):
        
        instance_proxy = self.get_instance_proxy(instance, base_url)

        grab_all_data = True

        if self._limit_vhosts(instance):
            grab_all_data = False
            data = []
            for vhost in vhosts:
                url = "vhosts/{}/{}".format(quote_plus(vhost), object_type)
                try:
                    data += self._get_data(
                        urljoin(base_url, url), auth=auth, ssl_verify=ssl_verify, proxies=instance_proxy
                    )
                except Exception as e:
                    # This will happen if there is no connection data to grab
                    self.log.debug("Couldn't grab connection data from vhost, {}: {}".format(vhost, e))

        # sometimes it seems to need to fall back to this
        if grab_all_data or not len(data):
            data = self._get_data(
                urljoin(base_url, object_type), auth=auth, ssl_verify=ssl_verify, proxies=instance_proxy
            )

        stats = {vhost: 0 for vhost in vhosts}
        connection_states = defaultdict(int)
        for conn in data:
            if conn['vhost'] in vhosts:
                stats[conn['vhost']] += 1
                # 'state' does not exist for direct type connections.
                connection_states[conn.get('state', 'direct')] += 1

        for vhost, nb_conn in iteritems(stats):
            self.gauge('rabbitmq.connections', nb_conn, tags=['{}_vhost:{}'.format(TAG_PREFIX, vhost)] + custom_tags)

        for conn_state, nb_conn in iteritems(connection_states):
            self.gauge(
                'rabbitmq.connections.state',
                nb_conn,
                tags=['{}_conn_state:{}'.format(TAG_PREFIX, conn_state)] + custom_tags,
            )