public ScaleAction evaluate(final MetricData metricData, final ScaleRuleDO rule) {
        double value = metricData.value();
        Double max = parseToDouble(rule.getMaximum());
        Double min = parseToDouble(rule.getMinimum());
        if (Objects.nonNull(max) && value > max) {
            return new ScaleAction(ScaleAction.ActionType.SCALE_UP);
        }
        if (Objects.nonNull(min) && value < min) {
            return new ScaleAction(ScaleAction.ActionType.SCALE_DOWN);
        }
        return null;
    }
matches rule.

@param rule rule
@param metricData metricData
@return ScaleAction
shenyu-admin/src/main/java/org/apache/shenyu/admin/scale/scaler/dynamic/ScaleRuleEvaluator.java