Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose upgradeStrategy #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/main/java/mesosphere/marathon/client/model/v2/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class App {
private Integer tasksStaged;
private Integer tasksRunning;
private List<HealthCheck> healthChecks;
private UpgradeStrategy upgradeStrategy;

public String getId() {
return id;
Expand Down Expand Up @@ -169,6 +170,14 @@ public void setHealthChecks(List<HealthCheck> healthChecks) {
this.healthChecks = healthChecks;
}

public UpgradeStrategy getUpgradeStrategy() {
return upgradeStrategy;
}

public void setUpgradeStrategy(UpgradeStrategy upgradeStrategy) {
this.upgradeStrategy = upgradeStrategy;
}

@Override
public String toString() {
return ModelUtils.toString(this);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package mesosphere.marathon.client.model.v2;

import mesosphere.marathon.client.utils.ModelUtils;

public class UpgradeStrategy {
private Double maximumOverCapacity;
private Double minimumHealthCapacity;

public Double getMaximumOverCapacity() {
return maximumOverCapacity;
}

public void setMaximumOverCapacity(Double maximumOverCapacity) {
this.maximumOverCapacity = maximumOverCapacity;
}

public Double getMinimumHealthCapacity() {
return minimumHealthCapacity;
}

public void setMinimumHealthCapacity(Double minimumHealthCapacity) {
this.minimumHealthCapacity = minimumHealthCapacity;
}

@Override
public String toString() {
return ModelUtils.toString(this);
}
}