@Override
    public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;

      AmsInfo amsInfo = (AmsInfo) o;

      if (interval != amsInfo.interval) return false;
      if (minimumValue != amsInfo.minimumValue) return false;
      if (appId != null ? !appId.equals(amsInfo.appId) : amsInfo.appId != null)
        return false;
      if (compute != null ? !compute.equals(amsInfo.compute) : amsInfo.compute != null)
        return false;
      if (metricList != null ? !metricList.equals(amsInfo.metricList) : amsInfo.metricList != null)
        return false;
      if (value != null ? !value.equals(amsInfo.value) : amsInfo.value != null)
        return false;

      return true;
    }
Represents the {@code ams} element in a Metric alert.
ambari-server/src/main/java/org/apache/ambari/server/state/alert/AmsSource.java