Returns only enabled monitors.
3967
public List<AdapterMonitor> getAdapterMonitors(RuntimeContext context) {
        return getAdapterMonitors().stream().filter(monitor ->
            monitor.isEnabled(context)
        ).collect(Collectors.toList());
    }
694238
def get_disabled():
    '''
    
    '''
    services = []
    for daemon, is_enabled in six.iteritems(_get_rc()):
        if not is_enabled:
            services.append(daemon)
    return sorted(set(get_all()) & set(services))
855171
public static GraphicsDevice[] getScreenDevices()
	{
		final GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
		final GraphicsDevice[] gs = ge.getScreenDevices();
		return gs;
	}
420226
def _get_total_hosts_not_monitored(self):
        
        return sum(1 for h in self.hosts if not h.active_checks_enabled and
                   not h.passive_checks_enabled)
325521
def get_monitor() -> Optional[resource_pb2_grpc.ResourceMonitorStub]:
    
    monitor = SETTINGS.monitor
    if not monitor:
        require_test_mode_enabled()
    return monitor
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;
	}
892359
def clear(self):
        
        self.io.seek(0)
        self.io.truncate()
        for item in self.monitors:
            item[2] = 0
275622
public static base_responses disable(nitro_service client, String monitorname[]) throws Exception {
		base_responses result = null;
		if (monitorname != null && monitorname.length > 0) {
			lbmonitor disableresources[] = new lbmonitor[monitorname.length];
			for (int i=0;i<monitorname.length;i++){
				disableresources[i] = new lbmonitor();
				disableresources[i].monitorname = monitorname[i];
			}
			result = perform_operation_bulk_request(client, disableresources,"disable");
		}
		return result;
	}
372881
async def house_status_monitor_enable(pyvlx):
    """"""
    status_monitor_enable = HouseStatusMonitorEnable(pyvlx=pyvlx)
    await status_monitor_enable.do_api_call()
    if not status_monitor_enable.success:
        raise PyVLXException("Unable enable house status monitor.")
1285804
def iter_monitors(self):
        """"""

        for conn_string, events in self._monitors.items():
            for event, handlers in events.items():
                for handler in handlers:
                    yield (conn_string, event, handler)
1012602
def getMonitors(self, apikey, monitors='none'):
        """"""
        data= 'api_key=' + apikey + '&format=json'
        if monitors != 'none':
            data += '&monitors=' + monitors
        fetchUrl = self.BASE_URL
        fetchUrl += 'getMonitors'
        try:
            monitors = requests.post(fetchUrl,
                headers=self.headers, data=data, timeout=3)
        except:
            return False
        else:
            if monitors:
                return monitors.json()
            else:
                return False
1351519
public Collection<Monitor> list(List<String> queryParams)
    {
        return HTTP.GET("/v3/monitors", null, queryParams, MONITORS).get();
    }
782234
def all_checks_enabled(self):
        ''' '''
        arming_mask = int(self.get_mav_param("ARMING_CHECK",0))
        if arming_mask == 1:
            return True
        for bit in arming_masks.values():
            if not arming_mask & bit and bit != 1:
                return False
        return True
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;
	}
1353590
def get_all():
    '''
    
    '''
    (enabled_services, disabled_services) = _get_service_list(include_enabled=True,
                                                              include_disabled=True)
    enabled_services.update(dict([(s, []) for s in disabled_services]))
    return odict.OrderedDict(enabled_services)
718352
def get_disabled():
    '''
    
    '''
    ret = set()
    for name in _iter_service_names():
        if _service_is_upstart(name):
            if _upstart_is_disabled(name):
                ret.add(name)
        else:
            if _service_is_sysv(name):
                if _sysv_is_disabled(name):
                    ret.add(name)
    return sorted(ret)
1078561
Set<ProbeListener> removeListenersForMonitor(Object monitor) {
        Set<ProbeListener> listeners = null;

        listenersLock.writeLock().lock();
        try {
            listeners = listenersForMonitor.remove(monitor);
            if (listeners == null) {
                listeners = Collections.emptySet();
            } else {
                allRegisteredListeners.removeAll(listeners);
            }
        } finally {
            listenersLock.writeLock().unlock();
        }

        return listeners;
    }