jetbrains.buildServer.serverSide
Class StatisticsBuildMetric

java.lang.Object
  extended by jetbrains.buildServer.serverSide.BuildMetric
      extended by jetbrains.buildServer.serverSide.StatisticsBuildMetric
All Implemented Interfaces:
ServerExtension, TeamCityExtension

public class StatisticsBuildMetric
extends BuildMetric

This is a build metric which is based on statistics values published in TeamCity DB.

See Also:
for some available metrics, ValueType, BuildDataStorage

Field Summary
 
Fields inherited from class jetbrains.buildServer.serverSide.BuildMetric
myDescription, myKey
 
Constructor Summary
StatisticsBuildMetric(java.lang.String key, java.lang.String description)
           
 
Method Summary
 java.math.BigDecimal calculateMetric(SBuild build)
          Metric calculator
 
Methods inherited from class jetbrains.buildServer.serverSide.BuildMetric
getDescription, getKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsBuildMetric

public StatisticsBuildMetric(@NotNull
                             java.lang.String key,
                             @NotNull
                             java.lang.String description)
Method Detail

calculateMetric

public java.math.BigDecimal calculateMetric(SBuild build)
Description copied from class: BuildMetric
Metric calculator

Specified by:
calculateMetric in class BuildMetric
Returns:
metric value