Commit Graph

9 Commits

Author SHA1 Message Date
IamTheFij 89f2849912 Add Monitor.Alerts
continuous-integration/drone/push Build is passing Details
Add the ability to pass a single list of alerts to a monitor that will
be executed on either an up or down alert.

Right now this can be used with a Go template that changes the alert
content depending on the type of alert. Later, I may add a way to pass
two commands to an Alert where one can be for down and the other for
up.
2020-06-19 22:37:14 -07:00
IamTheFij 25c5179d3d Switch to a single key for command and command shell
continuous-integration/drone/push Build is passing Details
This makes the configuration more similar to Minitor-py and
docker-compose. If a string is passed, it will be executed in a shell.
If an array is passed, it will be executed in as a command directly.

This breaks compatiblity with previous versions of Minitor-go, but
closer to compatiblity with Minitor-py.
2020-02-19 17:38:06 -08:00
IamTheFij 05c0e18c37 Update test to be less environment dependent
continuous-integration/drone/push Build is passing Details
2019-10-07 15:53:41 -07:00
IamTheFij 1b07059825 Make AlertDown required for a Monitor 2019-10-04 16:23:48 -07:00
IamTheFij 6aaeeb32d4 Refactor a bit more for testing, update tests 2019-10-04 14:47:38 -07:00
IamTheFij 71574dd8a9 Add alert tests 2019-10-03 16:30:49 -07:00
IamTheFij 644d6bbc05 Complete all Monitor tests 2019-10-03 09:22:13 -07:00
IamTheFij 67d738a33c WIP: Add tests for monitor 2019-10-02 20:52:34 -07:00
IamTheFij 061b0c980a WIP: Building tests, figuring out what I want AlertAfter to do 2019-10-02 18:01:55 -07:00