@Path("{hostName}/alerts")
  public AlertService getAlertHandler(@PathParam("hostName") String hostName) {
    return new AlertService(m_clusterName, null, hostName);
  }
Get the alerts sub-resource.

@param hostName host name
@return the alerts service
ambari-server/src/main/java/org/apache/ambari/server/api/services/HostService.java