public static interface QualityGate.Condition
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getErrorThreshold()
The threshold value which makes the quality gates status change to
QualityGate.EvaluationStatus.ERROR when it's reached. |
java.lang.String |
getMetricKey()
The key of the metric this condition has been evaluated on.
|
QualityGate.Operator |
getOperator()
The operator used to evaluate the error threshold against the value of the measure
|
QualityGate.EvaluationStatus |
getStatus()
Evaluation status of this condition
|
java.lang.String |
getValue()
The value of the measure.
|
java.lang.String |
getWarningThreshold()
Deprecated.
in 7.6. Implementations should always return null.
|
boolean |
isOnLeakPeriod()
Deprecated.
in 7.6. Implementations should always return false.
Conditions "on leak period" were removed. Use "New X" conditions instead.
|
QualityGate.EvaluationStatus getStatus()
java.lang.String getMetricKey()
The Metric for the returned key can be retrieved using a
MetricFinder instance.
MetricFinder.findByKey(String)QualityGate.Operator getOperator()
java.lang.String getErrorThreshold()
QualityGate.EvaluationStatus.ERROR when it's reached.@Deprecated @CheckForNull java.lang.String getWarningThreshold()
@Deprecated boolean isOnLeakPeriod()
java.lang.String getValue()
If the type of the metric (which key is provided by getMetricKey()) is numerical, the value can be parsed
using Integer.valueOf(String), Long.valueOf(String) or Double.valueOf(String).
java.lang.IllegalStateException - if getStatus() is QualityGate.EvaluationStatus.NO_VALUEMetric.getType()