nodejs cronitor.io client
An unofficial simple asynchronous node.js client to ease working with cronitor.io API's.
Test
# Set 'ACCESS_TOKEN' in environment variable and then run tests
$ npm install
$ npm install gulp -g
$ npm test
How-to
- Create new CronitorClient instance
var cc =access_token: <Acess key here> ;
- Start using it
Create new monitor
new( monitor-object, callback)
Args: # Createvar newMonitor ="name": data1+"_"+"notifications":"phones":"webhooks":"emails":"sonukr666@xyz.com""rules":"rule_type": "not_run_in""duration": 1"time_unit": "minutes""rule_type": "ran_longer_than""duration": 1"time_unit": "minutes""note": data2;cc;
Get all monitors
all(options, callback)
Args: # Get all monitorccall {if!errconsole;};ORccall page:2 {if!errconsole;};
Get single monitor
get( monitor code, callback)...
Args: cc;
Update monitor
update( monitor-code, monitor-obj, callback)...
Args: var updateMonitorObj = ...cc;
Delete monitor
delete( monitor-code, callback)...
Args: cc;
Unpause monitor
unpause( monitor-code, callback)...
Args: cc;
Problem using cronitor-Client?
===============================
File an issue on https://github.com/sahilsk/node-cronitor-client
License
MIT