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

feat: Add AddTags function to sample, http-export & mqtt-export profiles #114

Merged
merged 1 commit into from
Sep 8, 2020
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 go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/edgexfoundry/app-service-configurable

go 1.13

require github.com/edgexfoundry/app-functions-sdk-go v1.2.1-dev.19
require github.com/edgexfoundry/app-functions-sdk-go v1.2.1-dev.21
3 changes: 3 additions & 0 deletions res/blackbox-tests/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
[Writable.Pipeline.Functions.FilterByValueDescriptor.Parameters]
ValueDescriptors = "RandomValue_Int8, RandomValue_Int64"
FilterOut = "false"
[Writable.Pipeline.Functions.AddTags]
[Writable.Pipeline.Functions.AddTags.Parameters]
tags=""
[Writable.Pipeline.Functions.TransformToXML]
[Writable.Pipeline.Functions.TransformToJSON]
[Writable.Pipeline.Functions.CompressWithGZIP]
Expand Down
4 changes: 3 additions & 1 deletion res/http-export/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
persistOnError = "false"
secretheadername = "" # This is the name used in the HTTP header and also used as the secret key
secretpath = ""

[Writable.Pipeline.Functions.AddTags]
[Writable.Pipeline.Functions.AddTags.Parameters]
tags=""
# InsecureSecrets are required for Store and Forward DB access and for authenticated HTTP exports when not using
# security services, i.e. Vault
[Writable.InsecureSecrets]
Expand Down
3 changes: 3 additions & 0 deletions res/mqtt-export/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
skipverify = "false"
authmode = "none"
persistOnError = "false"
[Writable.Pipeline.Functions.AddTags]
[Writable.Pipeline.Functions.AddTags.Parameters]
tags=""

# InsecureSecrets are required for Store and Forward DB access and for authenticated MQTT exports with
# new MQTTSecretSend function when not using security services, i.e. Vault
Expand Down
3 changes: 3 additions & 0 deletions res/sample/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
[Writable.Pipeline.Functions.FilterByValueDescriptor.Parameters]
ValueDescriptors = "RandomValue_Int8, RandomValue_Int64"
FilterOut = "false"
[Writable.Pipeline.Functions.AddTags]
[Writable.Pipeline.Functions.AddTags.Parameters]
tags=""
[Writable.Pipeline.Functions.JSONLogic]
[Writable.Pipeline.Functions.JSONLogic.Parameters]
rule = "{ \"and\" : [{\"<\" : [{ \"var\" : \"temp\" }, 110 ]}, {\"==\" : [{ \"var\" : \"sensor.type\" }, \"temperature\" ]} ] }"
Expand Down