public boolean checkThresholds(Map<PerformanceIndex, Long> dataToCheck) {
    for (Map.Entry<PerformanceIndex, Criteria> indicesAndCriteria : perfIndicesAndCriteria.entrySet()) {
      PerformanceIndex perfIndex = indicesAndCriteria.getKey();
      Criteria criteria = indicesAndCriteria.getValue();
      if (!criteria.meetRequirement(dataToCheck.get(perfIndex))) {
        return false;
      }
    }
    return true;
  }
Check if input data satisfy all thresholds.
@param dataToCheck a map whose key is {@link PerformanceIndex} and value is corresponding measured number.
@return {@code true} if thresholds are satisfied. {@code false} otherwise.
ambry-api/src/main/java/com/github/ambry/commons/Thresholds.java