sensu-plugins-aws 2.4.1 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/CHANGELOG.md +7 -1
- data/bin/check-emr-steps.rb +1 -1
- data/bin/check-ses-statistics.rb +2 -2
- data/bin/metrics-ses.rb +1 -1
- data/lib/sensu-plugins-aws/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODBjODMyNGMyZGQ5NWRhZTFkNzU1YjExZTBkZWZlYzZlMTg4ODAzNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGFiY2JjNDIxMjZmMjhjM2Q5N2Q3ZWIxNzI0YWUwZDQzNGIxOTMwMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODMyZmI3OTcyM2Q0Mzg2MjY0MDU5NmI5Njg2N2ZhMWMyMzg0M2E0NGMyOThj
|
10
|
+
MTk0ZTYyYzRhYzMyNWFmM2Q0ZDk5MDE0NmQ3NGQxM2MzYmUyZjA2YmIwMjcy
|
11
|
+
ZTBjNDBkZmI0ZTYyZWQxZTEwZmU3YmJlNWQzNWMzZDc4OGJhMDQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWJmMzA2MWU4ZWE1YjlhMWEwNmZmMzYxOTliNGU1M2NlN2Q5OTNiNmE1YTdm
|
14
|
+
ZTVhOTBhNzIzMjY2ZjZlNTA1N2M2NWMwMmNlYjY1ZDZiNjUzNzRkNWM4MmVl
|
15
|
+
YzQzNWVhZDU1Y2FjZDhmYzE1ZGZjZmVmZjViNGEzYjkyNWFmYjg=
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [2.4.2] - 2016-04-13
|
9
|
+
### Fixed
|
10
|
+
- check-ses-statistics.rb, check-emr-steps.rb: fix requires
|
11
|
+
- check-ses-statistics.rb, metrics-ses.rb: sort results from SES
|
12
|
+
|
8
13
|
## [2.4.1] - 2016-04-13
|
9
14
|
### Fixed
|
10
15
|
- check-ses-statistics.rb: Make sure inputs are integers
|
@@ -166,7 +171,8 @@ WARNING: This release contains major breaking changes that will impact all user
|
|
166
171
|
### Added
|
167
172
|
- initial release
|
168
173
|
|
169
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/2.4.
|
174
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/2.4.2...HEAD
|
175
|
+
[2.4.1]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/v2.4.1...2.4.2
|
170
176
|
[2.4.1]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/v2.4.0...2.4.1
|
171
177
|
[2.4.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/v2.3.0...2.4.0
|
172
178
|
[2.3.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/v2.2.0...2.3.0
|
data/bin/check-emr-steps.rb
CHANGED
data/bin/check-ses-statistics.rb
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
# for details.
|
29
29
|
|
30
30
|
require 'sensu-plugins-aws'
|
31
|
-
require 'sensu-plugin/
|
31
|
+
require 'sensu-plugin/check/cli'
|
32
32
|
require 'aws-sdk'
|
33
33
|
|
34
34
|
class CheckSesStatistics < Sensu::Plugin::Check::CLI
|
@@ -118,7 +118,7 @@ class CheckSesStatistics < Sensu::Plugin::Check::CLI
|
|
118
118
|
unknown 'Empty response from AWS SES API' if response.empty? # Can this happen?
|
119
119
|
unknown 'No data points from AWS SES API' if response.send_data_points.empty?
|
120
120
|
|
121
|
-
|
121
|
+
response.send_data_points.sort_by(&:timestamp).last
|
122
122
|
bounces = data_point.bounces
|
123
123
|
rejects = data_point.rejects
|
124
124
|
complaints = data_point.complaints
|
data/bin/metrics-ses.rb
CHANGED
@@ -51,7 +51,7 @@ class SesMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
51
51
|
unknown 'Empty response from AWS SES API' if response.empty? # Can this happen?
|
52
52
|
unknown 'No data points from AWS SES API' if response.send_data_points.empty?
|
53
53
|
|
54
|
-
data_point = response.send_data_points
|
54
|
+
data_point = response.send_data_points.sort_by(&:timestamp).last
|
55
55
|
output config[:scheme] + '.bounces', data_point.bounces
|
56
56
|
output config[:scheme] + '.rejects', data_point.rejects
|
57
57
|
output config[:scheme] + '.complaints', data_point.complaints
|