public void setAlertHistory(AlertHistoryEntity alertHistory) {
    this.alertHistory = alertHistory;
    historyId = alertHistory.getAlertId();
    alertDefinition = alertHistory.getAlertDefinition();
    definitionId = alertHistory.getAlertDefinitionId();
    latestText = alertHistory.getAlertText();
  }
Sets the associated {@link AlertHistoryEntity} entry for this current alert
instance. This will update the internal fields of this current alert with
those from the alertHistory.

@param alertHistory
         the most recently received history entry (not {@code null}).
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertCurrentEntity.java