@@ -0,0 +1,1527 @@
+package io.bootique.metrics.health.check;%0A%0Aimport io.bootique.annotation.BQConfigProperty;%0Aimport io.bootique.value.Percent;%0A%0A/**%0A * @since 0.26%0A */%0Apublic class PercentValueRangeFactory %7B%0A%0A    private Percent min;%0A    private Percent warning;%0A    private Percent critical;%0A    private Percent max;%0A%0A    public PercentValueRangeFactory() %7B%0A        this.min = Percent.ZERO;%0A        this.max = Percent.HUNDRED;%0A    %7D%0A%0A    @BQConfigProperty%0A    public void setMin(Percent min) %7B%0A        this.min = min;%0A    %7D%0A%0A    public Percent getMin() %7B%0A        return min;%0A    %7D%0A%0A    @BQConfigProperty%0A    public void setWarning(Percent warning) %7B%0A        this.warning = warning;%0A    %7D%0A%0A    public Percent getMax() %7B%0A        return max;%0A    %7D%0A%0A    @BQConfigProperty%0A    public void setCritical(Percent critical) %7B%0A        this.critical = critical;%0A    %7D%0A%0A    public Percent getCritical() %7B%0A        return critical;%0A    %7D%0A%0A    @BQConfigProperty%0A    public void setMax(Percent max) %7B%0A        this.max = max;%0A    %7D%0A%0A    public Percent getWarning() %7B%0A        return warning;%0A    %7D%0A%0A    public ValueRange%3CPercent%3E createRange() %7B%0A%0A        ValueRange.Builder%3CPercent%3E builder = ValueRange.builder(Percent.class);%0A%0A        if(min != null) %7B%0A            builder.min(min);%0A        %7D%0A%0A        if(warning != null) %7B%0A            builder.warning(warning);%0A        %7D%0A%0A        if(critical != null) %7B%0A            builder.critical(critical);%0A        %7D%0A%0A        if(max != null) %7B%0A            builder.max(max);%0A        %7D%0A%0A        return builder.build();%0A    %7D%0A%7D%0A

Support for unit of measurement in HealthCheckData #27