Class BuildStatisticsMetrics
- java.lang.Object
-
- jetbrains.buildServer.serverSide.statistics.impl.BuildStatisticsMetrics
-
public class BuildStatisticsMetrics extends Object
-
-
Constructor Summary
Constructors Constructor Description BuildStatisticsMetrics(SQLRunnerEx sqlRunner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAndStoreMetricId(String valueTypeKey)
Generates metric id for provided value type key and ensures that this metric id is stored in dictionary.Map<String,Long>
getAndStoreMetricIds(Collection<String> valueTypeKeys)
long
getMetricId(String valueTypeKey)
Generates metric id for provided value type key, does not check for presence of this metric id in dictionary.Map<Long,String>
getStoredValueTypeKeys(Collection<Long> metricIds)
-
-
-
Constructor Detail
-
BuildStatisticsMetrics
public BuildStatisticsMetrics(@NotNull SQLRunnerEx sqlRunner)
-
-
Method Detail
-
getAndStoreMetricId
public long getAndStoreMetricId(@NotNull String valueTypeKey)
Generates metric id for provided value type key and ensures that this metric id is stored in dictionary.- Parameters:
valueTypeKey
- value type key for which metric id is generated- Returns:
- generated metric id
-
getAndStoreMetricIds
@NotNull public Map<String,Long> getAndStoreMetricIds(@NotNull Collection<String> valueTypeKeys)
-
getMetricId
public long getMetricId(@NotNull String valueTypeKey)
Generates metric id for provided value type key, does not check for presence of this metric id in dictionary.- Parameters:
valueTypeKey
- value type key for which metric id is generated- Returns:
- see above
-
getStoredValueTypeKeys
@NotNull public Map<Long,String> getStoredValueTypeKeys(@NotNull Collection<Long> metricIds)
-
-