Class FailHistory


  • @ExportedBean
    public class FailHistory
    extends Object
    TODO remove magic numbers! This class implements the information about failed builds. Keeps track of the number of failed builds for the last 48 hours and shows the last 24 in a histogram.
    Author:
    yboev
    • Constructor Detail

      • FailHistory

        public FailHistory()
    • Method Detail

      • getTrendIcon

        public String getTrendIcon()
        Returns an icon corresponding to the difference between the current number of failed jobs and that from the last hour.
        Returns:
        the icon's ulr as string
      • getApi

        public Api getApi()
      • getLastHourFailed

        @Exported
        public int getLastHourFailed()
      • getAllFailedJobsCount

        @Exported
        public int getAllFailedJobsCount()
        Returns the number of failed builds(enabled + disabled).
        Returns:
        the number of failed builds.
      • getFailedDisabledJobsCount

        @Exported
        public int getFailedDisabledJobsCount()
        Returns the number of failed builds that are disabled.
        Returns:
        the number of disabled failed builds.
      • getFailedEnabledJobsCount

        @Exported
        public int getFailedEnabledJobsCount()
        Returns the number of failed builds that are enabled.
        Returns:
        the number of enabled failed.
      • updateFailedJobs

        public void updateFailedJobs()
      • getNumberOfFailedJobsLast24Hours

        @Exported
        public Map<Integer,​Integer> getNumberOfFailedJobsLast24Hours()
      • getAverage24Hours

        @Exported
        public int getAverage24Hours()
      • getMinimum24Hours

        @Exported
        public int getMinimum24Hours()
      • getMaximum24Hours

        @Exported
        public int getMaximum24Hours()
      • getTrendIconColor

        public String getTrendIconColor()
      • getTrendIconMessage

        @Exported
        public String getTrendIconMessage()
      • createHourGraphic1

        public void createHourGraphic1()
        Creates a Histogram that shows the number of failed jobs for every hour. This method is called every hour.