Event Transformation
Categories:
Events are the powerful concept at the center of the FX Platform. The Event Transformer based Services offer a simple and configurable approach to transforming the payload of events prior to reemiiting events. These are useful for targeting services which expect different payloads.
TRANSFORMER
Example
|
|
some_transformer_event - name of the event to apply rules/transforms
conditions - conditions to be met for transformation to occur. If multipe conditions are defined and operator is used, all of them must be met to proceed.
conditions.key - name of the key to be checked
conditions.val - value that should match criteria
op - operator that will be used to match criteria, possible options equal, not_equal, in (in array), not_in
emit_events - list of event objects with transformation def
event_type - type of the event that will be emitted
topic - name of destination topic for event
transform - list of keys that should be transformed
transform.key - name of the key that should be transformed
transform.type - type of transformation that should be applied: replace (will replace value of the key with one provided), rename (will rename the key with one provided in val), remove (will remove key), add (will add new key/val)
transform.val - value to be applied (works with transform.type)
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.