private ResourceInstance createAlertGroupResource(String clusterName,
      Long groupId) {

    Map<Resource.Type, String> mapIds = new HashMap<>();
    mapIds.put(Resource.Type.Cluster, m_clusterName);
    mapIds.put(Resource.Type.AlertGroup,
        null == groupId ? null : groupId.toString());

    return createResource(Resource.Type.AlertGroup, mapIds);
  }
Create a request capturing the group ID and resource type for an alert
group.

@param groupId
         the unique ID of the group to create the query for (not
         {@code null}).
@return the instance of the query.
ambari-server/src/main/java/org/apache/ambari/server/api/services/AlertGroupService.java