sensu-plugins-aws 2.4.1 → 2.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGQ3MDRlNGRkNTQzZmRkNDgwYWEyZjA0NDVjM2RmNTA0ZTE5YzU0YQ==
4
+ ODBjODMyNGMyZGQ5NWRhZTFkNzU1YjExZTBkZWZlYzZlMTg4ODAzNg==
5
5
  data.tar.gz: !binary |-
6
- NTFjNTg3ZTExN2Y4YmUwMGUxZDQzMWJjZmIzYmZmY2UyNGFlOTExMw==
6
+ OGFiY2JjNDIxMjZmMjhjM2Q5N2Q3ZWIxNzI0YWUwZDQzNGIxOTMwMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjdjNDYxZWFkZGE1ZmZjM2Y5MTZjNTM1ZTg5YjBhNTgxMDRhNjJiMjU4MjMy
10
- MGZkM2RlMzY1YzhhZTBkMmNjYzNlMzdjMGFkYWVjODkyMzU1NTdiNGVlYmZj
11
- ZDk0MDBlNzIwOGEzM2NjOGRjNWZmMTgzZjI1ZGEyYTQ5M2RmMmM=
9
+ ODMyZmI3OTcyM2Q0Mzg2MjY0MDU5NmI5Njg2N2ZhMWMyMzg0M2E0NGMyOThj
10
+ MTk0ZTYyYzRhYzMyNWFmM2Q0ZDk5MDE0NmQ3NGQxM2MzYmUyZjA2YmIwMjcy
11
+ ZTBjNDBkZmI0ZTYyZWQxZTEwZmU3YmJlNWQzNWMzZDc4OGJhMDQ=
12
12
  data.tar.gz: !binary |-
13
- YmE5MzhkNDIzYTEyOWJjZTg3ODAxNTdhOTE1YTFiOGQwOWFkOWE2NTg2MjRm
14
- ODYwZDJkZDQwOWQ3MDhmMTk3ZGJkOGY0Nzc1YmI2ZDUyZTJlZjliNDdlZTRj
15
- YmRhOTIwMDM2ZTQ0YTQ0YmY0ODZmM2RiYzIyYTM3NWY2NTBkM2E=
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.1...HEAD
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
@@ -25,7 +25,7 @@
25
25
  # for details.
26
26
 
27
27
  require 'sensu-plugins-aws'
28
- require 'sensu-plugin/metric/cli'
28
+ require 'sensu-plugin/check/cli'
29
29
  require 'aws-sdk'
30
30
 
31
31
  class CheckEMRSteps < Sensu::Plugin::Check::CLI
@@ -28,7 +28,7 @@
28
28
  # for details.
29
29
 
30
30
  require 'sensu-plugins-aws'
31
- require 'sensu-plugin/metric/cli'
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
- data_point = response.send_data_points[-1]
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[-1]
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
@@ -2,7 +2,7 @@ module SensuPluginsAWS
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 4
5
- PATCH = 1
5
+ PATCH = 2
6
6
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors