static RestRequestMetricsGroup getMetricsGroupForGet(FrontendMetrics frontendMetrics,
      RestUtils.SubResource subResource) {
    RestRequestMetricsGroup group = null;
    if (subResource == null || subResource.equals(RestUtils.SubResource.Segment)) {
      group = frontendMetrics.getBlobMetricsGroup;
    } else {
      switch (subResource) {
        case BlobInfo:
          group = frontendMetrics.getBlobInfoMetricsGroup;
          break;
        case UserMetadata:
          group = frontendMetrics.getUserMetadataMetricsGroup;
          break;
        case Replicas:
          group = frontendMetrics.getReplicasMetricsGroup;
          break;
        case BlobChunkIds:
          group = frontendMetrics.getBlobChunkIdsMetricsGroup;
          break;
      }
    }
    return group;
  }
Fetch {@link RestRequestMetricsGroup} for GetRequest based on the {@link RestUtils.SubResource}.
@param frontendMetrics instance of {@link FrontendMetrics} to use
@param subResource {@link RestUtils.SubResource} corresponding to the GetRequest
@return the appropriate {@link RestRequestMetricsGroup} based on the given params
ambry-frontend/src/main/java/com/github/ambry/frontend/FrontendUtils.java