public RestRequestMetrics getRestRequestMetrics(boolean sslUsed, boolean encrypted) {
    if (encrypted && encryptedMetricsEnabled) {
      return sslUsed ? sslEncryptedMetrics : nonSslEncryptedMetrics;
    } else {
      return sslUsed ? sslUnencryptedMetrics : nonSslUnencryptedMetrics;
    }
  }
Fetches the appropriate {@link RestRequestMetrics} based on the params

@param sslUsed   {@code true} if the request is sent over ssl. {@code false} otherwise
@param encrypted {@code true} if the blob is encrypted. {@code false} otherwise
@return the appropriate {@link RestRequestMetrics} based on the params
ambry-frontend/src/main/java/com/github/ambry/frontend/RestRequestMetricsGroup.java