Interface QualityGate.Condition

  • Enclosing interface:
    QualityGate

    public static interface QualityGate.Condition
    • Method Detail

      • getMetricKey

        java.lang.String getMetricKey()
        The key of the metric this condition has been evaluated on.

        The Metric for the returned key can be retrieved using a org.sonar.api.measures.MetricFinder instance.

        See Also:
        MetricFinder.findByKey(String)
      • getOperator

        QualityGate.Operator getOperator()
        The operator used to evaluate the error threshold against the value of the measure
      • getErrorThreshold

        java.lang.String getErrorThreshold()
        The threshold value which makes the quality gates status change to QualityGate.EvaluationStatus.ERROR when it's reached.
      • getWarningThreshold

        @Deprecated
        @CheckForNull
        java.lang.String getWarningThreshold()
        Deprecated.
        in 7.6. Implementations should always return null.
      • isOnLeakPeriod

        @Deprecated
        boolean isOnLeakPeriod()
        Deprecated.
        in 7.6. Implementations should always return false. Conditions "on leak period" were removed. Use "New X" conditions instead.
        Whether this condition is defined on the leak period or on an absolute value.