Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.atlassian.bamboo.build.statistics
Interface StatisticsCollector

All Known Implementing Classes:
  StatisticsCollectorImpl

    public interface StatisticsCollector

Method Summary
`List` | `getAllTestBuildNumbers()` List of all build numbers in list
`float` | `getAverageElapsedBuilds()` Calculates the average number of builds between fixes.
`long` | `getAverageElapsedTime()` Returns the averag etime in milliseconds it takes for builds to be fixed
`int` | `getCreatedInBuild()` what is the first build number in this collection?
`List` | `getFailedBuildNumbers()` List of build numbers which had fails
`List` | `getFailurePeriods()` Get a set of "periods" in which there were failures.
`int` | `getLastRanInBuild()` What is the last number in this collection?
`FailurePeriod` | `getLongestElapsedBuildPeriod()`
`FailurePeriod` | `getLongestElapsedTimePeriod()`
`List` | `getSuccessfulBuildNumbers()` List of build numbers which were successes.
`double` | `getSuccessPercentage()`
`int` | `getTotalFailures()`
`int` | `getTotalNumberOfResults()`
`int` | `getTotalSuccesses()`

Method Detail

### getFailurePeriods

    List 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` of `FailurePeriod`

### getSuccessPercentage

    double getSuccessPercentage()

  Returns:
    percentage of success

### getTotalNumberOfResults

    int getTotalNumberOfResults()

  Returns:
    total number of results in list.

### getTotalFailures

    int getTotalFailures()

  Returns:
    number of failures.

### getTotalSuccesses

    int getTotalSuccesses()

  Returns:
    Number of successes.

### getAllTestBuildNumbers

    List getAllTestBuildNumbers()

  List of all build numbers in list

  Returns:
    `List` of `Integer` representing success. Sorted ASC.

### getSuccessfulBuildNumbers

    List getSuccessfulBuildNumbers()

  List of build numbers which were successes.

  Returns:
    `List` of `Integer` representing success build numbers. Sorted ASC.

### getFailedBuildNumbers

    List getFailedBuildNumbers()

  List of build numbers which had fails

  Returns:
    `List` of `Integer` representing failed build numbers . Sorted ASC.

### 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

    FailurePeriod getLongestElapsedTimePeriod()

  Returns:
    `FailurePeriod` with the longest elapsed time period

### getLongestElapsedBuildPeriod

    FailurePeriod getLongestElapsedBuildPeriod()

  Returns:
    `FailurePeriod` with the longest elapsed builds.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 Atlassian Software Systems. All Rights Reserved.