code: public final ThresholdsEvaluatorBuilder withLegacyThreshold(final String metric, final String okRange, final String warnRange,
              final String critRange) throws BadThresholdException {
          LegacyRange ok = null, warn = null, crit = null;
  
          if (okRange != null) {
              ok = new LegacyRange(okRange);
          }
          if (warnRange != null) {
              warn = new LegacyRange(warnRange);
          }
          if (critRange != null) {
              crit = new LegacyRange(critRange);
          }
  
          thresholds.addThreshold(new LegacyThreshold(metric, ok, warn, crit));
          return this;
      }
docs: This method allows to specify thresholds using the old format.
  
  @param metric
  The metric for which this threshold must be configured
  @param okRange
  The ok range (can be null)
  @param warnRange
  The warning range (can be null)
  @param critRange
  The critical range (can be null).
  
  @return this
  @throws BadThresholdException If the threshold can't be
  parsed.