For example, I may write the following configuration:
let main _ =
Nightwatch.AppBuilder()
.ReadConfiguration("./config.yml")
.MonitorHttpResource("https://fornever.me")
.WithTelegramNotification("@fvnever")
.Run()
That way, every time I want to monitor something, I'll either update the configurations and/or code of my existing monitoring apps or create a new monitoring app from scratch.
Users won't need to tinker with config for one-time activities; everything will be configurable from code and ready for deploy from scratch.
Ideally, Nightwatch flow should be as follows:
dotnet new nightwatch-dashboard
That way, every time I want to monitor something, I'll either update the configurations and/or code of my existing monitoring apps or create a new monitoring app from scratch.
Users won't need to tinker with config for one-time activities; everything will be configurable from code and ready for deploy from scratch.