The main user-configurable thing in nightwatch is a resource — some user-provided piece of information that symbolizes some service.
Let's say for now that each resource consists a schedule and a check. Nightwatch should perform check by schedule and log the results.
For now, let's add a simple HTTP GET resource that will send a GET request to the user-provided URL, and check the result status. If it's 200 then the check is ok; else it's failed.
The main user-configurable thing in nightwatch is a resource — some user-provided piece of information that symbolizes some service.
Let's say for now that each resource consists a schedule and a check. Nightwatch should perform check by schedule and log the results.
For now, let's add a simple HTTP GET resource that will send a GET request to the user-provided URL, and check the result status. If it's 200 then the check is ok; else it's failed.