-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!:Change configuration profile formats to YAML (#535)
* refactor!:Change configuration profile formats to YAML BREAKING CHANGE: Configuration profiles now uses YAML format
- Loading branch information
1 parent
6ea7de7
commit 726c7ba
Showing
17 changed files
with
618 additions
and
586 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
Writable: | ||
LogLevel: "INFO" | ||
|
||
Pipeline: | ||
ExecutionOrder: "MQTTExport" | ||
TargetType: "raw" | ||
|
||
Functions: | ||
MQTTExport: | ||
Parameters: | ||
BrokerAddress: "tcp://localhost:1883" # Hive Public Test Broker | ||
# Topic can have place holders in the form "{key-name}" that are replaced with matching Context values. Error occurs if no value match place holder(s). | ||
Topic: "edgex-export" | ||
SecretName: "mqtt" | ||
ClientId: "external-mqtt-export" | ||
QOS: "0" | ||
AutoReconnect: "false" | ||
KeepAlive: "" # Empty indicates to use default value | ||
ConnectTimeout: "" # Empty indicates to use default value | ||
Retain: "false" | ||
SkipVerify: "false" | ||
AuthMode: "none" | ||
PersistOnError: "false" | ||
|
||
# Metrics can only be reported when the MessageBus (below) is enabled. | ||
Telemetry: | ||
Interval: "0s" # Disables reporting | ||
|
||
Service: | ||
Host: "localhost" | ||
Port: 59706 | ||
StartupMsg: "app-external-mqtt-trigger has Started" | ||
|
||
# uncomment when running from command-line in hybrid mode with -cp -o flags | ||
# Clients: | ||
# core-metadata: | ||
# Host: "localhost" | ||
# Registry: | ||
# Host: "localhost" | ||
# Database: | ||
# Host: "localhost" | ||
|
||
MessageBus: | ||
# Host: localhost # uncomment when running from command-line in hybrid mode | ||
Disabled: true # Set to false when collecting metrics | ||
|
||
Trigger: | ||
Type: "external-mqtt" | ||
SubscribeTopics: "external-request/#" | ||
PublishTopic: "" # optional if publishing response back to the the External MQTT Broker | ||
ExternalMqtt: | ||
Url: "tcp://localhost:1883" # fully qualified URL to connect to the MQTT broker | ||
ClientId: "external-mqtt-trigger" | ||
ConnectTimeout: "5s" # 5 seconds | ||
AutoReconnect: true | ||
KeepAlive: 10 # Seconds (must be 2 or greater) | ||
QoS: 0 # Quality of Service 0 (At most once), 1 (At least once) or 2 (Exactly once) | ||
Retain: true | ||
SkipCertVerify: false | ||
SecretName: "mqtt-trigger" | ||
AuthMode: "none" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
Writable: | ||
LogLevel: "INFO" | ||
|
||
Pipeline: | ||
TargetType: "event" | ||
ExecutionOrder: "FilterByDeviceName, Transform, SetResponseData" | ||
|
||
Functions: | ||
FilterByProfileName: | ||
Parameters: | ||
ProfileNames: "" | ||
FilterOut: "false" | ||
FilterByDeviceName: | ||
Parameters: | ||
DeviceNames: "Random-Float-Device,Random-Integer-Device" | ||
FilterOut: "false" | ||
FilterBySourceName: | ||
Parameters: | ||
SourceNames: "" | ||
FilterOut: "false" | ||
FilterByResourceName: | ||
Parameters: | ||
ResourceNames: "RandomValue_Int8, RandomValue_Int64" | ||
FilterOut: "false" | ||
AddTags: | ||
Parameters: | ||
Tags: "" | ||
Transform: | ||
Parameters: | ||
Type: "xml" | ||
Compress: | ||
Parameters: | ||
Algorithm: "gzip" | ||
Encrypt: | ||
Parameters: | ||
Algorithm: "aes256" | ||
SecretName: "aes" | ||
SecretValueKey: "key" | ||
SetResponseData: | ||
Parameters: | ||
ResponseContentType: "" | ||
HTTPExport: | ||
Parameters: | ||
Method: "post" | ||
Url: "http://" | ||
MimeType: "" #OPTIONAL - default application/json | ||
MQTTExport: | ||
Parameters: | ||
BrokerAddress: "tcps://localhost:8883" | ||
Topic: "mytopic" | ||
SecretName: "mqtt" | ||
ClientId: "myclientid" | ||
QOS: "0" | ||
AutoReconnect: "false" | ||
Retain: "false" | ||
SkipVerify: "false" | ||
AuthMode: "none" | ||
PersistOnError: "false" | ||
KeepAlive: "" # Empty value means use default setting | ||
ConnectionTimeout: "" # Empty value means use default setting | ||
|
||
InsecureSecrets: | ||
aes: | ||
SecretName: "aes" | ||
SecretData: | ||
key: "217A24432646294A404E635266556A586E3272357538782F413F442A472D4B6150645367566B59703373367639792442264529482B4D6251655468576D5A7134" | ||
|
||
# Metrics can only be reported when the MessageBus (below) is enabled. | ||
Telemetry: | ||
Interval: "0s" # Disables reporting | ||
|
||
Service: | ||
Host: "localhost" | ||
Port: 59705 | ||
StartupMsg: "app-functional-tests Service Started" | ||
|
||
# uncomment when running from command-line in hybrid mode with -cp -o flags | ||
# Clients: | ||
# core-metadata: | ||
# Host: "localhost" | ||
# Registry: | ||
# Host: "localhost" | ||
# Database: | ||
# Host: "localhost" | ||
|
||
MessageBus: | ||
# Host: localhost # uncomment when running from command-line in hybrid mode | ||
Disabled: true # Set to false when collecting metrics | ||
|
||
Trigger: | ||
Type: "http" |
Oops, something went wrong.