Use this API to update lbmonitor.
358907
public static base_response update(nitro_service client, lbmonitor resource) throws Exception {
		lbmonitor updateresource = new lbmonitor();
		updateresource.monitorname = resource.monitorname;
		updateresource.type = resource.type;
		updateresource.action = resource.action;
		updateresource.respcode = resource.respcode;
		updateresource.httprequest = resource.httprequest;
		updateresource.rtsprequest = resource.rtsprequest;
		updateresource.customheaders = resource.customheaders;
		updateresource.maxforwards = resource.maxforwards;
		updateresource.sipmethod = resource.sipmethod;
		updateresource.sipreguri = resource.sipreguri;
		updateresource.sipuri = resource.sipuri;
		updateresource.send = resource.send;
		updateresource.recv = resource.recv;
		updateresource.query = resource.query;
		updateresource.querytype = resource.querytype;
		updateresource.username = resource.username;
		updateresource.password = resource.password;
		updateresource.secondarypassword = resource.secondarypassword;
		updateresource.logonpointname = resource.logonpointname;
		updateresource.lasversion = resource.lasversion;
		updateresource.radkey = resource.radkey;
		updateresource.radnasid = resource.radnasid;
		updateresource.radnasip = resource.radnasip;
		updateresource.radaccounttype = resource.radaccounttype;
		updateresource.radframedip = resource.radframedip;
		updateresource.radapn = resource.radapn;
		updateresource.radmsisdn = resource.radmsisdn;
		updateresource.radaccountsession = resource.radaccountsession;
		updateresource.lrtm = resource.lrtm;
		updateresource.deviation = resource.deviation;
		updateresource.units1 = resource.units1;
		updateresource.scriptname = resource.scriptname;
		updateresource.scriptargs = resource.scriptargs;
		updateresource.validatecred = resource.validatecred;
		updateresource.domain = resource.domain;
		updateresource.dispatcherip = resource.dispatcherip;
		updateresource.dispatcherport = resource.dispatcherport;
		updateresource.interval = resource.interval;
		updateresource.units3 = resource.units3;
		updateresource.resptimeout = resource.resptimeout;
		updateresource.units4 = resource.units4;
		updateresource.resptimeoutthresh = resource.resptimeoutthresh;
		updateresource.retries = resource.retries;
		updateresource.failureretries = resource.failureretries;
		updateresource.alertretries = resource.alertretries;
		updateresource.successretries = resource.successretries;
		updateresource.downtime = resource.downtime;
		updateresource.units2 = resource.units2;
		updateresource.destip = resource.destip;
		updateresource.destport = resource.destport;
		updateresource.state = resource.state;
		updateresource.reverse = resource.reverse;
		updateresource.transparent = resource.transparent;
		updateresource.iptunnel = resource.iptunnel;
		updateresource.tos = resource.tos;
		updateresource.tosid = resource.tosid;
		updateresource.secure = resource.secure;
		updateresource.ipaddress = resource.ipaddress;
		updateresource.group = resource.group;
		updateresource.filename = resource.filename;
		updateresource.basedn = resource.basedn;
		updateresource.binddn = resource.binddn;
		updateresource.filter = resource.filter;
		updateresource.attribute = resource.attribute;
		updateresource.database = resource.database;
		updateresource.sqlquery = resource.sqlquery;
		updateresource.evalrule = resource.evalrule;
		updateresource.Snmpoid = resource.Snmpoid;
		updateresource.snmpcommunity = resource.snmpcommunity;
		updateresource.snmpthreshold = resource.snmpthreshold;
		updateresource.snmpversion = resource.snmpversion;
		updateresource.metrictable = resource.metrictable;
		updateresource.metric = resource.metric;
		updateresource.metricthreshold = resource.metricthreshold;
		updateresource.metricweight = resource.metricweight;
		updateresource.application = resource.application;
		updateresource.sitepath = resource.sitepath;
		updateresource.storename = resource.storename;
		updateresource.storefrontacctservice = resource.storefrontacctservice;
		updateresource.hostname = resource.hostname;
		updateresource.netprofile = resource.netprofile;
		updateresource.mssqlprotocolversion = resource.mssqlprotocolversion;
		updateresource.originhost = resource.originhost;
		updateresource.originrealm = resource.originrealm;
		updateresource.hostipaddress = resource.hostipaddress;
		updateresource.vendorid = resource.vendorid;
		updateresource.productname = resource.productname;
		updateresource.firmwarerevision = resource.firmwarerevision;
		updateresource.authapplicationid = resource.authapplicationid;
		updateresource.acctapplicationid = resource.acctapplicationid;
		updateresource.inbandsecurityid = resource.inbandsecurityid;
		updateresource.supportedvendorids = resource.supportedvendorids;
		updateresource.vendorspecificvendorid = resource.vendorspecificvendorid;
		updateresource.vendorspecificauthapplicationids = resource.vendorspecificauthapplicationids;
		updateresource.vendorspecificacctapplicationids = resource.vendorspecificacctapplicationids;
		updateresource.kcdaccount = resource.kcdaccount;
		return updateresource.update_resource(client);
	}
876432
public static lbmonitor_binding[] get(nitro_service service, String monitorname[]) throws Exception{
		if (monitorname !=null && monitorname.length>0) {
			lbmonitor_binding response[] = new lbmonitor_binding[monitorname.length];
			lbmonitor_binding obj[] = new lbmonitor_binding[monitorname.length];
			for (int i=0;i<monitorname.length;i++) {
				obj[i] = new lbmonitor_binding();
				obj[i].set_monitorname(monitorname[i]);
				response[i] = (lbmonitor_binding) obj[i].get_resource(service);
			}
			return response;
		}
		return null;
	}
32116
def update(self):
        """"""
        # Init new stats
        stats = self.get_init_value()

        if self.input_method == 'local':
            # Update stats using the standard system lib
            stats = self.glancesgrabhddtemp.get()

        else:
            # Update stats using SNMP
            # Not available for the moment
            pass

        # Update the stats
        self.stats = stats

        return self.stats
256757
private synchronized void updateBytesWrittenMeter() {
    if (this.bytesWrittenMeter.isPresent()) {
      try {
        this.bytesWrittenMeter.get().mark(bytesWritten() - this.bytesWrittenMeter.get().getCount());
      } catch (IOException e) {
        log.error("Cannot get bytesWritten for DataWriter, will not update " + this.bytesWrittenMeter.get().toString(),
            e);
      }
    }
  }
150408
public static base_response update(nitro_service client, lbvserver resource) throws Exception {
		lbvserver updateresource = new lbvserver();
		updateresource.name = resource.name;
		updateresource.ipv46 = resource.ipv46;
		updateresource.ippattern = resource.ippattern;
		updateresource.ipmask = resource.ipmask;
		updateresource.weight = resource.weight;
		updateresource.servicename = resource.servicename;
		updateresource.persistencetype = resource.persistencetype;
		updateresource.timeout = resource.timeout;
		updateresource.persistencebackup = resource.persistencebackup;
		updateresource.backuppersistencetimeout = resource.backuppersistencetimeout;
		updateresource.lbmethod = resource.lbmethod;
		updateresource.hashlength = resource.hashlength;
		updateresource.netmask = resource.netmask;
		updateresource.v6netmasklen = resource.v6netmasklen;
		updateresource.rule = resource.rule;
		updateresource.cookiename = resource.cookiename;
		updateresource.resrule = resource.resrule;
		updateresource.persistmask = resource.persistmask;
		updateresource.v6persistmasklen = resource.v6persistmasklen;
		updateresource.pq = resource.pq;
		updateresource.sc = resource.sc;
		updateresource.rtspnat = resource.rtspnat;
		updateresource.m = resource.m;
		updateresource.tosid = resource.tosid;
		updateresource.datalength = resource.datalength;
		updateresource.dataoffset = resource.dataoffset;
		updateresource.sessionless = resource.sessionless;
		updateresource.connfailover = resource.connfailover;
		updateresource.backupvserver = resource.backupvserver;
		updateresource.redirurl = resource.redirurl;
		updateresource.cacheable = resource.cacheable;
		updateresource.clttimeout = resource.clttimeout;
		updateresource.somethod = resource.somethod;
		updateresource.sothreshold = resource.sothreshold;
		updateresource.sopersistence = resource.sopersistence;
		updateresource.sopersistencetimeout = resource.sopersistencetimeout;
		updateresource.healththreshold = resource.healththreshold;
		updateresource.sobackupaction = resource.sobackupaction;
		updateresource.redirectportrewrite = resource.redirectportrewrite;
		updateresource.downstateflush = resource.downstateflush;
		updateresource.insertvserveripport = resource.insertvserveripport;
		updateresource.vipheader = resource.vipheader;
		updateresource.disableprimaryondown = resource.disableprimaryondown;
		updateresource.authenticationhost = resource.authenticationhost;
		updateresource.authentication = resource.authentication;
		updateresource.authn401 = resource.authn401;
		updateresource.authnvsname = resource.authnvsname;
		updateresource.push = resource.push;
		updateresource.pushvserver = resource.pushvserver;
		updateresource.pushlabel = resource.pushlabel;
		updateresource.pushmulticlients = resource.pushmulticlients;
		updateresource.listenpolicy = resource.listenpolicy;
		updateresource.listenpriority = resource.listenpriority;
		updateresource.tcpprofilename = resource.tcpprofilename;
		updateresource.httpprofilename = resource.httpprofilename;
		updateresource.dbprofilename = resource.dbprofilename;
		updateresource.comment = resource.comment;
		updateresource.l2conn = resource.l2conn;
		updateresource.mssqlserverversion = resource.mssqlserverversion;
		updateresource.mysqlprotocolversion = resource.mysqlprotocolversion;
		updateresource.mysqlserverversion = resource.mysqlserverversion;
		updateresource.mysqlcharacterset = resource.mysqlcharacterset;
		updateresource.mysqlservercapabilities = resource.mysqlservercapabilities;
		updateresource.appflowlog = resource.appflowlog;
		updateresource.netprofile = resource.netprofile;
		updateresource.icmpvsrresponse = resource.icmpvsrresponse;
		updateresource.newservicerequest = resource.newservicerequest;
		updateresource.newservicerequestunit = resource.newservicerequestunit;
		updateresource.newservicerequestincrementinterval = resource.newservicerequestincrementinterval;
		updateresource.minautoscalemembers = resource.minautoscalemembers;
		updateresource.maxautoscalemembers = resource.maxautoscalemembers;
		updateresource.persistavpno = resource.persistavpno;
		updateresource.skippersistency = resource.skippersistency;
		updateresource.authnprofile = resource.authnprofile;
		updateresource.macmoderetainvlan = resource.macmoderetainvlan;
		updateresource.dbslb = resource.dbslb;
		updateresource.dns64 = resource.dns64;
		updateresource.bypassaaaa = resource.bypassaaaa;
		updateresource.recursionavailable = resource.recursionavailable;
		return updateresource.update_resource(client);
	}
137801
def update(self):
        """"""
        # Init new stats
        stats = self.get_init_value()

        if self.input_method == 'local':
            for k, v in iteritems(self.glances_amps.update()):
                stats.append({'key': k,
                              'name': v.NAME,
                              'result': v.result(),
                              'refresh': v.refresh(),
                              'timer': v.time_until_refresh(),
                              'count': v.count(),
                              'countmin': v.count_min(),
                              'countmax': v.count_max()})
        else:
            # Not available in SNMP mode
            pass

        # Update the stats
        self.stats = stats

        return self.stats
212089
async def update(self):
        """"""
        status_data = await self._request('/status.json?show_avail=1')

        if status_data:
            self.status_data = status_data

            sensor_data = await self._request('/sensors.json')
            if sensor_data:
                self.sensor_data = sensor_data
739451
def update(self, **kwargs):
        """"""
        if 'monitor' in kwargs:
            value = self._format_monitor_parameter(kwargs['monitor'])
            kwargs['monitor'] = value
        elif 'monitor' in self.__dict__:
            value = self._format_monitor_parameter(self.__dict__['monitor'])
            self.__dict__['monitor'] = value
        return super(Pool, self)._update(**kwargs)
1133755
def modify(self, monitor_id, options):
        """"""
        if not self._state:
            raise InvalidState("State was not properly obtained from the app")
        monitors = self.list()  # Get the latest set of monitors
        obj = None
        for monitor in monitors:
            if monitor_id != monitor['monitor_id']:
                continue
            obj = monitor
        if not monitor_id:
            raise MonitorNotFound("No monitor was found with that term.")
        options['action'] = 'MODIFY'
        options.update(obj)
        payload = self._build_payload(obj['term'], options)
        url = self.ALERTS_MODIFY_URL.format(requestX=self._state[3])
        self._log.debug("Modifying alert using: %s" % url)
        params = json.dumps(payload, separators=(',', ':'))
        data = {'params': params}
        response = self._session.post(url, data=data, headers=self.HEADERS)
        if response.status_code != 200:
            raise ActionError("Failed to create monitor: %s"
                              % response.content)
        return self.list()
380884
def update(self):
        """"""
        _LOGGER.debug("Querying the device..")
        time = datetime.now()
        value = struct.pack('BBBBBBB', PROP_INFO_QUERY,
                            time.year % 100, time.month, time.day,
                            time.hour, time.minute, time.second)

        self._conn.make_request(PROP_WRITE_HANDLE, value)
160163
protected void update() {
		_updated = true;
		if (System.currentTimeMillis() > _lastDumpTime + _interval) {
			try {
				dump();
			} catch (InvocationException ex) {
				// Todo: decide what to do
			}
		}
	}
711420
def run(self):
    """"""
    while True:
      try:
        self._poll_for_update()
      except RuntimeError as error:
        # Note that because logging triggers a call to notify_update(), by
        # logging a message, we automatically retry publishing the update
        # after an error occurs.
        if error.message == 'dictionary changed size during iteration':
          # These errors occur occasionally and it is infeasible to get rid of
          # them entirely unless data.convert_to_base_types() is made
          # thread-safe. Ignore the error and retry quickly.
          _LOG.debug('Ignoring (probably harmless) error in station watcher: '
                     '`dictionary changed size during iteration`.')
          time.sleep(0.1)
        else:
          _LOG.exception('Error in station watcher: %s', error)
          time.sleep(1)
      except Exception as error:  # pylint: disable=broad-except
        _LOG.exception('Error in station watcher: %s', error)
        time.sleep(1)
166380
def update(self, pbar):
        """"""

        if pbar.seconds_elapsed < 2e-6 or pbar.currval < 2e-6: # =~ 0
            scaled = power = 0
        else:
            speed = pbar.currval / pbar.seconds_elapsed
            power = int(math.log(speed, 1000))
            scaled = speed / 1000.**power

        return self.FORMAT % (scaled, self.PREFIXES[power], self.unit)
1238064
void updateFileMonitor(Collection<String> filesToMonitor) {
        if (monitoredFiles.equals(filesToMonitor)) {
            return;
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "Updating FileMonitor with a new set of files to monitor: " + filesToMonitor);
        }

        monitoredFiles = filesToMonitor;

        Hashtable<String, Object> properties = getFileMonitorProperties();
        serviceRegistration.setProperties(properties);
    }
20825
void updateFileMonitor(Long monitorInterval, String fileMonitorType) {
        if (this.monitorInterval.equals(monitorInterval) && this.monitorType.equals(fileMonitorType)) {
            return;
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "Updating FileMonitor with a new monitoring interval: " + monitorInterval + " and type: " + fileMonitorType);
        }

        this.monitorInterval = monitorInterval;
        this.monitorType = fileMonitorType;

        Hashtable<String, Object> properties = getFileMonitorProperties();
        serviceRegistration.setProperties(properties);
    }
233312
def update_loadbalancer(self, lbaas_loadbalancer, body=None):
        """"""
        return self.put(self.lbaas_loadbalancer_path % (lbaas_loadbalancer),
                        body=body)
754130
public static base_responses update(nitro_service client, lbvserver resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			lbvserver updateresources[] = new lbvserver[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new lbvserver();
				updateresources[i].name = resources[i].name;
				updateresources[i].ipv46 = resources[i].ipv46;
				updateresources[i].ippattern = resources[i].ippattern;
				updateresources[i].ipmask = resources[i].ipmask;
				updateresources[i].weight = resources[i].weight;
				updateresources[i].servicename = resources[i].servicename;
				updateresources[i].persistencetype = resources[i].persistencetype;
				updateresources[i].timeout = resources[i].timeout;
				updateresources[i].persistencebackup = resources[i].persistencebackup;
				updateresources[i].backuppersistencetimeout = resources[i].backuppersistencetimeout;
				updateresources[i].lbmethod = resources[i].lbmethod;
				updateresources[i].hashlength = resources[i].hashlength;
				updateresources[i].netmask = resources[i].netmask;
				updateresources[i].v6netmasklen = resources[i].v6netmasklen;
				updateresources[i].rule = resources[i].rule;
				updateresources[i].cookiename = resources[i].cookiename;
				updateresources[i].resrule = resources[i].resrule;
				updateresources[i].persistmask = resources[i].persistmask;
				updateresources[i].v6persistmasklen = resources[i].v6persistmasklen;
				updateresources[i].pq = resources[i].pq;
				updateresources[i].sc = resources[i].sc;
				updateresources[i].rtspnat = resources[i].rtspnat;
				updateresources[i].m = resources[i].m;
				updateresources[i].tosid = resources[i].tosid;
				updateresources[i].datalength = resources[i].datalength;
				updateresources[i].dataoffset = resources[i].dataoffset;
				updateresources[i].sessionless = resources[i].sessionless;
				updateresources[i].connfailover = resources[i].connfailover;
				updateresources[i].backupvserver = resources[i].backupvserver;
				updateresources[i].redirurl = resources[i].redirurl;
				updateresources[i].cacheable = resources[i].cacheable;
				updateresources[i].clttimeout = resources[i].clttimeout;
				updateresources[i].somethod = resources[i].somethod;
				updateresources[i].sothreshold = resources[i].sothreshold;
				updateresources[i].sopersistence = resources[i].sopersistence;
				updateresources[i].sopersistencetimeout = resources[i].sopersistencetimeout;
				updateresources[i].healththreshold = resources[i].healththreshold;
				updateresources[i].sobackupaction = resources[i].sobackupaction;
				updateresources[i].redirectportrewrite = resources[i].redirectportrewrite;
				updateresources[i].downstateflush = resources[i].downstateflush;
				updateresources[i].insertvserveripport = resources[i].insertvserveripport;
				updateresources[i].vipheader = resources[i].vipheader;
				updateresources[i].disableprimaryondown = resources[i].disableprimaryondown;
				updateresources[i].authenticationhost = resources[i].authenticationhost;
				updateresources[i].authentication = resources[i].authentication;
				updateresources[i].authn401 = resources[i].authn401;
				updateresources[i].authnvsname = resources[i].authnvsname;
				updateresources[i].push = resources[i].push;
				updateresources[i].pushvserver = resources[i].pushvserver;
				updateresources[i].pushlabel = resources[i].pushlabel;
				updateresources[i].pushmulticlients = resources[i].pushmulticlients;
				updateresources[i].listenpolicy = resources[i].listenpolicy;
				updateresources[i].listenpriority = resources[i].listenpriority;
				updateresources[i].tcpprofilename = resources[i].tcpprofilename;
				updateresources[i].httpprofilename = resources[i].httpprofilename;
				updateresources[i].dbprofilename = resources[i].dbprofilename;
				updateresources[i].comment = resources[i].comment;
				updateresources[i].l2conn = resources[i].l2conn;
				updateresources[i].mssqlserverversion = resources[i].mssqlserverversion;
				updateresources[i].mysqlprotocolversion = resources[i].mysqlprotocolversion;
				updateresources[i].mysqlserverversion = resources[i].mysqlserverversion;
				updateresources[i].mysqlcharacterset = resources[i].mysqlcharacterset;
				updateresources[i].mysqlservercapabilities = resources[i].mysqlservercapabilities;
				updateresources[i].appflowlog = resources[i].appflowlog;
				updateresources[i].netprofile = resources[i].netprofile;
				updateresources[i].icmpvsrresponse = resources[i].icmpvsrresponse;
				updateresources[i].newservicerequest = resources[i].newservicerequest;
				updateresources[i].newservicerequestunit = resources[i].newservicerequestunit;
				updateresources[i].newservicerequestincrementinterval = resources[i].newservicerequestincrementinterval;
				updateresources[i].minautoscalemembers = resources[i].minautoscalemembers;
				updateresources[i].maxautoscalemembers = resources[i].maxautoscalemembers;
				updateresources[i].persistavpno = resources[i].persistavpno;
				updateresources[i].skippersistency = resources[i].skippersistency;
				updateresources[i].authnprofile = resources[i].authnprofile;
				updateresources[i].macmoderetainvlan = resources[i].macmoderetainvlan;
				updateresources[i].dbslb = resources[i].dbslb;
				updateresources[i].dns64 = resources[i].dns64;
				updateresources[i].bypassaaaa = resources[i].bypassaaaa;
				updateresources[i].recursionavailable = resources[i].recursionavailable;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}