Use this API to fetch all the lbmonitor resources that are configured on netscaler.
This uses lbmonitor_args which is a way to provide additional arguments while fetching the resources.
486485
public static lbmonitor[] get(nitro_service service, lbmonitor_args args) throws Exception{
		lbmonitor obj = new lbmonitor();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		lbmonitor[] response = (lbmonitor[])obj.get_resources(service, option);
		return response;
	}
765784
public static lbmonitor_binding get(nitro_service service, String monitorname) throws Exception{
		lbmonitor_binding obj = new lbmonitor_binding();
		obj.set_monitorname(monitorname);
		lbmonitor_binding response = (lbmonitor_binding) obj.get_resource(service);
		return response;
	}
606661
def getMonitors(self, response_times=0, logs=0, uptime_ratio=''):
        
        url = self.baseUrl
        url += "getMonitors?apiKey=%s" % (self.apiKey)
        url += "&noJsonCallback=1&format=json"
        # responseTimes - optional (defines if the response time data of each
        # monitor will be returned. Should be set to 1 for getting them. Default
        # is 0)
        if response_times:
            url += "&responseTimes=1"
        # logs - optional (defines if the logs of each monitor will be returned.
        # Should be set to 1 for getting the logs. Default is 0)
        if logs:
            url += '&logs=1'
        # customUptimeRatio - optional (defines the number of days to calculate
        # the uptime ratio(s) for. Ex: customUptimeRatio=7-30-45 to get the
        # uptime ratios for those periods)
        if uptime_ratio:
            url += '&customUptimeRatio=%s' % uptime_ratio

        return self.requestApi(url)
883849
public static lbmonbindings get(nitro_service service, String monitorname) throws Exception{
		lbmonbindings obj = new lbmonbindings();
		obj.set_monitorname(monitorname);
		lbmonbindings response = (lbmonbindings) obj.get_resource(service);
		return response;
	}
433471
public static base_response disable(nitro_service client, lbmonitor resource) throws Exception {
		lbmonitor disableresource = new lbmonitor();
		disableresource.servicename = resource.servicename;
		disableresource.servicegroupname = resource.servicegroupname;
		disableresource.monitorname = resource.monitorname;
		return disableresource.perform_operation(client,"disable");
	}
1304113
public static lbmonitor[] get_filtered(nitro_service service, String filter) throws Exception{
		lbmonitor obj = new lbmonitor();
		options option = new options();
		option.set_filter(filter);
		lbmonitor[] response = (lbmonitor[]) obj.getfiltered(service, option);
		return response;
	}
74980
public static base_response enable(nitro_service client, lbmonitor resource) throws Exception {
		lbmonitor enableresource = new lbmonitor();
		enableresource.servicename = resource.servicename;
		enableresource.servicegroupname = resource.servicegroupname;
		enableresource.monitorname = resource.monitorname;
		return enableresource.perform_operation(client,"enable");
	}
1313152
@Override
	public M getMonitor(L location) {
		M monitor = getMonitorOnce(location);
		// In case monitor was removed from manager, we retry
		if (monitor == null) {
			removeMonitorInformation(location);
			monitor = getMonitorOnce(location);
		}
		return monitor;
	}
215493
public static syslog_snmp[] get(nitro_service client) throws Exception
	{
		syslog_snmp resource = new syslog_snmp();
		resource.validate("get");
		return (syslog_snmp[]) resource.get_resources(client);
	}
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;
	}
1276923
public static nspbr_stats[] get(nitro_service service) throws Exception{
		nspbr_stats obj = new nspbr_stats();
		nspbr_stats[] response = (nspbr_stats[])obj.stat_resources(service);
		return response;
	}
343375
public static lbparameter get(nitro_service service) throws Exception{
		lbparameter obj = new lbparameter();
		lbparameter[] response = (lbparameter[])obj.get_resources(service);
		return response[0];
	}
978824
def fetch(opts):
    
    resources = _load(opts.resources, opts.output_dir)
    if opts.all:
        opts.resource_names = ALL
    reporthook = None if opts.quiet else lambda name: print('Fetching {}...'.format(name))
    if opts.verbose:
        backend.VERBOSE = True
    _fetch(resources, opts.resource_names, opts.mirror_url, opts.force, reporthook)
    return verify(opts)
1367877
public static lbgroup get(nitro_service service, String name) throws Exception{
		lbgroup obj = new lbgroup();
		obj.set_name(name);
		lbgroup response = (lbgroup) obj.get_resource(service);
		return response;
	}
105998
def loadMonitors(self, callback=None, errback=None, **kwargs):
        
        import ns1.monitoring
        monitors_list = self.monitors().list(callback, errback)

        return [ns1.monitoring.Monitor(self.config, m) for m in monitors_list]
137060
public static lbmonitor get(nitro_service service, String monitorname) throws Exception{
		lbmonitor obj = new lbmonitor();
		obj.set_monitorname(monitorname);
		lbmonitor response = (lbmonitor) obj.get_resource(service);
		return response;
	}
1243925
public static base_response delete(nitro_service client, lbmonitor resource) throws Exception {
		lbmonitor deleteresource = new lbmonitor();
		deleteresource.monitorname = resource.monitorname;
		deleteresource.type = resource.type;
		deleteresource.respcode = resource.respcode;
		return deleteresource.delete_resource(client);
	}