sensu-plugins-eventstore 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb9fcbb07bb6d7c9eb9046acf22de58cadc07ce1
4
- data.tar.gz: 2de51efa49e7d5e8d4ccc9eb8b2d79b59b5dcffb
3
+ metadata.gz: 5038efd80b3ac586fefb9c8ba207d5049b00cdf0
4
+ data.tar.gz: c9b54ddc7a3557cb286de64944a2e27007cd4a61
5
5
  SHA512:
6
- metadata.gz: df30944566cc2831d011e23c4123ebab032791ac64ad637aee342c4b96f48c7c64bd17bb1acbb5a3559c92c1f979fc9269a77881ada16d34575d09f349e052f9
7
- data.tar.gz: da544bec1f5dc5a0ae7cef0be339b2c11dc2950ba0c1d9a51df03c5556ceb0688fd148f100e3978128795767136de6d3c5a4275170c99f60588e74f2e05b55fd
6
+ metadata.gz: c8a921ba565320f7b848f9dccf16adbcde7343c6844442cd0911352a74b225112387109677436076a3e334ef72d0a97062fa464a8f50253de8adfbec9c33d886
7
+ data.tar.gz: 637c0bb78e09bc5d7e37b9d0ddb418cd3914cd949f4a13f37e07efd59282105c0a43cd6caa4f3a832db6fbbff08684abd2f73fdf12ac8727497df01d8facc380
@@ -53,19 +53,19 @@ class Stats < Sensu::Plugin::Metric::CLI::Graphite
53
53
 
54
54
  option :use_authentication,
55
55
  description: 'Should use authentication (Default false)',
56
- short: '-ua',
57
- long: '--auth auth',
56
+ short: '-u',
57
+ long: '--use_authentication use_authentication',
58
58
  default: 'false'
59
59
 
60
60
  option :auth_user,
61
61
  description: 'Username for stats stream auth. (Default "admin")',
62
- short: '-usr',
62
+ short: '-r',
63
63
  long: '--auth_user auth_user',
64
64
  default: 'admin'
65
65
 
66
66
  option :auth_password,
67
67
  description: 'What port to use. (Default "changeit")',
68
- short: '-pwd',
68
+ short: '-w',
69
69
  long: '--auth_password auth_password',
70
70
  default: 'changeit'
71
71
 
@@ -114,8 +114,11 @@ class Stats < Sensu::Plugin::Metric::CLI::Graphite
114
114
  latest_event_url = latest_entry.at_xpath('.//id').content
115
115
 
116
116
  element_temp_file = get_stream latest_event_url, "application/json"
117
+
117
118
  json_stats = JSON.parse element_temp_file.read
118
119
 
120
+ puts "json stats #{json_stats}"
121
+
119
122
  stats_dict = parse_json_stats json_stats
120
123
 
121
124
  stats_dict.each { |stat| output stat[0], stat[1]}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-eventstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Wroe