Class DeploymentsPercentageWidgetData
java.lang.Object
com.xebialabs.deployit.core.rest.api.reports.TaskArchiveReport
com.xebialabs.deployit.core.rest.api.reports.widgets.DeploymentsPercentageWidgetData
- All Implemented Interfaces:
Widget
Status overview widget
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final intstatic final StringFields inherited from class com.xebialabs.deployit.core.rest.api.reports.TaskArchiveReport
taskArchive -
Constructor Summary
ConstructorsConstructorDescriptionDeploymentsPercentageWidgetData(com.xebialabs.deployit.task.archive.TaskArchive taskArchive) -
Method Summary
Modifier and TypeMethodDescriptionprotected static final StringformatToHours(long millis) protected static final StringformatToMins(long millis) protected static final StringformatToSecs(long millis) protected static final StringgetFormattedMonth(int monthOfYear) protected static final StringgetFormattedPercentage(double numOfTasksInAState, double totalTasks) protected static final doublegetPercentage(double numOfTasksInAState, double totalTasks) ai.digital.deploy.sql.model.ReportgetReport(org.joda.time.DateTime beginDate, org.joda.time.DateTime endDate) Methods inherited from class com.xebialabs.deployit.core.rest.api.reports.TaskArchiveReport
cloneSearchParameters, getSearchParameters, getValue
-
Field Details
-
TOP_N
protected static final int TOP_N- See Also:
-
NUMBER_SUCCESSFUL_DEPLOYMENTS
- See Also:
-
NUMBER_ABORTED_DEPLOYMENTS
- See Also:
-
NUMBER_FAILED_DEPLOYMENTS
- See Also:
-
NUMBER_ROLLBACK_DEPLOYMENTS
- See Also:
-
PERCENTAGE_SUCCESSFUL_DEPLOYMENTS
- See Also:
-
PERCENTAGE_ABORTED_DEPLOYMENTS
- See Also:
-
PERCENTAGE_FAILED_DEPLOYMENTS
- See Also:
-
PERCENTAGE_ROLLBACK_DEPLOYMENTS
- See Also:
-
MONTH
- See Also:
-
ZERO
-
-
Constructor Details
-
DeploymentsPercentageWidgetData
public DeploymentsPercentageWidgetData(com.xebialabs.deployit.task.archive.TaskArchive taskArchive)
-
-
Method Details
-
getReport
public ai.digital.deploy.sql.model.Report getReport(org.joda.time.DateTime beginDate, org.joda.time.DateTime endDate) -
getPercentage
protected static final double getPercentage(double numOfTasksInAState, double totalTasks) -
getFormattedPercentage
-
getFormattedMonth
-
formatToSecs
-
formatToMins
-
formatToHours
-