Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Transformers

Antoine Cotten edited this page Aug 2, 2023 · 1 revision

Full list


Bumblebee

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>
}

Function

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>
}
Clone this wiki locally