@Path("{clusterName}/alerts")
  public AlertService getAlertService(
      @Context jakarta.ws.rs.core.Request request, @PathParam("clusterName") String clusterName) {
    return new AlertService(clusterName, null, null);
  }
Gets the alert definition service

@param request      the request
@param clusterName  the cluster name

@return  the alert definition service
ambari-server/src/main/java/org/apache/ambari/server/api/services/ClusterService.java