src/com/newrelic/metrics/publish/binding/Request.java
/**
     * Add metric to the {@code Request} for a given component.
     * All {@link Number} values are converted to {@code floats}.
     * @param component the {@code ComponentData} the metric should be added to
     * @param name the name of the metric
     * @param count the number of things being measured
     * @param value the Number value for the metric
     * @param minValue the minimum Number value for the metric
     * @param maxValue the maximum Number value for the metric
     * @param sumOfSquares the sum of squared values for the metric
     * @return MetricData the newly added metric
     */
Add metric to the  Request for a given component.
All  Number values are converted to  floats.
Add metric to the Request for a given component . All Number values are converted to floats .
public MetricData addMetric(ComponentData component, String name, int count, Number value, Number minValue, Number maxValue, Number sumOfSquares) {
        MetricData metricData = null;
        if (value != null && minValue != null && maxValue != null && sumOfSquares != null) {
            metricData = addMetric(component, new MetricData(name, count, value, minValue, maxValue, sumOfSquares));
        }
        return metricData;
    }
public MetricData addMetric ( ComponentData component , String name , int count , Number value , Number minValue , Number maxValue , Number sumOfSquares ) { MetricData metricData = null ; if ( value != null && minValue != null && maxValue != null && sumOfSquares != null ) { metricData = addMetric ( component , new MetricData ( name , count , value , minValue , maxValue , sumOfSquares ) ) ; } return metricData ; }
Add metric to the {@code Request} for a given component.
Add metric to the { @code Request } for a given component .