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 +4 -4
- data/lib/as-combined-metrics.rb +1 -1
- data/lib/as-combined-metrics/poller.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b59f6191b2809c7f50b49b2d124f89a0d8278c3a
|
4
|
+
data.tar.gz: b3665599d788bd4e7adc9d421551e0fd0497be46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22d3abbbc100cca8cfe3dc27b850a0e847d2d923b8bed90e1d221dc0c65691061bd5b675f83130d49130c2a209ea025fb8c21d51927cd3e90f0f2f9a62cf3d19
|
7
|
+
data.tar.gz: 213bbb707ab196f3c4569d477d62992435e150774e3429617ad128527356e02adecb7be896137100447a82fd619f108dd7a1a9c08f5a329f668b04d5c1092923
|
data/lib/as-combined-metrics.rb
CHANGED
@@ -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
|
-
|
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.
|
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:
|
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
|
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
|