public static interface QualityGate.Condition
Modifier and Type | Method and Description |
---|---|
String |
getErrorThreshold()
|
String |
getMetricKey()
The key of the metric this condition has been evaluated on.
|
QualityGate.Operator |
getOperator()
The operator used to evaluate the error and/or warning thresholds against the value of the measure
|
QualityGate.EvaluationStatus |
getStatus()
Evaluation status of this condition
|
String |
getValue()
The value of the measure.
|
String |
getWarningThreshold()
|
boolean |
isOnLeakPeriod()
Whether this condition is defined on the leak period or on an absolute value
|
QualityGate.EvaluationStatus getStatus()
String getMetricKey()
The Metric
for the returned key can be retrieved using a
MetricFinder
instance.
MetricFinder.findByKey(String)
QualityGate.Operator getOperator()
@CheckForNull String getErrorThreshold()
At least one of getErrorThreshold()
and getWarningThreshold()
is guaranteed to be non null
.
getWarningThreshold()
@CheckForNull String getWarningThreshold()
At least one of getErrorThreshold()
and getWarningThreshold()
is guaranteed to be non null
.
getErrorThreshold()
boolean isOnLeakPeriod()
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)
.
IllegalStateException
- if getStatus()
is QualityGate.EvaluationStatus.NO_VALUE
Metric.getType()
Copyright © 2009–2017 SonarSource. All rights reserved.