code: public String threshold(ThresholdCondition condition) {
          String description;
          if (condition.getContext() != null && condition.getContext().get(CONTEXT_PROPERTY_DESCRIPTION) != null) {
              description = condition.getContext().get(CONTEXT_PROPERTY_DESCRIPTION);
          } else {
              description = condition.getDataId();
          }
          switch (condition.getOperator()) {
              case GT:
                  description += " greater than ";
                  break;
              case GTE:
                  description += " greater or equal than ";
                  break;
              case LT:
                  description += " less than ";
                  break;
              case LTE:
                  description += " less or equal than ";
                  break;
              default:
                  throw new IllegalArgumentException(condition.getOperator().name());
          }
          description += decimalFormat.format(condition.getThreshold());
          if (condition.getContext() != null && condition.getContext().get(CONTEXT_PROPERTY_UNIT) != null) {
              description += " " + condition.getContext().get(CONTEXT_PROPERTY_UNIT);
          } else {
              description += " (threshold)";
          }
          return description;
      }
docs: Create a description for an ThresholdCondition object.
  It supports Condition.context properties:
  - "description": Description of the dataId used for this condition, if not present, description will use
  dataId literal
  i.e. "description": "Response Time"
  
  - "unit": Description of the unit used for the threshold, if not present, description will be "threshold"
  i.e. "unit": "milliseconds"
  
  @param condition the condition
  @return a description to be used on email templates