Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update profiles to use TargetType flag for configurable functio… #509

Merged
merged 4 commits into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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