Expose total groups in rollout json representation in mgmt API (#1330)

Signed-off-by: Stanislav Trailov <stanislav.trailov@bosch.io>
This commit is contained in:
Stanislav Trailov
2023-03-07 15:20:53 +02:00
committed by GitHub
parent 24b3a45636
commit bc70d51c94
5 changed files with 128 additions and 4 deletions

View File

@@ -41,6 +41,9 @@ public class MgmtRolloutResponseBody extends MgmtNamedEntity {
@JsonProperty
private Map<String, Long> totalTargetsPerStatus;
@JsonProperty
private Integer totalGroups;
@JsonProperty
private boolean deleted;
@@ -125,4 +128,12 @@ public class MgmtRolloutResponseBody extends MgmtNamedEntity {
public Integer getWeight() {
return weight;
}
public void setTotalGroups(final Integer totalGroups) {
this.totalGroups = totalGroups;
}
public Integer getTotalGroups() {
return totalGroups;
}
}