org.jenkinsci.plugins.jqsmonitoring.failedbuilds
Class FailHistory

java.lang.Object
  extended by org.jenkinsci.plugins.jqsmonitoring.failedbuilds.FailHistory

@ExportedBean
public class FailHistory
extends Object

Author:
yboev

Constructor Summary
FailHistory()
           
 
Method Summary
 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).
 hudson.model.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()
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 hudson.model.Api getApi()

getLastHourFailed

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()

getAverage24Hours

@Exported
public int getAverage24Hours()

getMinimum24Hours

@Exported
public int getMinimum24Hours()

getMaximum24Hours

@Exported
public int getMaximum24Hours()

getTrendIconColor

public String getTrendIconColor()

getTrendIconMessage

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.



Copyright © 2004-2013. All Rights Reserved.