amazon-pricing 0.1.78 → 0.1.79

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmM4Y2U2ZDE4NjQ3MjU5Y2NiYmEyMzdiNWNkZjg0Mjg5MjczMGVlNA==
4
+ MmQyMjM5MmQ3ZWRjMTIxYzk2MTMzNzQ0OTI1ODMxZWI4NmNlOWIxYw==
5
5
  data.tar.gz: !binary |-
6
- YzY5ZmU2YjZjYzU4Nzc1NTVhNDY5MWE2ZjVkYjA5YTEzNTg5NDljYw==
6
+ MWIzYmE4ZWJlNDZlMDY5MGZhZWFjMWUxNWFjMjIyNTYwNzNjYzFmYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWYwYWZhZDUzZWZjMGI1ZTE5MGRlNWZhYWFjODY1OGI0ZDBiMWFjZTZiOGE4
10
- NmQyYjNhOTA1ZmExODkxOTZhNjlhZWFhZWRiMjU1N2UzOTFhMWY2ZWFjMWI0
11
- ZDRmODYzZDRjMWQxZTRmYjViOGI0Yjk4NjhjN2U1NDM0OTAyNjY=
9
+ ZTVkZDY4NmIyNDM4NzExZWQxNmFhODQ1NjY1ZjJhNTQ3NTQ5NzE0OTgxNWQz
10
+ NjQyYjE2MGI5MmE3NWU2ZTM1ZGIyNDI4ZDY0NGE1NTY4OGZiNTcyODRmZDJi
11
+ MjY4MDgzYjZhYjgxMWI0MmNkMjY2MGVhYzM2ZjgwZDg0YmM4MjU=
12
12
  data.tar.gz: !binary |-
13
- MDhmNTRlZjkwZWNhMWIxMzNiNTAzZDRiMGY0MmNkYTEyM2NhYzM5NTkzMTRi
14
- MTUzZjZlZWI5ZGQ1MWI1YjAxOTk4OWMzMDIzMWE2NWE1N2ZjMzc1ZGM4ZTI4
15
- MDg0NGUwYWFkNGE0NTY0MDQwMjJiOTE0ZGI4YTUyNjRkYjgwYzk=
13
+ NmU5YzMzN2RhZjhlMGYyYTFiMWNhYjI2OGM2NjM5NjMxZjEyMmEzOTUzNTY1
14
+ ZmE4ZjA0NTY4ZDAyNjA4MzY2NTE5ODU0ZmRhYmY3ZjhiZTFiOGU0YTVlNmQy
15
+ Y2YxOTRlZjJiNjI3YzAzMTBmN2MxMDQwYTNkYTlmYWM0N2MzZDA=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- amazon-pricing (0.1.78)
4
+ amazon-pricing (0.1.79)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -116,6 +116,14 @@ module AwsPricing
116
116
  end
117
117
  end
118
118
 
119
+ def self.disk_bytes_per_sec_capacity(api_name)
120
+ PER_SEC_CAPACITIES[api_name][0] * 1024 * 1024
121
+ end
122
+
123
+ def self.disk_ops_per_sec_capacity(api_name)
124
+ PER_SEC_CAPACITIES[api_name][1]
125
+ end
126
+
119
127
  protected
120
128
 
121
129
  def self.get_disk(api_name)
@@ -280,6 +288,115 @@ module AwsPricing
280
288
  # e.g. RDS = http://aws-assets-pricing-prod.s3.amazonaws.com/pricing/rds/mysql/pricing-standard-deployments.js
281
289
  @@Compute_Units_Lookup = {}
282
290
 
291
+ private
292
+
293
+ # [MB/s capacity, Ops/s capacity]
294
+ PER_SEC_CAPACITIES = {
295
+ 'c1.medium' => [6000, 300000],
296
+ 'c1.xlarge' => [6000, 300000],
297
+ 'c3.2xlarge' => [8000, 600000],
298
+ 'c3.4xlarge' => [9000, 600000],
299
+ 'c3.8xlarge' => [15000, 600000],
300
+ 'c3.large' => [5000, 600000],
301
+ 'c3.xlarge' => [7000, 600000],
302
+ # c4.2xlarge is EBS-only
303
+ # c4.4xlarge is EBS-only
304
+ # c4.8xlarge is EBS-only
305
+ # c4.large is EBS-only
306
+ # c4.xlarge is EBS-only
307
+ # cache.c1.xlarge is not picked up by CloudWatch
308
+ # cache.m1.large is not picked up by CloudWatch
309
+ # cache.m1.medium is not picked up by CloudWatch
310
+ # cache.m1.small is not picked up by CloudWatch
311
+ # cache.m1.xlarge is not picked up by CloudWatch
312
+ # cache.m2.2xlarge is not picked up by CloudWatch
313
+ # cache.m2.4xlarge is not picked up by CloudWatch
314
+ # cache.m2.xlarge is not picked up by CloudWatch
315
+ # cache.m3.2xlarge is not picked up by CloudWatch
316
+ # cache.m3.large is not picked up by CloudWatch
317
+ # cache.m3.medium is not picked up by CloudWatch
318
+ # cache.m3.xlarge is not picked up by CloudWatch
319
+ # cache.r3.2xlarge is not picked up by CloudWatch
320
+ # cache.r3.4xlarge is not picked up by CloudWatch
321
+ # cache.r3.8xlarge is not picked up by CloudWatch
322
+ # cache.r3.large is not picked up by CloudWatch
323
+ # cache.r3.xlarge is not picked up by CloudWatch
324
+ # cache.t1.micro is not picked up by CloudWatch
325
+ # cache.t2.medium is not picked up by CloudWatch
326
+ # cache.t2.micro is not picked up by CloudWatch
327
+ # cache.t2.small is not picked up by CloudWatch
328
+ # cc1.4xlarge is not picked up by CloudWatch
329
+ 'cc2.8xlarge' => [2500, 50000],
330
+ # cg1.4xlarge is not picked up by CloudWatch
331
+ 'cr1.8xlarge' => [1500, 2000000],
332
+ 'd2.2xlarge' => [6000, 150000],
333
+ 'd2.4xlarge' => [9000, 170000],
334
+ 'd2.8xlarge' => [12000, 170000],
335
+ 'd2.xlarge' => [4000, 150000],
336
+ # db.cr1.8xlarge, like all RDS instances, are EBS-only
337
+ # db.m1.large, like all RDS instances, are EBS-only
338
+ # db.m1.medium, like all RDS instances, are EBS-only
339
+ # db.m1.small, like all RDS instances, are EBS-only
340
+ # db.m1.xlarge, like all RDS instances, are EBS-only
341
+ # db.m2.2xlarge, like all RDS instances, are EBS-only
342
+ # db.m2.4xlarge, like all RDS instances, are EBS-only
343
+ # db.m2.xlarge, like all RDS instances, are EBS-only
344
+ # db.m3.2xlarge, like all RDS instances, are EBS-only
345
+ # db.m3.large, like all RDS instances, are EBS-only
346
+ # db.m3.medium, like all RDS instances, are EBS-only
347
+ # db.m3.xlarge, like all RDS instances, are EBS-only
348
+ # db.m4.10xlarge, like all RDS instances, are EBS-only
349
+ # db.m4.2xlarge, like all RDS instances, are EBS-only
350
+ # db.m4.4xlarge, like all RDS instances, are EBS-only
351
+ # db.m4.large, like all RDS instances, are EBS-only
352
+ # db.m4.xlarge, like all RDS instances, are EBS-only
353
+ # db.r3.2xlarge, like all RDS instances, are EBS-only
354
+ # db.r3.4xlarge, like all RDS instances, are EBS-only
355
+ # db.r3.8xlarge, like all RDS instances, are EBS-only
356
+ # db.r3.large, like all RDS instances, are EBS-only
357
+ # db.r3.xlarge, like all RDS instances, are EBS-only
358
+ # db.t1.micro, like all RDS instances, are EBS-only
359
+ # db.t2.large, like all RDS instances, are EBS-only
360
+ # db.t2.medium, like all RDS instances, are EBS-only
361
+ # db.t2.micro, like all RDS instances, are EBS-only
362
+ # db.t2.small, like all RDS instances, are EBS-only
363
+ 'g2.2xlarge' => [1000, 12000],
364
+ 'g2.8xlarge' => [2000, 24000],
365
+ 'hi1.4xlarge' => [3000, 85000],
366
+ 'hs1.8xlarge' => [2000, 60000],
367
+ 'i2.2xlarge' => [13000, 500000],
368
+ 'i2.4xlarge' => [18000, 600000],
369
+ 'i2.8xlarge' => [14000, 700000],
370
+ 'i2.xlarge' => [5000, 300000],
371
+ 'm1.large' => [8000, 200000],
372
+ 'm1.medium' => [7000, 200000],
373
+ 'm1.small' => [7000, 200000],
374
+ 'm1.xlarge' => [8000, 200000],
375
+ 'm2.2xlarge' => [3000, 600000],
376
+ 'm2.4xlarge' => [4000, 700000],
377
+ 'm2.xlarge' => [5000, 1050000],
378
+ 'm3.2xlarge' => [6000, 500000],
379
+ 'm3.large' => [4000, 600000],
380
+ 'm3.medium' => [4000, 800000],
381
+ 'm3.xlarge' => [6000, 600000],
382
+ # m4.10xlarge is EBS-only
383
+ # m4.2xlarge is EBS-only
384
+ # m4.4xlarge is EBS-only
385
+ # m4.large is EBS-only
386
+ # m4.xlarge is EBS-only
387
+ 'r3.2xlarge' => [35000, 400000],
388
+ 'r3.4xlarge' => [55000, 450000],
389
+ 'r3.8xlarge' => [105000, 500000],
390
+ 'r3.large' => [10000, 200000],
391
+ 'r3.xlarge' => [20000, 300000],
392
+ # t1.micro is EBS-only
393
+ # t2.large is EBS-only
394
+ # t2.medium is EBS-only
395
+ # t2.micro is EBS-only
396
+ # t2.nano is EBS-only
397
+ # t2.small is EBS-only
398
+ 'x1.32xlarge' => [15000, 500000],
399
+ }
283
400
  end
284
401
 
285
402
  end
@@ -8,5 +8,5 @@
8
8
  # Home:: http://github.com/CloudHealth/amazon-pricing
9
9
  #++
10
10
  module AwsPricing
11
- VERSION = '0.1.78'
11
+ VERSION = '0.1.79'
12
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon-pricing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.78
4
+ version: 0.1.79
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Kinsella
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-08 00:00:00.000000000 Z
11
+ date: 2016-06-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A Ruby library for retrieving pricing for Amazon Web Services
14
14
  email:
@@ -87,12 +87,4 @@ rubygems_version: 2.4.8
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: Amazon Web Services Pricing Ruby gem
90
- test_files:
91
- - spec/lib/amazon-pricing/definitions/database-type_spec.rb
92
- - spec/lib/amazon-pricing/elasticache_pricing_spec.rb
93
- - spec/lib/amazon-pricing/rds_pricing_spec.rb
94
- - spec/spec_helper.rb
95
- - spec/support/.gitignore
96
- - test/ec2_instance_types_test.rb
97
- - test/helper.rb
98
- has_rdoc:
90
+ test_files: []