src/com/newrelic/metrics/publish/binding/Request.java
/**
     * Add metric to the {@code Request} for a given component.
     * The {@link Number} value is converted to a {@code float}.
     * The count is assumed to be 1, while minValue and maxValue are set to value.
     * Sum of squares is calculated as the value squared.
     * @param component the {@code ComponentData} the metric should be added to
     * @param name the name of the metric
     * @param value the Number value for the metric
     * @return MetricData the newly added metric
     */
Add metric to the  Request for a given component.
The  Number value is converted to a  float.
The count is assumed to be 1, while minValue and maxValue are set to value.
Sum of squares is calculated as the value squared.
@param component the  ComponentData the metric should be added to
@param name the name of the metric
@param value the Number value for the metric
@return MetricData the newly added metric
Add metric to the Request for a given component . The Number value is converted to a float . The count is assumed to be 1 while minValue and maxValue are set to value . Sum of squares is calculated as the value squared . @param component the ComponentData the metric should be added to @param name the name of the metric @param value the Number value for the metric @return MetricData the newly added metric
public MetricData addMetric(ComponentData component, String name, Number value) {
        MetricData metricData = null;
        if (value != null) {
           metricData = addMetric(component, new MetricData(name, value));
        }
        return metricData;
    }
public MetricData addMetric ( ComponentData component , String name , Number value ) { MetricData metricData = null ; if ( value != null ) { metricData = addMetric ( component , new MetricData ( name , value ) ) ; } return metricData ; }
Add metric to the {@code Request} for a given component.
Add metric to the { @code Request } for a given component .