Class FailHistory
java.lang.Object
org.jenkinsci.plugins.jqsmonitoring.failedbuilds.FailHistory
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates a Histogram that shows the number of failed jobs for every hour.intReturns the number of failed builds(enabled + disabled).getApi()intintReturns the number of failed builds that are disabled.intReturns the number of failed builds that are enabled.intintintReturns an icon corresponding to the difference between the current number of failed jobs and that from the last hour.void
-
Constructor Details
-
FailHistory
public FailHistory()
-
-
Method Details
-
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
-
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
-
getAverage24Hours
@Exported public int getAverage24Hours() -
getMinimum24Hours
@Exported public int getMinimum24Hours() -
getMaximum24Hours
@Exported public int getMaximum24Hours() -
getTrendIconColor
-
getTrendIconMessage
-
createHourGraphic1
public void createHourGraphic1()Creates a Histogram that shows the number of failed jobs for every hour. This method is called every hour.
-