public void setAlertStates(Set<AlertState> alertStates) {
    this.alertStates = alertStates;
  }
Sets the alert states that will cause a triggered alert to be sent to this
target. A target may be associated with a group where an alert has changed
state, but if that new state is not of interest to the target, it will not
be sent.

@param alertStates
         the set of alert states or {@code null} or empty to imply all.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertTargetEntity.java