}
} else if (o instanceof MetricsNonTimeRate) {
MetricsNonTimeRate metric = (MetricsNonTimeRate)o;
return metric.getPreviousIntervalValue();
} else if (o instanceof MetricsRate) {
MetricsRate metric = (MetricsRate)o;
return metric.getPreviousIntervalValue();
} else {
MetricsUtil.LOG.error("unknown metrics type: " + o.getClass().getName());
throw new AttributeNotFoundException();
}
}