as-combined-metrics 1.0.5 → 1.0.6

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: 48bfc3f7a906e38a5b354666511c982324670843
4
- data.tar.gz: 6cbd8e81cdb7b0c75d09da5f76009bb6c5287fbf
3
+ metadata.gz: b59f6191b2809c7f50b49b2d124f89a0d8278c3a
4
+ data.tar.gz: b3665599d788bd4e7adc9d421551e0fd0497be46
5
5
  SHA512:
6
- metadata.gz: 706eeb6c9196cc470e104d48931307690d0a912cbe24cc8e46ef1e975e29b6f2532f364d99aebc95469ae1c04bf07e4a8f13fa6ee5ef18af10cf8e0eae3a1b1f
7
- data.tar.gz: de693a994d70bce3e905a8410fa30452ccece845d1cb69e0b29e90993fcafcf8cb92c6ba9f334136c73cc661e2bd334d8ab3d3d2be3da31c8686b5a75932ec15
6
+ metadata.gz: 22d3abbbc100cca8cfe3dc27b850a0e847d2d923b8bed90e1d221dc0c65691061bd5b675f83130d49130c2a209ea025fb8c21d51927cd3e90f0f2f9a62cf3d19
7
+ data.tar.gz: 213bbb707ab196f3c4569d477d62992435e150774e3429617ad128527356e02adecb7be896137100447a82fd619f108dd7a1a9c08f5a329f668b04d5c1092923
@@ -1,5 +1,5 @@
1
1
  module AsCombinedMetrics
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  ABOUT = "as-combined-metrics v#{VERSION} (c) #{Time.now.strftime("2015-%Y")} @innovia"
4
4
 
5
5
  $:.unshift File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib]))
@@ -1,8 +1,7 @@
1
1
  module AsCombinedMetrics::Cli::Poller
2
2
  def poll(interval)
3
3
  logger.progname = "#{Module.nesting.first.to_s} #{__method__}"
4
- @combined_metrics = {}
5
-
4
+
6
5
  if options[:scalein_only]
7
6
  modes = [:ScaleIn]
8
7
  elsif options[:scaleout_only]
@@ -12,9 +11,11 @@ module AsCombinedMetrics::Cli::Poller
12
11
  end
13
12
 
14
13
  loop do
14
+ @combined_metrics = {}
15
15
  modes.each do |mode|
16
16
  @config[:autoscale_group_name].each do |autoscale_group|
17
17
  logger.info "Polling metrics for #{autoscale_group} AutoScale Group on #{mode}"
18
+
18
19
  @config[mode].each do |metric|
19
20
  logger.debug "Getting stats for #{autoscale_group} AutoScale Group on metric #{metric}"
20
21
  @combined_metrics[metric[:metric_name]] ||= {}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: as-combined-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ami Mahloof
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-14 00:00:00.000000000 Z
11
+ date: 2016-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  version: 1.3.6
117
117
  requirements: []
118
118
  rubyforge_project:
119
- rubygems_version: 2.4.5.1
119
+ rubygems_version: 2.6.4
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Submit custom AWS CloudWatch metric that combines several other thresholds