| I think, the best way would be to add a parameter to the existing token. This is simpler to implement and would reuse an already existing concept. We basically need a new parameter of type String that will be converted to an enum similar to QualityGateType. In this enum we should have a function object that handles the correct property to report. Then we can provide all different values just with one enum. So rather then using the hard coded getter action.getResult().getTotalSize(); we need to use enumInstance.getActualSizeMethodReference().apply(deltaReport);. The only problem is the delta report that is currently not persisted. I need to check what would be the best way to implement it. |