7cac6c94d7
Update readme and update some test files to be better examples
continuous-integration/drone/push Build is failing
2024-11-15 12:05:17 -08:00
e0af17a599
Refactor test package and some field types
...
Fairly big test refactor and changing some of the fields from pointers
2024-11-15 11:37:03 -08:00
a0a6b8199a
WIP: Try migration to hcl
2024-11-14 13:42:50 -08:00
32745c816c
Improve test structures using subtests
continuous-integration/drone/push Build is failing
2024-11-14 11:35:26 -08:00
3f6c8f5a22
Breaking: Remove 'SecondsOrDuration' for check_interval
...
continuous-integration/drone/push Build is failing
Now requires an explicit duration unit. Eg. 30s
2024-11-14 11:18:39 -08:00
67d7e0574e
Breaking: Remove python compat flag
2024-11-14 11:18:05 -08:00
deec04bf0d
Allow setting of global defaults for some values
...
This helps with reducing redundant config.
Note: There is no default for `alert_every` because the zero value has a
meaning and cannot be interpreted as an omission.
2022-12-19 15:49:32 -08:00
860c2cdf43
Add custom type to parse out seconds as int and durations as strings
continuous-integration/drone/push Build is passing
2021-05-12 10:33:42 -07:00
04395fa693
Add duration parsing tests
2021-05-11 10:41:39 -07:00
5f250f17a8
Add more liniting and update to pass
2021-05-10 21:53:26 -07:00
00029a6327
Make Python compatability a flag
continuous-integration/drone/push Build is passing
2020-02-19 17:38:07 -08:00
9c21880efa
Add a default log alert
2020-02-19 17:38:07 -08:00
25c5179d3d
Switch to a single key for command and command shell
...
continuous-integration/drone/push Build is passing
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
3226be69e7
Fix issue with shell commands containing "<>" and unecessary (and poor) escaping
continuous-integration/drone/push Build is passing
2020-01-07 10:37:53 -08:00
0269ad3512
Add new test for multi-line YAML strings
2020-01-07 10:28:14 -08:00
351216c3a7
Add more config validation
...
Validates that all alerts are actually found in the alert list
2019-10-07 10:48:19 -07:00
5c5388d683
Add some config tests
...
Still some more to add
2019-10-03 18:16:03 -07:00