Class DeploymentTrendsWidget
- java.lang.Object
-
- com.xebialabs.deployit.core.rest.api.reports.TaskArchiveReport
-
- com.xebialabs.deployit.core.rest.api.reports.widgets.DeploymentTrendsWidget
-
- All Implemented Interfaces:
Widget
public class DeploymentTrendsWidget extends TaskArchiveReport
Throughput widget
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringMONTHprotected static java.lang.StringNUMBER_ABORTED_DEPLOYMENTSprotected static java.lang.StringNUMBER_FAILED_DEPLOYMENTSprotected static java.lang.StringNUMBER_ROLLBACK_DEPLOYMENTSprotected static java.lang.StringNUMBER_SUCCESSFUL_DEPLOYMENTSprotected static java.lang.StringPERCENTAGE_ABORTED_DEPLOYMENTSprotected static java.lang.StringPERCENTAGE_FAILED_DEPLOYMENTSprotected static java.lang.StringPERCENTAGE_ROLLBACK_DEPLOYMENTSprotected static intTOP_Nstatic java.lang.StringZERO-
Fields inherited from class com.xebialabs.deployit.core.rest.api.reports.TaskArchiveReport
taskArchive
-
-
Constructor Summary
Constructors Constructor Description DeploymentTrendsWidget(com.xebialabs.deployit.task.archive.TaskArchive taskArchive)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.lang.StringformatToHours(long millis)protected static java.lang.StringformatToMins(long millis)protected static java.lang.StringformatToSecs(long millis)protected static java.lang.StringgetFormattedMonth(int monthOfYear)protected static java.lang.StringgetFormattedPercentage(double numOfTasksInAState, double totalTasks)protected static doublegetPercentage(double numOfTasksInAState, double totalTasks)ai.digital.deploy.sql.model.ReportgetReport(org.joda.time.DateTime begin, org.joda.time.DateTime end)-
Methods inherited from class com.xebialabs.deployit.core.rest.api.reports.TaskArchiveReport
cloneSearchParameters, getSearchParameters, getValue
-
-
-
-
Field Detail
-
TOP_N
protected static final int TOP_N
- See Also:
- Constant Field Values
-
NUMBER_SUCCESSFUL_DEPLOYMENTS
protected static final java.lang.String NUMBER_SUCCESSFUL_DEPLOYMENTS
- See Also:
- Constant Field Values
-
NUMBER_ABORTED_DEPLOYMENTS
protected static final java.lang.String NUMBER_ABORTED_DEPLOYMENTS
- See Also:
- Constant Field Values
-
NUMBER_FAILED_DEPLOYMENTS
protected static final java.lang.String NUMBER_FAILED_DEPLOYMENTS
- See Also:
- Constant Field Values
-
NUMBER_ROLLBACK_DEPLOYMENTS
protected static final java.lang.String NUMBER_ROLLBACK_DEPLOYMENTS
- See Also:
- Constant Field Values
-
PERCENTAGE_ABORTED_DEPLOYMENTS
protected static final java.lang.String PERCENTAGE_ABORTED_DEPLOYMENTS
- See Also:
- Constant Field Values
-
PERCENTAGE_FAILED_DEPLOYMENTS
protected static final java.lang.String PERCENTAGE_FAILED_DEPLOYMENTS
- See Also:
- Constant Field Values
-
PERCENTAGE_ROLLBACK_DEPLOYMENTS
protected static final java.lang.String PERCENTAGE_ROLLBACK_DEPLOYMENTS
- See Also:
- Constant Field Values
-
MONTH
protected static final java.lang.String MONTH
- See Also:
- Constant Field Values
-
ZERO
public static final java.lang.String ZERO
-
-
Method Detail
-
getReport
public final ai.digital.deploy.sql.model.Report getReport(org.joda.time.DateTime begin, org.joda.time.DateTime end)
-
getPercentage
protected static final double getPercentage(double numOfTasksInAState, double totalTasks)
-
getFormattedPercentage
protected static final java.lang.String getFormattedPercentage(double numOfTasksInAState, double totalTasks)
-
getFormattedMonth
protected static final java.lang.String getFormattedMonth(int monthOfYear)
-
formatToSecs
protected static final java.lang.String formatToSecs(long millis)
-
formatToMins
protected static final java.lang.String formatToMins(long millis)
-
formatToHours
protected static final java.lang.String formatToHours(long millis)
-
-