Skip to content

Instantly share code, notes, and snippets.

@voipnorm
Last active January 19, 2017 17:50
Show Gist options
  • Save voipnorm/13443ed187cf0002e1f853761b76676b to your computer and use it in GitHub Desktop.
Save voipnorm/13443ed187cf0002e1f853761b76676b to your computer and use it in GitHub Desktop.
function Monitor (opts) {
// default http request method
this.method = 'GET';
// holds website to be monitored
this.website = '';
//Track status
this.webStatus = 'down';
// ping intervals in minutes
this.interval = 15;
// interval handler
this.handle = null;
// initialize the app
this.init(opts);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment