Use this API to add lbmetrictable resources.
518745
public static base_responses add(nitro_service client, lbmetrictable resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			lbmetrictable addresources[] = new lbmetrictable[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new lbmetrictable();
				addresources[i].metrictable = resources[i].metrictable;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
349147
public static lbmetrictable_metric_binding[] get_filtered(nitro_service service, String metrictable, String filter) throws Exception{
		lbmetrictable_metric_binding obj = new lbmetrictable_metric_binding();
		obj.set_metrictable(metrictable);
		options option = new options();
		option.set_filter(filter);
		lbmetrictable_metric_binding[] response = (lbmetrictable_metric_binding[]) obj.getfiltered(service, option);
		return response;
	}
432257
public static base_responses update(nitro_service client, lbmetrictable resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			lbmetrictable updateresources[] = new lbmetrictable[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new lbmetrictable();
				updateresources[i].metrictable = resources[i].metrictable;
				updateresources[i].metric = resources[i].metric;
				updateresources[i].Snmpoid = resources[i].Snmpoid;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
521785
public void addAllLeftRowsToRightTable()
	{
		rightTable.getGenericTableModel().addList(leftTable.getGenericTableModel().getData());
		leftTable.getGenericTableModel().clear();
	}
745023
public void addMetricException(TopologyMaster.PublishMetrics metrics) {
    synchronized (CacheCore.class) {
      for (TopologyMaster.MetricDatum metricDatum : metrics.getMetricsList()) {
        addMetric(metricDatum);
      }
      for (TopologyMaster.TmasterExceptionLog exceptionLog : metrics.getExceptionsList()) {
        addException(exceptionLog);
      }
    }
  }
138941
public void addMetric(Metric metric)
    {
        if(this.metrics == null)
            this.metrics = new ArrayList<Metric>();
        this.metrics.add(metric);
    }
1096491
protected void addLineageSourceInfo(List<WorkUnit> workUnits, State state) {
    workUnits.forEach(workUnit -> {
      if (workUnit instanceof MultiWorkUnit) {
        ((MultiWorkUnit) workUnit).getWorkUnits().forEach((wu -> addLineageSourceInfo(wu, state)));
      } else {
        addLineageSourceInfo(workUnit, state);
      }
    });
  }
7906
@SuppressWarnings("unchecked")
    private void expandTable() {
        int newCapacity = currentCapacity + increment;
        if (newCapacity < currentCapacity) {
            throw new IllegalStateException(
                            "Attempt to expand LookupTable beyond maximum capacity");
        }
        E[] theNewArray = (E[]) new Object[newCapacity];
        System.arraycopy(this.theElementArray, 0, theNewArray, 0, currentCapacity);
        theElementArray = theNewArray;
        currentCapacity = newCapacity;
    }
1260834
async def AddPendingResources(self, addcharmwithauthorization, entity, resources):
        '''
        
        '''
        # map input types to rpc msg
        _params = dict()
        msg = dict(type='Resources',
                   request='AddPendingResources',
                   version=1,
                   params=_params)
        _params['AddCharmWithAuthorization'] = addcharmwithauthorization
        _params['Entity'] = entity
        _params['Resources'] = resources
        reply = await self.rpc(msg)
        return reply
1291394
public void addSource(ISource source) {
		if (sourceList == null) {
			sourceList = new ArrayList<ISource>();
		}
		sourceList.add(source);
	}
905924
private void addMetrics(List<MetricDatum> list,
            MetricValues metricValues,
            StandardUnit unit) {
        List<MachineMetric> machineMetrics = metricValues.getMetrics();
        List<Long> values = metricValues.getValues();
        for (int i=0; i < machineMetrics.size(); i++) {
            MachineMetric metric = machineMetrics.get(i);
            long val = values.get(i).longValue();
            // skip zero values in some cases
            if (val != 0 || metric.includeZeroValue()) {
                MetricDatum datum = new MetricDatum()
                    .withMetricName(metric.getMetricName())
                    .withDimensions(
                        new Dimension()
                        .withName(metric.getDimensionName())
                        .withValue(metric.name()))
                    .withUnit(unit)
                    .withValue((double) val)
                    ;
                list.add(datum);
            }
        }
    }
1957
public void add(final String metricsName, final MetricsBase theMetricsObj) {
    if (metricsList.putIfAbsent(metricsName, theMetricsObj) != null) {
      throw new IllegalArgumentException("Duplicate metricsName:" + metricsName);
    }
  }
736507
public static lbmetrictable_metric_binding[] get(nitro_service service, String metrictable) throws Exception{
		lbmetrictable_metric_binding obj = new lbmetrictable_metric_binding();
		obj.set_metrictable(metrictable);
		lbmetrictable_metric_binding response[] = (lbmetrictable_metric_binding[]) obj.get_resources(service);
		return response;
	}
1372030
def add(self, *resources):
        
        self.doapi_manager.request(self.url + '/resources', method='POST',
                                   data={"resources": _to_taggable(resources)})
478819
public static lbmetrictable[] get(nitro_service service, String metrictable[]) throws Exception{
		if (metrictable !=null && metrictable.length>0) {
			lbmetrictable response[] = new lbmetrictable[metrictable.length];
			lbmetrictable obj[] = new lbmetrictable[metrictable.length];
			for (int i=0;i<metrictable.length;i++) {
				obj[i] = new lbmetrictable();
				obj[i].set_metrictable(metrictable[i]);
				response[i] = (lbmetrictable) obj[i].get_resource(service);
			}
			return response;
		}
		return null;
	}
215327
async def AddMetricBatches(self, batches):
        '''
        
        '''
        # map input types to rpc msg
        _params = dict()
        msg = dict(type='MetricsAdder',
                   request='AddMetricBatches',
                   version=2,
                   params=_params)
        _params['batches'] = batches
        reply = await self.rpc(msg)
        return reply
996270
private void addSinkTasks() {
    Runnable sinkTasks = new Runnable() {
      @Override
      public void run() {
        while (!metricsInSinkQueue.isEmpty()) {
          metricsSink.processRecord(metricsInSinkQueue.poll());
        }
      }
    };

    slaveLooper.addTasksOnWakeup(sinkTasks);
  }