return globalJSON;
}
protected JSONArray transformDataToJSONArray(MetricData metricData, Set<MetricStat> filterStats)
throws SerializationException {
Points points = metricData.getData();
final JSONArray data = new JSONArray();
final Set<Map.Entry<Long, Points.Point>> dataPoints = points.getPoints().entrySet();
for (Map.Entry<Long, Points.Point> point : dataPoints) {
data.add(toJSON(point.getKey(), point.getValue(), metricData.getUnit(), filterStats));
}
return data;