@ApiOperation(value = "Get the metric definitions for the compatible group with the passed id")
@ApiError(code = 404, reason = "Group with the passed id does not exist")
public Response getMetricDefinitionsForGroup(@ApiParam(value = "Id of the group") @PathParam("id") int id,
@Context HttpHeaders headers,
@Context UriInfo uriInfo) {
ResourceGroup group = fetchGroup(id, true);
Set<MeasurementDefinition> definitions = group.getResourceType().getMetricDefinitions();
List<MetricSchedule> schedules = new ArrayList<MetricSchedule>(definitions.size());
for (MeasurementDefinition def : definitions) {
MetricSchedule schedule = new MetricSchedule(def.getId(),def.getName(),def.getDisplayName(),false,def.getDefaultInterval(),
def.getUnits().getName(),def.getDataType().toString());
schedule.setDefinitionId(def.getId());