Class FailHistory
- java.lang.Object
-
- org.jenkinsci.plugins.jqsmonitoring.failedbuilds.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 Summary
Constructors Constructor Description FailHistory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createHourGraphic1()
Creates a Histogram that shows the number of failed jobs for every hour.int
getAllFailedJobsCount()
Returns the number of failed builds(enabled + disabled).Api
getApi()
int
getAverage24Hours()
int
getFailedDisabledJobsCount()
Returns the number of failed builds that are disabled.int
getFailedEnabledJobsCount()
Returns the number of failed builds that are enabled.int
getLastHourFailed()
int
getMaximum24Hours()
int
getMinimum24Hours()
Map<Integer,Integer>
getNumberOfFailedJobsLast24Hours()
String
getTrendIcon()
Returns an icon corresponding to the difference between the current number of failed jobs and that from the last hour.String
getTrendIconColor()
String
getTrendIconMessage()
void
updateFailedJobs()
-
-
-
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.
-
-