Created
November 9, 2020 22:08
-
-
Save veyalla/18e2700a01815335fde261b38e0c60fe to your computer and use it in GitHub Desktop.
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
{ | |
"modulesContent": { | |
"$edgeAgent": { | |
"properties.desired": { | |
"modules": { | |
"tempSensor": { | |
"settings": { | |
"image": "mcr.microsoft.com/azureiotedge-simulated-temperature-sensor:1.0.9-rc4", | |
"createOptions": "{}" | |
}, | |
"type": "docker", | |
"version": "1.0", | |
"status": "running", | |
"restartPolicy": "always" | |
}, | |
"Sender1": { | |
"settings": { | |
"image": "veyalla/genericmodule:0.0.3.7-amd64", | |
"createOptions": "" | |
}, | |
"type": "docker", | |
"version": "1.0", | |
"env": { | |
"Transport": { | |
"value": "Mqtt" | |
} | |
}, | |
"status": "running", | |
"restartPolicy": "always" | |
}, | |
"Receiver1": { | |
"settings": { | |
"image": "veyalla/genericmodule:0.0.3.7-amd64", | |
"createOptions": "" | |
}, | |
"type": "docker", | |
"version": "1.0", | |
"env": { | |
"Transport": { | |
"value": "Mqtt" | |
} | |
}, | |
"status": "running", | |
"restartPolicy": "always" | |
}, | |
"Sender2": { | |
"settings": { | |
"image": "veyalla/genericmodule:0.0.3.7-amd64", | |
"createOptions": "" | |
}, | |
"type": "docker", | |
"version": "1.0", | |
"env": { | |
"Transport": { | |
"value": "MqttWs" | |
} | |
}, | |
"status": "running", | |
"restartPolicy": "always" | |
}, | |
"Receiver2": { | |
"settings": { | |
"image": "veyalla/genericmodule:0.0.3.7-amd64", | |
"createOptions": "" | |
}, | |
"type": "docker", | |
"version": "1.0", | |
"env": { | |
"Transport": { | |
"value": "MqttWs" | |
} | |
}, | |
"status": "running", | |
"restartPolicy": "always" | |
}, | |
"Sender3": { | |
"settings": { | |
"image": "veyalla/genericmodule:0.0.3.7-amd64", | |
"createOptions": "" | |
}, | |
"type": "docker", | |
"version": "1.0", | |
"env": { | |
"Transport": { | |
"value": "Amqp" | |
} | |
}, | |
"status": "running", | |
"restartPolicy": "always" | |
}, | |
"Receiver3": { | |
"settings": { | |
"image": "veyalla/genericmodule:0.0.3.7-amd64", | |
"createOptions": "" | |
}, | |
"type": "docker", | |
"version": "1.0", | |
"env": { | |
"Transport": { | |
"value": "Amqp" | |
} | |
}, | |
"status": "running", | |
"restartPolicy": "always" | |
}, | |
"Sender4": { | |
"settings": { | |
"image": "veyalla/genericmodule:0.0.3.7-amd64", | |
"createOptions": "" | |
}, | |
"type": "docker", | |
"version": "1.0", | |
"env": { | |
"Transport": { | |
"value": "AmqpWs" | |
} | |
}, | |
"status": "running", | |
"restartPolicy": "always" | |
}, | |
"Receiver4": { | |
"settings": { | |
"image": "veyalla/genericmodule:0.0.3.7-amd64", | |
"createOptions": "" | |
}, | |
"type": "docker", | |
"version": "1.0", | |
"env": { | |
"Transport": { | |
"value": "AmqpWs" | |
} | |
}, | |
"status": "running", | |
"restartPolicy": "always" | |
} | |
}, | |
"runtime": { | |
"settings": { | |
"minDockerVersion": "v1.25" | |
}, | |
"type": "docker" | |
}, | |
"schemaVersion": "1.0", | |
"systemModules": { | |
"edgeAgent": { | |
"settings": { | |
"image": "veyalla/ea:feb10", | |
"createOptions": "{\"ExposedPorts\":{\"9600/tcp\":{}}}" | |
}, | |
"type": "docker", | |
"env": { | |
"experimentalfeatures__enabled": { | |
"value": "true" | |
}, | |
"experimentalfeatures__enableMetrics": { | |
"value": "true" | |
}, | |
"experimentalfeatures__enableUploadLogs": { | |
"value": "true" | |
}, | |
"experimentalfeatures__enableGetLogs": { | |
"value": "true" | |
} | |
} | |
}, | |
"edgeHub": { | |
"settings": { | |
"image": "veyalla/eh:feb10", | |
"createOptions": "{\"ExposedPorts\":{\"9600/tcp\":{}},\"HostConfig\":{\"PortBindings\":{\"5671/tcp\":[{\"HostPort\":\"5671\"}],\"8883/tcp\":[{\"HostPort\":\"8883\"}],\"443/tcp\":[{\"HostPort\":\"443\"}]}}}" | |
}, | |
"type": "docker", | |
"env": { | |
"experimentalfeatures__enabled": { | |
"value": true | |
}, | |
"experimentalfeatures__enableMetrics": { | |
"value": true | |
} | |
}, | |
"status": "running", | |
"restartPolicy": "always" | |
} | |
} | |
} | |
}, | |
"$edgeHub": { | |
"properties.desired": { | |
"routes": { | |
"Sender0ToReceiver": "FROM /messages/modules/Sender0/outputs/output1 INTO BrokeredEndpoint(\"/modules/Receiver0/inputs/input1\")", | |
"Sender1ToReceiver": "FROM /messages/modules/Sender1/outputs/output1 INTO BrokeredEndpoint(\"/modules/Receiver1/inputs/input1\")", | |
"Sender2ToReceiver": "FROM /messages/modules/Sender2/outputs/output1 INTO BrokeredEndpoint(\"/modules/Receiver2/inputs/input1\")", | |
"Sender3ToReceiver": "FROM /messages/modules/Sender3/outputs/output1 INTO BrokeredEndpoint(\"/modules/Receiver3/inputs/input1\")", | |
"Sender4ToReceiver": "FROM /messages/modules/Sender4/outputs/output1 INTO BrokeredEndpoint(\"/modules/Receiver4/inputs/input1\")", | |
"SendersToUpstream": "FROM /messages/modules/* INTO $upstream" | |
}, | |
"schemaVersion": "1.0", | |
"storeAndForwardConfiguration": { | |
"timeToLiveSecs": 7200 | |
} | |
} | |
}, | |
"Sender1": { | |
"properties.desired": { | |
"sendMessages": true, | |
"outputName": "output1", | |
"inputName": "input1", | |
"sendFrequencyMSecs": 2000 | |
} | |
}, | |
"Receiver1": { | |
"properties.desired": { | |
"sendMessages": false, | |
"forwardMessages": false, | |
"invokeResetOnCaller": true, | |
"sendAlertMessages": false, | |
"outputName": "output1", | |
"inputName": "input1", | |
"sendFrequencyMSecs": 200, | |
"thresholdValue": 1000 | |
} | |
}, | |
"Sender2": { | |
"properties.desired": { | |
"sendMessages": true, | |
"outputName": "output1", | |
"inputName": "input1", | |
"sendFrequencyMSecs": 2000 | |
} | |
}, | |
"Receiver2": { | |
"properties.desired": { | |
"sendMessages": false, | |
"forwardMessages": false, | |
"invokeResetOnCaller": true, | |
"sendAlertMessages": false, | |
"outputName": "output1", | |
"inputName": "input1", | |
"sendFrequencyMSecs": 200, | |
"thresholdValue": 1000 | |
} | |
}, | |
"Sender3": { | |
"properties.desired": { | |
"sendMessages": true, | |
"outputName": "output1", | |
"inputName": "input1", | |
"sendFrequencyMSecs": 2000 | |
} | |
}, | |
"Receiver3": { | |
"properties.desired": { | |
"sendMessages": false, | |
"forwardMessages": false, | |
"invokeResetOnCaller": true, | |
"sendAlertMessages": false, | |
"outputName": "output1", | |
"inputName": "input1", | |
"sendFrequencyMSecs": 200, | |
"thresholdValue": 1000 | |
} | |
}, | |
"Sender4": { | |
"properties.desired": { | |
"sendMessages": true, | |
"outputName": "output1", | |
"inputName": "input1", | |
"sendFrequencyMSecs": 2000 | |
} | |
}, | |
"Receiver4": { | |
"properties.desired": { | |
"sendMessages": false, | |
"forwardMessages": false, | |
"invokeResetOnCaller": true, | |
"sendAlertMessages": false, | |
"outputName": "output1", | |
"inputName": "input1", | |
"sendFrequencyMSecs": 200, | |
"thresholdValue": 1000 | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment