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.