Skip to content

Commit

Permalink
fix: Update profiles to use TargetType flag for configurable functio… (
Browse files Browse the repository at this point in the history
…#509)

* fix: Update profiles to use  TargetType flag for configurable functions pipeline

Signed-off-by: Marc-Philippe Fuller <marc-philippe.fuller@intel.com>
  • Loading branch information
marcpfuller authored Feb 7, 2023
1 parent ae4d96f commit 851ef8f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion res/external-mqtt-trigger/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LogLevel = "INFO"

[Writable.Pipeline]
ExecutionOrder = "MQTTExport"
UseTargetTypeOfByteArray = true
TargetType = "raw"

[Writable.Pipeline.Functions]
[Writable.Pipeline.Functions.MQTTExport]
Expand Down
2 changes: 1 addition & 1 deletion res/functional-tests/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
LogLevel = "INFO"

[Writable.Pipeline]
UseTargetTypeOfByteArray = false
TargetType = "event"
ExecutionOrder = "FilterByDeviceName, Transform, SetResponseData"

[Writable.Pipeline.Functions]
Expand Down
1 change: 0 additions & 1 deletion res/http-export/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
MaxRetryCount = 10

[Writable.Pipeline]
UseTargetTypeOfByteArray = false
ExecutionOrder = "HTTPExport"

[Writable.Pipeline.Functions]
Expand Down
2 changes: 1 addition & 1 deletion res/metrics-influxdb/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
MaxRetryCount = 10

[Writable.Pipeline]
UseTargetTypeOfMetric = true
TargetType = "metric"
ExecutionOrder = "ToLineProtocol, Batch, HTTPExport"

[Writable.Pipeline.Functions]
Expand Down
6 changes: 3 additions & 3 deletions res/sample/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ LogLevel = "INFO"

# The Pipeline section allows the functions pipeline to be specified via configuration
[Writable.Pipeline]
# If True, the incoming data to the functions pipeline will be []byte, i.e not marshaled to an Event
# This is useful when the incoming data isn't an EdgeX Event.
UseTargetTypeOfByteArray = false
# If set, must be one of the three values: raw, metric, event.
# If not set it defaults to event
TargetType = "event"

# ExecutionOrder specifies which functions to run and the order to run them.
# All functions listed must have an entry below in the Pipeline.Functions section
Expand Down

0 comments on commit 851ef8f

Please sign in to comment.