Ian Fijolek
3323a562c9
Run go fix
2026-02-18 17:39:24 +00:00
Ian Fijolek
945c1b1ce0
Update module path to v2
2025-12-11 16:34:18 -08:00
Ian Fijolek
be2e8121c5
Refactor validation for alert and monitor to return errors
2025-02-13 12:17:59 -08:00
Ian Fijolek
df1c7aa74b
Refactor test package and some field types
...
Fairly big test refactor and changing some of the fields from pointers
2025-02-13 12:17:59 -08:00
Ian Fijolek
7c72eabd6b
Initial step of hcl migration
2025-02-13 12:17:46 -08:00
Ian Fijolek
32745c816c
Improve test structures using subtests
2024-11-14 11:35:26 -08:00
Ian Fijolek
3f6c8f5a22
Breaking: Remove 'SecondsOrDuration' for check_interval
...
Now requires an explicit duration unit. Eg. 30s
2024-11-14 11:18:39 -08:00
Ian Fijolek
67d7e0574e
Breaking: Remove python compat flag
2024-11-14 11:18:05 -08:00
Ian Fijolek
5f250f17a8
Add more liniting and update to pass
2021-05-10 21:53:26 -07:00
Ian Fijolek
f0e179851f
Update linting and a test case
2021-01-08 18:31:22 -05:00
Ian Fijolek
cffbbd734a
Make default log alert conditional
...
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
Ian Fijolek
00029a6327
Make Python compatability a flag
2020-02-19 17:38:07 -08:00
Ian Fijolek
8b0d3b65cf
Try to allow parsing of Minitor-py templates
...
This will make transition easier for an interim period. Will remove at
version 1.0
2020-02-19 17:38:07 -08:00
Ian Fijolek
25c5179d3d
Switch to a single key for command and command shell
...
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
Ian Fijolek
71574dd8a9
Add alert tests
2019-10-03 16:30:49 -07:00