ForNeVeR / nightwatch

Stays alert while you sleep.
MIT License
6 stars 0 forks source link

Primitive resource #4

Closed ForNeVeR closed 7 years ago

ForNeVeR commented 7 years ago

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.