[TE] web - harleyjj/subscription-groups - add application field to subscription group objects
@@ -34,6 +34,7 @@ public class DetectionAlertConfigFormatter implements DTOFormatter<DetectionAler
private static final String ATTR_ACTIVE = "active";
private static final String ATTR_ID = "id";
private static final String ATTR_DETECTION_CONFIG_IDS = "detectionConfigIds";
+ private static final String ATTR_APPLICATION = "application";
@Override
public Map<String, Object> format(DetectionAlertConfigDTO config) {
@@ -43,6 +44,7 @@ public class DetectionAlertConfigFormatter implements DTOFormatter<DetectionAler
output.put(ATTR_ID, config.getId());
output.put(ATTR_ACTIVE, config.isActive());
output.put(ATTR_DETECTION_CONFIG_IDS, config.getVectorClocks().keySet());
+ output.put(ATTR_APPLICATION, config.getApplication());
return output;
}
}
