src/com/newrelic/metrics/publish/Agent.java
/**
     * Report a metric with a name, unit(s), count, value, minValue, maxValue and sumOfSquares.
     * All {@link Number} values are converted to {@code floats}.
     * If any of the values are {@code null}, the reporting is skipped.
     * @param metricName the name of the metric
     * @param units the units to report
     * @param count the number of things being measured
     * @param value the Number value to report
     * @param minValue the minimum Number value to report
     * @param maxValue the maximum Number value to report
     * @param sumOfSquares the sum of squared values to report
     */
Report a metric with a name, unit(s), count, value, minValue, maxValue and sumOfSquares.
All  Number values are converted to  floats.
If any of the values are  null, the reporting is skipped.
Report a metric with a name unit ( s ) count value minValue maxValue and sumOfSquares . All Number values are converted to floats . If any of the values are null the reporting is skipped .
public void reportMetric(String metricName, String units, int count, Number value, Number minValue, Number maxValue, Number sumOfSquares) {
        if (value != null && minValue != null && maxValue != null && sumOfSquares != null) {
            logger.debug(REPORTING_METRIC_MSG, metricName);
            collector.addData(metricName, units, count, value, minValue, maxValue, sumOfSquares);
        }
    }
public void reportMetric ( String metricName , String units , int count , Number value , Number minValue , Number maxValue , Number sumOfSquares ) { if ( value != null && minValue != null && maxValue != null && sumOfSquares != null ) { logger . debug ( REPORTING_METRIC_MSG , metricName ) ; collector . addData ( metricName , units , count , value , minValue , maxValue , sumOfSquares ) ; } }
Report a metric with a name, unit(s), count, value, minValue, maxValue and sumOfSquares.
Report a metric with a name unit ( s ) count value minValue maxValue and sumOfSquares .