commit | 0c69b683ae907643933529eabcabd30a3686dd01 | [log] [tgz] |
---|---|---|
author | Morgan Johnson <johnsolm@us.ibm.com> | Thu Nov 17 14:29:20 2016 -0500 |
committer | Morgan Johnson <johnsolm@us.ibm.com> | Thu Nov 17 14:29:20 2016 -0500 |
tree | 74e22803af6a35063b6fe6b31d3951e3ba4e1585 | |
parent | 5aa6f5cd6bc0bcb63d35ea3c37f27b024296e678 [diff] |
trigger fires to 1M + parameter handling + error handling + includeDoc removal
This is still very much a work-in-progress.
RESTful service to listen for changes to a Cloudant database.
Changes to a Cloudant database can trigger the invocation of an action, passing the action the body of the updated document.
See the scripts directory for examples on how to register a new Cloudant trigger.
The following commands will test the Cloudant trigger service:
cd <bluewhisk_home> gradle distDocker
Follow the instructions in [ansible/README.md][../../../ansible/README.md]
./bin/wsk create HELLOCLOUDANT ./actions/hellocloudant.js ./catalog/providers/cloudantTrigger/scripts/addTestTriggers.sh
./catalog/providers/cloudantTrigger/scripts/addNewDocument.sh
You should see the output from invoking the HELLOCLOUDANT action in the ELK logs.