@Path("{serviceName}/alert_history")
  // TODO: find a way to handle this with Swagger (refactor or custom annotation?)
  public AlertHistoryService getAlertHistoryService(
      @Context jakarta.ws.rs.core.Request request,
      @PathParam("serviceName") String serviceName) {

    return new AlertHistoryService(m_clusterName, serviceName, null);
  }
Gets the alert history service

@param request
         the request
@param serviceName
         the service name

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