public void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> metrics) throws Exception {
for (MeasurementScheduleRequest req : metrics) {
if (req.getName().equals("users")) {
double count = this.context.getParentResourceComponent().getUserCount(this.getChannel());
MeasurementDataNumeric res = new MeasurementDataNumeric(req, count);
report.addData(res);
} else if (req.getName().equals("messages")) {
report.addData( new MeasurementDataNumeric(req, Double.valueOf(messageCount.get())));
}
}
}