commit | 22ca683534eadd2042d2ddeed66d88854dd4c84b | [log] [tgz] |
---|---|---|
author | Jason Peterson <jasonpet@us.ibm.com> | Wed Nov 30 19:59:15 2016 -0500 |
committer | Jason Peterson <jasonpet@us.ibm.com> | Thu Dec 01 12:33:21 2016 -0500 |
tree | 4e9434ca61c41aae2727d2f0d1bee1d1b483ef70 | |
parent | 52d45fdc3de97c4550bcc468a2f2700a1d4dc08b [diff] |
add dbname to params that trigger sends to the action
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.