@Before
public void setUp() throws Exception {
super.setUp();
AstyanaxWriter writer = AstyanaxWriter.getInstance();
IncomingMetricMetadataAnalyzer analyzer = new IncomingMetricMetadataAnalyzer(MetadataCache.getInstance());
// insert something every 1m for 24h
for (int i = 0; i < 1440; i++) {
final long curMillis = baseMillis + i * 60000;
final List<Metric> metrics = new ArrayList<Metric>();
final Metric metric = getRandomIntMetric(locators.get(0), curMillis);
final Metric stringMetric = getRandomStringmetric(locators.get(1), curMillis);
metrics.add(metric);
metrics.add(stringMetric);
analyzer.scanMetrics(new ArrayList<IMetric>(metrics));
writer.insertFull(metrics);
}
// generate every level of rollup for the raw data
Granularity g = Granularity.FULL;