This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Transformers
Antoine Cotten edited this page Aug 2, 2023
·
1 revision
transformer bumblebee "to_user_info" {
context {
operation "store" {
path {
key = "$ceSource"
value = "source"
}
path {
key = "$ceType"
value = "type"
}
}
operation "add" {
path {
key = "origsourcetype"
value = "$${ceSource}-$${ceType}"
}
path {
key = "type"
value = "com.example.user"
}
}
}
data {
operation "delete" {
path {
key = ""
}
}
operation "shift" {
path {
key = "user.first_name:name"
}
}
}
//to = <component>.<identifier>
}
transformer function "my_function" {
runtime = "python"
entrypoint = "main" // optional
code = file("funcs/handler.py")
ce_context {
type = "my.transformation.v1.event"
source = "my_function" // optional
subject = "some_subject" // optional
}
public = false // optional
//to = <component>.<identifier>
}