We should figure out how a metric unit can be null and set it to be UNKNOWN in those cases

Sent from my iPhone

> On Oct 22, 2013, at 1:07 PM, Gary Dusbabek <notifications@github.com> wrote:
> 
> In blueflood-elasticsearch/src/main/java/com/rackspacecloud/blueflood/io/ElasticIO.java:
> 
> > +
> > +        if (md.getMetricName() != null) {
> > +            builder.append(" && ");
> > +            builder.append(METRIC_NAME.toString() + ":" + md.getMetricName());
> > +        }
> > +
> > +        for (Map.Entry<String, Object> entry : md.getAnnotation().entrySet()) {
> > +            builder.append(" && ");
> > +            builder.append(entry.getKey() + ":" + entry.getValue());
> > +        }
> > +        return builder.toString();
> > +    }
> > +
> > +    private static Map<String, Object> extractUsefulInformation(Metric metric) {
> > +        Map<String, Object> info = new HashMap<String, Object>();
> > +        info.put(UNIT.toString(), metric.getUnit());
> metric units may be null.
> 
> —
> Reply to this email directly or view it on GitHub.