@Path("{clusterName}/rolling_upgrades_check")
  public PreUpgradeCheckService getPreUpgradeCheckService(@Context jakarta.ws.rs.core.Request request, @PathParam("clusterName") String clusterName) {
    return new PreUpgradeCheckService(clusterName);
  }
Gets the pre-upgrade checks service.

@param request the request
@param clusterName the cluster name

@return the pre-upgrade checks service.
ambari-server/src/main/java/org/apache/ambari/server/api/services/ClusterService.java