@Produces(MediaType.TEXT_HTML)
public Response aggregateJobs(
@PathParam("metric") String metric,
@PathParam("role") String role) {
MetricType type = getTypeByName(metric);
Function<ITaskConfig, Display> toKey = new Function<ITaskConfig, Display>() {
@Override
public Display apply(ITaskConfig task) {
return new Display(task.getJobName(), null);
}