blueflood-http/src/main/java/com/rackspacecloud/blueflood/inputs/handlers/PreaggregateConversions.java
public static Collection<IMetric> buildMetricsCollection(AggregatedPayload payload) {
        Collection<IMetric> metrics = new ArrayList<IMetric>();
        metrics.addAll(PreaggregateConversions.convertCounters(payload.getTenantId(), payload.getTimestamp(), payload.getFlushIntervalMillis(), payload.getCounters()));
        metrics.addAll(PreaggregateConversions.convertGauges(payload.getTenantId(), payload.getTimestamp(), payload.getGauges()));
        metrics.addAll(PreaggregateConversions.convertSets(payload.getTenantId(), payload.getTimestamp(), payload.getSets()));
        metrics.addAll(PreaggregateConversions.convertTimers(payload.getTenantId(), payload.getTimestamp(), payload.getTimers()));
        return metrics;
    }
public static Collection<IMetric> buildMetricsCollection(AggregatedPayload payload) {
        Collection<IMetric> metrics = new ArrayList<IMetric>();
        metrics.addAll(PreaggregateConversions.convertCounters(payload.getTenantId(), payload.getTimestamp(), payload.getFlushIntervalMillis(), payload.getCounters()));
        metrics.addAll(PreaggregateConversions.convertGauges(payload.getTenantId(), payload.getTimestamp(), payload.getGauges()));
        metrics.addAll(PreaggregateConversions.convertSets(payload.getTenantId(), payload.getTimestamp(), payload.getSets()));
        metrics.addAll(PreaggregateConversions.convertTimers(payload.getTenantId(), payload.getTimestamp(), payload.getTimers()));
        return metrics;
    }
public static Collection < IMetric > buildMetricsCollection ( AggregatedPayload payload ) { Collection < IMetric > metrics = new ArrayList < IMetric > ( ) ; metrics . addAll ( PreaggregateConversions . convertCounters ( payload . getTenantId ( ) , payload . getTimestamp ( ) , payload . getFlushIntervalMillis ( ) , payload . getCounters ( ) ) ) ; metrics . addAll ( PreaggregateConversions . convertGauges ( payload . getTenantId ( ) , payload . getTimestamp ( ) , payload . getGauges ( ) ) ) ; metrics . addAll ( PreaggregateConversions . convertSets ( payload . getTenantId ( ) , payload . getTimestamp ( ) , payload . getSets ( ) ) ) ; metrics . addAll ( PreaggregateConversions . convertTimers ( payload . getTenantId ( ) , payload . getTimestamp ( ) , payload . getTimers ( ) ) ) ; return metrics ; }
type comparisions we use to determine how to serialize a number.
type comparisions we use to determine how to serialize a number .