Commit Graph

13 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 cffbbd734a Make default log alert conditional
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
Allow using the default `log` alert for both up and down alerts using
Go's templating conditionals. Following this example can do away with
the need for an up and down version of every alert.
2020-06-19 09:51:42 -07:00
IamTheFij ad6f3be6ec Update README with more detailed running instructions from prior project
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2020-02-19 22:13:30 -08:00
IamTheFij 9dcd8ebf12 Update README to correct differences between py and go versions
continuous-integration/drone/push Build is passing Details
2020-02-19 21:56:01 -08: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 d6b979f06e Update README to correct typo and checklist
continuous-integration/drone/push Build is passing Details
2020-01-17 15:53:37 -08:00
IamTheFij b808df7365 Update README to indicate where to get alert template info
continuous-integration/drone/push Build is passing Details
2019-11-20 17:21:48 -08:00
IamTheFij b2d9882c91 Update readme with accurate To do status
continuous-integration/drone/push Build is passing Details
2019-11-15 17:17:46 -08:00
IamTheFij 6aaeeb32d4 Refactor a bit more for testing, update tests 2019-10-04 14:47:38 -07:00
IamTheFij 88b718cb59 Update readme syntax 2019-10-03 09:22:43 -07:00
IamTheFij ba33071070 Clean up code and update docs 2019-10-02 16:09:11 -07:00
IamTheFij 7b746ed62a Commands all running 2019-10-02 09:37:29 -07:00
IamTheFij 0aa0fef19d Initial commit 2019-09-21 22:01:12 +00:00