Closed boutetnico closed 4 years ago
Is this in reference to an existing issue? No
[x] Update Changelog following the conventions laid out here
[ ] Update README with any necessary configuration snippets
[ ] Binstubs are created if needed
[ ] RuboCop passes
[ ] Existing tests pass
Add a new option --name-prefix / -p allowing to limit alarms considered in the check by a given prefix. The prefix works with the alarm name.
--name-prefix
-p
Here is an example:
ruby check-cloudwatch-alarms.rb -s OK CloudWatchCheck CRITICAL: 2 in 'OK' state: prod-alarm,staging-alarm
ruby check-cloudwatch-alarms.rb -s OK -p staging CloudWatchCheck CRITICAL: 1 in 'OK' state: staging-alarm
None
Pull Request Checklist
Is this in reference to an existing issue? No
General
[x] Update Changelog following the conventions laid out here
[ ] Update README with any necessary configuration snippets
[ ] Binstubs are created if needed
[ ] RuboCop passes
[ ] Existing tests pass
Purpose
Add a new option
--name-prefix
/-p
allowing to limit alarms considered in the check by a given prefix. The prefix works with the alarm name.Here is an example:
Known Compatibility Issues
None