<commit_before>#!/usr/bin/env ruby
#
# Amazon RDS cloudwatch sensu plugin
# ===
#
# Dependencies
# -----------
# - http://docs.aws.amazon.com/AmazonRDS/latest/CommandLineReference/StartCLI.html
#
#
# Authors: <NAME> <https://github.com/SeattleMicah> <NAME> <https://github.com/kaezi>
#
#
# Released under the same terms as Sensu (the MIT license); see LICENSE
# for details.

require 'aws/cloud_watch'
require 'optparse'
require 'pp'

aws_access_key_id=""
aws_secret_key=""
aws_region=""
aws_debug=false

options = {}
optparse = OptionParser.new do|opts|

  opts.on('-h', '--help', '') do
    puts opts
    exit
  end

  opts.on('-H', '--host HOST', 'Warning threshold') do |host|
    options[:host] = host
  end

  opts.on('-w', '--warn WARN', 'Warning threshold') do |warn|
    options[:warn] = warn
  end

  opts.on('-c', '--crit CRIT', 'Critical threshold') do |crit|
    options[:crit] = crit
  end<commit_msg>description opts<commit_after>#!/usr/bin/env ruby
#
# Amazon RDS cloudwatch sensu plugin
# ===
#
# Dependencies
# -----------
# - http://docs.aws.amazon.com/AmazonRDS/latest/CommandLineReference/StartCLI.html
#
#
# Authors: <NAME> <https://github.com/SeattleMicah> <NAME> <https://github.com/kaezi>
#
#
# Released under the same terms as Sensu (the MIT license); see LICENSE
# for details.

require 'aws/cloud_watch'
require 'optparse'
require 'pp'

aws_access_key_id=""
aws_secret_key=""
aws_region=""
aws_debug=false

options = {}
optparse = OptionParser.new do|opts|

  opts.on('-h', '--help', '') do
    puts opts
    exit
  end

  opts.on('-H', '--host HOST', 'Hostname') do |host|
    options[:host] = host
  end

  opts.on('-w', '--warn WARN', 'Warning threshold') do |warn|
    options[:warn] = warn
  end

  opts.on('-c', '--crit CRIT', 'Critical threshold') do |crit|
    options[:crit] = crit
  end
{'fraction_non_alphanumeric': 0.18530701754385964, 'fraction_numerical': 0.0, 'mean_word_length': 3.6202531645569622, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7473063', 'n_tokens_mistral': 674, 'n_tokens_neox': 653, 'n_words': 157}