bin/check-cloudwatch-metric.rb in sensu-plugins-aws-3.2.1 vs bin/check-cloudwatch-metric.rb in sensu-plugins-aws-4.0.0

- old
+ new

@@ -25,14 +25,20 @@ # Andrew Matheny # Released under the same terms as Sensu (the MIT license); see LICENSE # for details. # -require 'sensu-plugins-aws/cloudwatch-common' +require 'sensu-plugins-aws' require 'sensu-plugin/check/cli' require 'aws-sdk' class CloudWatchMetricCheck < Sensu::Plugin::Check::CLI + option :aws_region, + short: '-r AWS_REGION', + long: '--aws-region REGION', + description: 'AWS Region (defaults to us-east-1).', + default: 'us-east-1' + option :namespace, description: 'CloudWatch namespace for metric', short: '-n NAME', long: '--namespace NAME', default: 'AWS/EC2'