You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add ability for numerator to be empty
CloudWatch returns empty data if there is no metric for it. This allows
us to set a default (0) to replace for the numeratort.
Remove the --no-data-ok flag because it doesn't make sense with the
above option. Instead we chang eit to --no-denominator-data-ok. If there
is no denominator data we will either `unknown` or `ok`.
Also refactored some to reuse more code. May refactor more.
* Allow backwards compatibility and add some tests
* Move #composite_check out of library, and update tests
* Split out some logic for easier legibility
* Fix rubo by disabling and adding changelog
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md)
5
5
6
6
## [Unreleased]
7
+
- check-cloudwatch-composite-metric.rb: add flags `zero_denominator_data_ok`, `no_denominator_data_ok`, and `numerator_default` to add ability to allow numerator in composite to be 0. While leaving the functionality of `no_data_ok` the same, this change allows us to check to alert if the numerator has no data since 0/X is a valid alert case.
8
+
- lib/cloudwatch-common.rb: added tests for majority of functions
0 commit comments