bin/check-dynamodb-capacity.rb in sensu-plugins-aws-0.0.1.alpha.2 vs bin/check-dynamodb-capacity.rb in sensu-plugins-aws-0.0.1
- old
+ new
@@ -29,11 +29,10 @@
# Copyright 2014 github.com/y13i
# Released under the same terms as Sensu (the MIT license); see LICENSE
# for details.
#
-require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'time'
class CheckDynamoDB < Sensu::Plugin::Check::CLI
@@ -152,10 +151,10 @@
@severities.keys.each do |severity|
threshold = config[:"#{severity}_over"]
next unless threshold
next if percentage < threshold
- flag_alert severity, "; On table #{table.name} consumed #{r_or_w} capacity is #{sprintf '%.2f', percentage}% (expected_lower_than #{threshold})"
+ flag_alert severity, "; On table #{table.name} consumed #{r_or_w} capacity is #{sprintf '%.2f', percentage}% (expected_lower_than #{threshold})" # rubocop:disable all
break
end
end
end