public void setAlertDefinition(AlertDefinitionEntity alertDefinition) {
    this.alertDefinition = alertDefinition;
    alertDefinitionId = alertDefinition.getDefinitionId();
  }
Sets the associated alert definition for this alert instance.

@param alertDefinition
         the alert definition (not {@code null}).
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertHistoryEntity.java