sensu / sensu-check-log

The Sensu Go log file monitoring check plugin and asset.
MIT License
2 stars 3 forks source link

make generated event status settable via threshold #17

Closed jspaleta closed 3 years ago

jspaleta commented 3 years ago

This is feature parity with the sensu-plugins ruby check.

New logic

  1. settable warn/critical threshold based on match count
  2. overrides to warn only or critical only.
  3. new function to set status based on threshold

Test updates

  1. updated all tests to work with new logic
  2. added new test for test coverage of new logic