Interface StatisticsCollector
-
- All Superinterfaces:
SuccessPercentageStatisticsBean
- All Known Implementing Classes:
StatisticsCollectorImpl
public interface StatisticsCollector extends SuccessPercentageStatisticsBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Integer>
getAllTestBuildNumbers()
List of all build numbers in listfloat
getAverageElapsedBuilds()
Calculates the average number of builds between fixes.long
getAverageElapsedTime()
Returns the averag etime in milliseconds it takes for builds to be fixedint
getCreatedInBuild()
what is the first build number in this collection?List<Integer>
getFailedBuildNumbers()
List of build numbers which had failsList<FailurePeriod>
getFailurePeriods()
Get a set of "periods" in which there were failures.int
getLastRanInBuild()
What is the last number in this collection?FailurePeriod
getLongestElapsedBuildPeriod()
@Nullable FailurePeriod
getLongestElapsedTimePeriod()
List<Integer>
getSuccessfulBuildNumbers()
List of build numbers which were successes.-
Methods inherited from interface com.atlassian.bamboo.build.statistics.SuccessPercentageStatisticsBean
getSuccessPercentage, getTotalFailures, getTotalNumberOfResults, getTotalSuccesses
-
-
-
-
Method Detail
-
getFailurePeriods
List<FailurePeriod> getFailurePeriods()
Get a set of "periods" in which there were failures. A failure "period" is one in which there are continuous failures by build number.- Returns:
List
ofFailurePeriod
-
getSuccessfulBuildNumbers
List<Integer> getSuccessfulBuildNumbers()
List of build numbers which were successes.
-
getCreatedInBuild
int getCreatedInBuild()
what is the first build number in this collection?- Returns:
- first build number;
-
getLastRanInBuild
int getLastRanInBuild()
What is the last number in this collection?- Returns:
- last build number
-
getAverageElapsedTime
long getAverageElapsedTime()
Returns the averag etime in milliseconds it takes for builds to be fixed- Returns:
- time in milliseconds
-
getAverageElapsedBuilds
float getAverageElapsedBuilds()
Calculates the average number of builds between fixes.- Returns:
- approximate number of builds elapsed before a fix
-
getLongestElapsedTimePeriod
@Nullable @Nullable FailurePeriod getLongestElapsedTimePeriod()
- Returns:
FailurePeriod
with the longest elapsed time period
-
getLongestElapsedBuildPeriod
FailurePeriod getLongestElapsedBuildPeriod()
- Returns:
FailurePeriod
with the longest elapsed builds.
-
-