public abstract class BuildMetric extends java.lang.Object implements ServerExtension
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
myDescription |
protected java.lang.String |
myFormat |
protected java.lang.String |
myKey |
| Constructor and Description |
|---|
BuildMetric(java.lang.String key,
java.lang.String description) |
BuildMetric(java.lang.String key,
java.lang.String description,
java.lang.String format)
Creates new build metric with the specified key, description and format
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.math.BigDecimal |
calculateMetric(SBuild build)
Metric calculator
|
java.lang.String |
getDescription()
Human-readable metric description in lower case
|
java.lang.String |
getFormat()
Metric format used for metric value representation.
|
java.lang.String |
getKey()
Return metric key.
|
@NotNull protected final java.lang.String myKey
@NotNull protected final java.lang.String myDescription
@Nullable protected final java.lang.String myFormat
public BuildMetric(@NotNull
java.lang.String key,
@NotNull
java.lang.String description)
public BuildMetric(@NotNull
java.lang.String key,
@NotNull
java.lang.String description,
@Nullable
java.lang.String format)
key - getKey()description - getDescription()format - getFormat()@NotNull public java.lang.String getKey()
@NotNull public java.lang.String getDescription()
@Nullable public java.lang.String getFormat()
ValueType.getValueFormat()}@Nullable public abstract java.math.BigDecimal calculateMetric(SBuild build)