Commit Graph

18 Commits

Author SHA1 Message Date
da5675c642 Refactor validation for alert and monitor to return errors
Some checks failed
continuous-integration/drone/push Build is failing
2024-11-15 16:36:45 -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
Some checks failed
continuous-integration/drone/push Build is failing
2024-11-14 11:35:26 -08:00
3f6c8f5a22 Breaking: Remove 'SecondsOrDuration' for check_interval
Some checks failed
continuous-integration/drone/push Build is failing
Now requires an explicit duration unit. Eg. 30s
2024-11-14 11:18:39 -08:00
7d87c3d036 Add default values for AlertEvery
There is also a test error corrected in TestMonitorFailureAlertEvery
where the same test conditions were repeated twice.
2022-12-19 15:49:32 -08:00
860c2cdf43 Add custom type to parse out seconds as int and durations as strings
All checks were successful
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
aad9eaa32f Update exported status metric to properly reflect alerting status of a monitor
Some checks failed
continuous-integration/drone/push Build is failing
It was using the result of the individual check and not the monitor as a whole
2020-07-14 17:09:56 -07:00
25c5179d3d Switch to a single key for command and command shell
All checks were successful
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
05c0e18c37 Update test to be less environment dependent
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-07 15:53:41 -07:00
1b07059825 Make AlertDown required for a Monitor 2019-10-04 16:23:48 -07:00
6aaeeb32d4 Refactor a bit more for testing, update tests 2019-10-04 14:47:38 -07:00
71574dd8a9 Add alert tests 2019-10-03 16:30:49 -07:00
644d6bbc05 Complete all Monitor tests 2019-10-03 09:22:13 -07:00
67d738a33c WIP: Add tests for monitor 2019-10-02 20:52:34 -07:00
061b0c980a WIP: Building tests, figuring out what I want AlertAfter to do 2019-10-02 18:01:55 -07:00