Class DeploymentHistory
- java.lang.Object
-
- jetbrains.buildServer.serverSide.deploymentDashboards.entities.DeploymentHistory
-
public class DeploymentHistory extends Object
-
-
Constructor Summary
Constructors Constructor Description DeploymentHistory(ArrayList<DeploymentStateEntry> states)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddState(DeploymentStateEntry deploymentStateEntry)Adds information about new deployment state entry `deploymentStateEntry`.voidaddState(DeploymentState newState, Date stateChangedAt, Long buildId)Adds information about new state `newState`, reported at `statusChangedAt`, with optional `buildId` to be associated with the state.DeploymentStateEntrygetCurrentState()Returns current (latest) deployment state entry.List<DeploymentStateEntry>getStates()Returns a list of all known deployment states.
-
-
-
Constructor Detail
-
DeploymentHistory
public DeploymentHistory(@Nullable ArrayList<DeploymentStateEntry> states)
-
-
Method Detail
-
addState
public void addState(@NotNull DeploymentState newState, @NotNull Date stateChangedAt, @Nullable Long buildId)Adds information about new state `newState`, reported at `statusChangedAt`, with optional `buildId` to be associated with the state.
-
addState
public void addState(@NotNull DeploymentStateEntry deploymentStateEntry)Adds information about new deployment state entry `deploymentStateEntry`.
-
getStates
public List<DeploymentStateEntry> getStates()
Returns a list of all known deployment states.
-
getCurrentState
public DeploymentStateEntry getCurrentState()
Returns current (latest) deployment state entry. If none are available, defaults to `DeploymentState.UNKNOWN` state reported with current timestamp.
-
-