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:
committed by
GitHub
parent
24b3a45636
commit
bc70d51c94
@@ -102,6 +102,8 @@ public final class MgmtApiModelProperties {
|
||||
public static final String ROLLOUT_DS_ID = "the ID of distributionset of this rollout";
|
||||
public static final String ROLLOUT_TOTAL_TARGETS = "the total targets of a rollout";
|
||||
public static final String ROLLOUT_TOTAL_TARGETS_PER_STATUS = "the total targets per status";
|
||||
|
||||
public static final String ROLLOUT_TOTAL_GROUPS = "the total number of groups created by this rollout";
|
||||
public static final String ROLLOUT_STATUS = "the status of this rollout";
|
||||
public static final String ROLLOUT_TYPE = "the type of this rollout";
|
||||
public static final String ROLLOUT_GROUP_STATUS = "the status of this rollout group";
|
||||
|
||||
@@ -141,6 +141,8 @@ public class RolloutResourceDocumentationTest extends AbstractApiRestDocumentati
|
||||
if (withDetails) {
|
||||
allFieldDescriptor.add(fieldWithPath(arrayPrefix + "totalTargetsPerStatus")
|
||||
.description(MgmtApiModelProperties.ROLLOUT_TOTAL_TARGETS_PER_STATUS));
|
||||
allFieldDescriptor.add(fieldWithPath(arrayPrefix + "totalGroups")
|
||||
.description(MgmtApiModelProperties.ROLLOUT_TOTAL_GROUPS));
|
||||
allFieldDescriptor.add(fieldWithPath(arrayPrefix + "_links.start")
|
||||
.description(MgmtApiModelProperties.ROLLOUT_LINKS_START_SYNC));
|
||||
allFieldDescriptor.add(fieldWithPath(arrayPrefix + "_links.pause")
|
||||
|
||||
Reference in New Issue
Block a user