bin/check-elb-latency.rb in sensu-plugins-aws-1.2.0 vs bin/check-elb-latency.rb in sensu-plugins-aws-2.0.0

- old
+ new

@@ -142,20 +142,20 @@ @severities.keys.each do |severity| threshold = config[:"#{severity}_over"] next unless threshold next if metric_value < threshold flag_alert severity, - "; #{elbs.size == 1 ? nil : "#{elb.inspect}'s"} Latency is #{sprintf '%.3f', metric_value} seconds. (expected lower than #{sprintf '%.3f', threshold})" # rubocop:disable all + "; #{elbs.size == 1 ? nil : "#{elb.inspect}'s"} Latency is #{sprintf '%.3f', metric_value} seconds. (expected lower than #{sprintf '%.3f', threshold})" break end end def run - @message = if elbs.size == 1 - elbs.first.inspect - else - "#{elbs.size} load balancers total" - end + @message = if elbs.size == 1 + elbs.first.inspect + else + "#{elbs.size} load balancers total" + end @severities = { critical: false, warning: false }