private ResourceInstance createResourceInstance(String clusterName,
      Long alertNoticeId) {
    Map<Resource.Type, String> mapIds = new HashMap<>();
    mapIds.put(Resource.Type.Cluster, clusterName);

    if (null != alertNoticeId) {
      mapIds.put(Resource.Type.AlertNotice, alertNoticeId.toString());
    }

    return createResource(Resource.Type.AlertNotice, mapIds);
  }
Create an alert history resource instance

@param clusterName
@return
ambari-server/src/main/java/org/apache/ambari/server/api/services/AlertNoticeService.java