Merge "jsonpath-rw-ext uses operator.add for "+" and operator.sub for "-". operator.add can do string concatenation, but operator.sub cannot do string subtraction. so the original hack does not work, perhaps we should use sub to get an empty string."

This commit is contained in:
Zuul 2023-08-07 12:41:09 +00:00 committed by Gerrit Code Review
commit 7d0ac89c3f

View File

@ -383,7 +383,7 @@ metric:
# Identity
# NOTE(gordc): hack because jsonpath-rw-ext can't concat starting with string.
- name: $.payload.outcome - $.payload.outcome + 'identity.authenticate.' + $.payload.outcome
- name: $.payload.outcome.`sub(/.*/, )` + 'identity.authenticate.' + $.payload.outcome
type: 'delta'
unit: 'user'
volume: 1