public void setAlertHistory(AlertHistoryEntity alertHistory) {
    this.alertHistory = alertHistory;
    historyId = alertHistory.getAlertId();
  }
Sets the associated alert history entry for this alert notice.

@param alertHistory
         the historical event that traiggered this notice's creation (not
         {@code null}).
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertNoticeEntity.java