Use this API to fetch filtered set of xen_health_monitor resources.
filter string should be in JSON format.eg: "vm_state:DOWN,name:[a-z]+"
485908
public static xen_health_monitor[] get_filtered(nitro_service service, String filter) throws Exception
	{
		xen_health_monitor obj = new xen_health_monitor();
		options option = new options();
		option.set_filter(filter);
		xen_health_monitor[] response = (xen_health_monitor[]) obj.getfiltered(service, option);
		return response;
	}
999307
public static policypatset[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
		policypatset obj = new policypatset();
		options option = new options();
		option.set_filter(filter);
		policypatset[] response = (policypatset[]) obj.getfiltered(service, option);
		return response;
	}
1176435
public static xen_sf_storagecentervpx_image[] get_filtered(nitro_service service, String filter) throws Exception
	{
		xen_sf_storagecentervpx_image obj = new xen_sf_storagecentervpx_image();
		options option = new options();
		option.set_filter(filter);
		xen_sf_storagecentervpx_image[] response = (xen_sf_storagecentervpx_image[]) obj.getfiltered(service, option);
		return response;
	}
519614
public static vm_template[] get_filtered(nitro_service service, String filter) throws Exception
	{
		vm_template obj = new vm_template();
		options option = new options();
		option.set_filter(filter);
		vm_template[] response = (vm_template[]) obj.getfiltered(service, option);
		return response;
	}
113945
public static policydataset[] get_filtered(nitro_service service, String filter) throws Exception{
		policydataset obj = new policydataset();
		options option = new options();
		option.set_filter(filter);
		policydataset[] response = (policydataset[]) obj.getfiltered(service, option);
		return response;
	}
251911
public static ping[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ping obj = new ping();
		options option = new options();
		option.set_filter(filter);
		ping[] response = (ping[]) obj.getfiltered(service, option);
		return response;
	}
367341
def get_resources_vms(call=None, resFilter=None, includeConfig=True):
    '''
    
    '''

    timeoutTime = time.time() + 60
    while True:
        log.debug('Getting resource: vms.. (filter: %s)', resFilter)
        resources = query('get', 'cluster/resources')
        ret = {}
        badResource = False
        for resource in resources:
            if 'type' in resource and resource['type'] in ['openvz', 'qemu',
                                                           'lxc']:
                try:
                    name = resource['name']
                except KeyError:
                    badResource = True
                    log.debug('No name in VM resource %s', repr(resource))
                    break

                ret[name] = resource

                if includeConfig:
                    # Requested to include the detailed configuration of a VM
                    ret[name]['config'] = get_vmconfig(
                        ret[name]['vmid'],
                        ret[name]['node'],
                        ret[name]['type']
                    )

        if time.time() > timeoutTime:
            raise SaltCloudExecutionTimeout('FAILED to get the proxmox '
                                            'resources vms')

        # Carry on if there wasn't a bad resource return from Proxmox
        if not badResource:
            break

        time.sleep(0.5)

    if resFilter is not None:
        log.debug('Filter given: %s, returning requested '
                  'resource: nodes', resFilter)
        return ret[resFilter]

    log.debug('Filter not given: %s, returning all resource: nodes', ret)
    return ret
96900
public static syslog_generic[] get_filtered(nitro_service service, String filter) throws Exception
	{
		syslog_generic obj = new syslog_generic();
		options option = new options();
		option.set_filter(filter);
		syslog_generic[] response = (syslog_generic[]) obj.getfiltered(service, option);
		return response;
	}
681970
public static xen_image[] get_filtered(nitro_service service, String filter) throws Exception
	{
		xen_image obj = new xen_image();
		options option = new options();
		option.set_filter(filter);
		xen_image[] response = (xen_image[]) obj.getfiltered(service, option);
		return response;
	}
137077
public static xen_upgrade[] get_filtered(nitro_service service, String filter) throws Exception
	{
		xen_upgrade obj = new xen_upgrade();
		options option = new options();
		option.set_filter(filter);
		xen_upgrade[] response = (xen_upgrade[]) obj.getfiltered(service, option);
		return response;
	}
3409
public static long count_filtered(nitro_service service, String monitorname, String filter) throws Exception{
		lbmonbindings_service_binding obj = new lbmonbindings_service_binding();
		obj.set_monitorname(monitorname);
		options option = new options();
		option.set_count(true);
		option.set_filter(filter);
		lbmonbindings_service_binding[] response = (lbmonbindings_service_binding[]) obj.getfiltered(service, option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}
371580
public static xen_bluecatvpx_image[] get_filtered(nitro_service service, String filter) throws Exception
	{
		xen_bluecatvpx_image obj = new xen_bluecatvpx_image();
		options option = new options();
		option.set_filter(filter);
		xen_bluecatvpx_image[] response = (xen_bluecatvpx_image[]) obj.getfiltered(service, option);
		return response;
	}
131012
public static xen_health_interface get(nitro_service client, xen_health_interface resource) throws Exception
	{
		resource.validate("get");
		return ((xen_health_interface[]) resource.get_resources(client))[0];
	}
209150
public static xen_hotfix[] get_filtered(nitro_service service, String filter) throws Exception
	{
		xen_hotfix obj = new xen_hotfix();
		options option = new options();
		option.set_filter(filter);
		xen_hotfix[] response = (xen_hotfix[]) obj.getfiltered(service, option);
		return response;
	}
836843
public static policystringmap[] get_filtered(nitro_service service, String filter) throws Exception{
		policystringmap obj = new policystringmap();
		options option = new options();
		option.set_filter(filter);
		policystringmap[] response = (policystringmap[]) obj.getfiltered(service, option);
		return response;
	}
250054
public static service[] get_filtered(nitro_service service, String filter) throws Exception{
		service obj = new service();
		options option = new options();
		option.set_filter(filter);
		service[] response = (service[]) obj.getfiltered(service, option);
		return response;
	}
1165270
public static xen_supplemental_pack[] get_filtered(nitro_service service, String filter) throws Exception
	{
		xen_supplemental_pack obj = new xen_supplemental_pack();
		options option = new options();
		option.set_filter(filter);
		xen_supplemental_pack[] response = (xen_supplemental_pack[]) obj.getfiltered(service, option);
		return response;
	}