as-combined-metrics 1.0.0 → 1.0.1

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: 6db99eeeb56b6107fd4f3e98aee2043f3addb23d
4
- data.tar.gz: 84ad3a6ce0b4bd2840c30829045769e2fa95c6cd
3
+ metadata.gz: 87337b3355528621a41b176c53446558e81ed5b5
4
+ data.tar.gz: a50a19f111920635d6a98c3533ec073af3cbc9cc
5
5
  SHA512:
6
- metadata.gz: 25583029dc0e54184705bb798f9649bd73c04c2f2d0bc9136b9e7ecd177a3a9dd199785386731bb75b89ba5c49158704ecabfae722fdf619127588fc0d785e4e
7
- data.tar.gz: ed23784918bf5407ea352a9c5cd591ddc6f28c0796e270f2d396b5f2e279695347c7ed042b45a9b1d177a19071659a6e7688dddbecf0037234cd53e539f620bd
6
+ metadata.gz: f5a47ede4391c655c1c96f2c3f70bb24df963794c55b99c4d4e7ae132aee9af3273b91d89c496cd25058a7236a77f323dc709d9114803440b0def6b69fd1be07
7
+ data.tar.gz: a5c4cddc166fdcdcc264e2c41ccebae77342b81b0dbae4f628f2bd658d1f42582ea7d2867196005e845f134a780ba36cad1c781a8aadefdbf727104799385d49
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  AWS Autoscale Combined Metrics
2
2
  ==============================
3
3
 
4
- Beta - Not Production Ready!
5
-
6
4
  AWS currently (July 2015) does not evalute other policies during a cooldown peroid
7
5
 
8
6
  meanning if CPU policy was triggered and scaling acitivty happened the other policies for Network / Memory etc.. would not be evaluated until the cooldown period for the first policy passed
@@ -81,6 +79,10 @@ options:
81
79
  # Default: 30
82
80
  ````
83
81
 
82
+ you may pass ---scalein-only or --scaleout-only to have this publish only scalein / scale out metric
83
+
84
+ if you choose --dryrun it will NOT publish to cloudwatch
85
+
84
86
  Required privileges
85
87
  -------------------
86
88
 
@@ -31,9 +31,9 @@ module AsCombinedMetrics::Cli::Aws
31
31
  if ENV['STACK_NAME']
32
32
  logger.info { set_color "STACK_NAME Env variable was found [ #{ENV['STACK_NAME']} ]", :cyan }
33
33
  @stack_name = ENV['STACK_NAME']
34
- elsif @config["cloudformation"]["stack_name"]
35
- logger.info { set_color "STACK_NAME was found in the config file #{@config["cloudformation"]["stack_name"]}", :cyan }
36
- @stack_name = @config["cloudformation"]["stack_name"]
34
+ elsif @config[:cloudformation][:stack_name]
35
+ logger.info { set_color "STACK_NAME was found in the config file #{@config[:cloudformation][:stack_name]}", :cyan }
36
+ @stack_name = @config[:cloudformation][:stack_name]
37
37
  else
38
38
  logger.fatal { set_color "verify_stack_name_env Env variable STACK_NAME was not found or does not have a value, exiting now...", :red }
39
39
  exit 1
@@ -1,5 +1,5 @@
1
1
  module AsCombinedMetrics
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
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]))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: as-combined-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ami Mahloof