Skip to content

Commit

Permalink
Register the new transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
adatzer committed Jun 17, 2024
1 parent 5c10427 commit 5106cbb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
transform {
use "jq" {
jq_command = <<JQEOT
{
my_api_key: "${env.TESTAPIKEY}",
my_app_id: .app_id,
my_nested_prop: {
playback_rate: .contexts_com_snowplowanalytics_snowplow_media_player_1[0].playbackRate
}
}
JQEOT

timeout_sec = 5
snowplow_mode = true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
transform {
use "jq" {
jq_command = "[.]"
}
}
1 change: 1 addition & 0 deletions pkg/transform/transformconfig/transform_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ var SupportedTransformations = []config.ConfigurationPair{
transform.Base64DecodeConfigPair,
transform.Base64EncodeConfigPair,
transform.GTMSSPreviewConfigPair,
transform.JQMapperConfigPair,
engine.LuaConfigPair,
engine.JSConfigPair,
}
Expand Down

0 comments on commit 5106cbb

Please sign in to comment.