public Set<AlertGroupEntity> getAlertGroups() {
    return Collections.unmodifiableSet(alertGroups);
  }
Gets the alert groups that this alert definition is associated with.

@return the groups, or {@code null} if none.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertDefinitionEntity.java