setHealthData(metricsx, metricsy);
task.run();
for (int j = 0; j < 10; j++) {
Thread.sleep(100);
history = helixDataAccessor.getProperty(keyBuilder.alertHistory()).getRecord();
recordMap = new TreeMap<String, Map<String, String>>();
recordMap.putAll( history.getMapFields());
lastRecord = recordMap.lastEntry().getValue();
if (history.getMapFields().size() == 30 && lastRecord.size() == 10)