List of usage examples for com.amazonaws.metrics RequestMetricCollector NONE
RequestMetricCollector NONE
To view the source code for com.amazonaws.metrics RequestMetricCollector NONE.
Click Source Link
From source file:com.github.lpezet.antiope.metrics.aws.BlockingRequestBuilder.java
License:Open Source License
private PutMetricDataRequest newPutMetricDataRequest(Collection<MetricDatum> pData, final String pNamespace, final Dimension... pExtraDims) { if (pExtraDims != null) { // Need to add some extra dimensions. // To do so, we copy the metric data to avoid mutability problems. Collection<MetricDatum> oNewData = new ArrayList<MetricDatum>(pData.size()); for (MetricDatum md : pData) { MetricDatum oNewMD = cloneMetricDatum(md); for (Dimension dim : pExtraDims) oNewMD.withDimensions(dim); // add the extra dimensions to the new metric datum oNewData.add(oNewMD);//from www . jav a2s . co m } pData = oNewData; } return new PutMetricDataRequest().withNamespace(pNamespace).withMetricData(pData) .withRequestMetricCollector(RequestMetricCollector.NONE); }