@Override
    public int hashCode() {
      int result = metricList != null ? metricList.hashCode() : 0;
      result = 31 * result + (value != null ? value.hashCode() : 0);
      result = 31 * result + interval;
      result = 31 * result + (compute != null ? compute.hashCode() : 0);
      result = 31 * result + (appId != null ? appId.hashCode() : 0);
      result = 31 * result + minimumValue;
      return result;
    }
Represents the {@code ams} element in a Metric alert.
ambari-server/src/main/java/org/apache/ambari/server/state/alert/AmsSource.java