You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem / use case? Please describe.
Include the previous values of attributes in the context available for JEXL expression evaluation
Describe the solution you'd like
The current notification processing logic already know the previous values of attributes (I don't remember exactly how, but this is mechanism thanks to the previousValue metadata works).
It would be great to have this previous values at hand for JEXL evaluation, e.g. it would be very easy to calculate an increment this way: ${prevValue.A - A}.
Is your feature request related to a problem / use case? Please describe.
Include the previous values of attributes in the context available for JEXL expression evaluation
Describe the solution you'd like
The current notification processing logic already know the previous values of attributes (I don't remember exactly how, but this is mechanism thanks to the
previousValue
metadata works).It would be great to have this previous values at hand for JEXL evaluation, e.g. it would be very easy to calculate an increment this way:
${prevValue.A - A}
.Eg:
Describe alternatives you've considered
Another way could be this:
but it seems more problematic (
"A.previous": 1
syntax collides with"A": { "previous": 1}
.However, take into account the existing implementation for
previousValue
metadata to pick the best alternative.Describe why you need this feature
The text was updated successfully, but these errors were encountered: