Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhook from report trigger #9

Open
shawngiese opened this issue Jan 24, 2017 · 0 comments
Open

Webhook from report trigger #9

shawngiese opened this issue Jan 24, 2017 · 0 comments

Comments

@shawngiese
Copy link
Owner

shawngiese commented Jan 24, 2017

Either from the report when it is run or a scheduled check of results with REST API.
Maybe node-schedule to create a trigger to select and check resultset for trigger values.

For example...

var schedule = require("node-schedule");
var j = schedule.scheduleJob('shawn','42 * * * * *', function(){
  console.log('Time for tea!'+ ' fired at ' + Date());
});
var j = schedule.scheduleJob('joe','*/15 * * * * *', function(){
  console.log('Time for coffee!' + ' fired at ' + Date());
});
console.log(schedule.scheduledJobs); //then list, reschedule or cancel existing jobs. 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant