dynamo-autoscale 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +4 -0
- data/CHANGELOG +4 -0
- data/README.md +1 -0
- data/lib/dynamo-autoscale/scale_report.rb +4 -1
- data/lib/dynamo-autoscale/version.rb +1 -1
- metadata +3 -2
data/.travis.yml
ADDED
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# DynamoDB Autoscaling
|
2
|
+
[](https://travis-ci.org/invisiblehand/dynamo-autoscale)
|
2
3
|
|
3
4
|
**IMPORTANT**: It's highly recommended that you read this README before
|
4
5
|
continuing. This project, if used incorrectly, has a lot of potential to cost
|
@@ -48,12 +48,15 @@ module DynamoAutoscale
|
|
48
48
|
|
49
49
|
def formatted_scale_event(scale_event)
|
50
50
|
max_length = max_metric_length(scale_event)
|
51
|
+
|
51
52
|
['reads', 'writes'].map do |type|
|
53
|
+
next unless scale_event.has_key? "#{type}_from".to_sym
|
54
|
+
|
52
55
|
type_from = scale_event["#{type}_from".to_sym].to_s.rjust(max_length)
|
53
56
|
type_to = scale_event["#{type}_to".to_sym].to_s.rjust(max_length)
|
54
57
|
|
55
58
|
"#{type.capitalize.rjust(6)}: #{scale_direction(type_from, type_to)} from #{type_from} to #{type_to}"
|
56
|
-
end
|
59
|
+
end.compact
|
57
60
|
end
|
58
61
|
|
59
62
|
def max_metric_length(scale_event)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynamo-autoscale
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir:
|
11
11
|
- bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-07-
|
13
|
+
date: 2013-07-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: aws-sdk
|
@@ -117,6 +117,7 @@ extra_rdoc_files: []
|
|
117
117
|
files:
|
118
118
|
- .gitignore
|
119
119
|
- .ruby-version
|
120
|
+
- .travis.yml
|
120
121
|
- CHANGELOG
|
121
122
|
- Gemfile
|
122
123
|
- Gemfile.lock
|