cloudability 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +52 -18
- data/cloudability.gemspec +1 -0
- data/lib/cloudability.rb +65 -4
- data/lib/cloudability/client/billing_reports.rb +22 -0
- data/lib/cloudability/client/budgets.rb +15 -0
- data/lib/cloudability/client/cost_reports.rb +33 -0
- data/lib/cloudability/client/credentials.rb +15 -0
- data/lib/cloudability/client/organizations.rb +76 -0
- data/lib/cloudability/client/usage_reports.rb +33 -0
- data/lib/cloudability/version.rb +1 -1
- data/spec/cloduability/billing_spec.rb +16 -34
- data/spec/cloduability/budgets_spec.rb +14 -49
- data/spec/cloduability/cost_spec.rb +79 -0
- data/spec/cloduability/credentials_spec.rb +6 -15
- data/spec/cloduability/organizations_spec.rb +41 -22
- data/spec/cloduability/usage_spec.rb +44 -0
- data/spec/fixtures/billing_reports +18 -0
- data/spec/fixtures/budgets +18 -0
- data/spec/fixtures/{report_by_period → cost/filters} +7 -7
- data/spec/fixtures/cost/measures +18 -0
- data/spec/fixtures/cost/report +16 -0
- data/spec/fixtures/cost/reports +18 -0
- data/spec/fixtures/usage/filters +18 -0
- data/spec/fixtures/usage/measures +18 -0
- data/spec/fixtures/usage/reports +18 -0
- data/spec/spec_helper.rb +3 -1
- metadata +44 -13
- data/lib/cloudability/billing.rb +0 -65
- data/lib/cloudability/budgets.rb +0 -61
- data/lib/cloudability/credentials.rb +0 -34
- data/lib/cloudability/organizations.rb +0 -71
- data/lib/cloudability/time_helper.rb +0 -25
- data/spec/fixtures/all_budgets +0 -18
- data/spec/fixtures/report_by_account +0 -18
data/spec/fixtures/all_budgets
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Server: nginx/1.4.4
|
3
|
-
Date: Wed, 25 Dec 2013 03:38:54 GMT
|
4
|
-
Content-Type: application/json
|
5
|
-
Content-Length: 221
|
6
|
-
Connection: keep-alive
|
7
|
-
Status: 200 OK
|
8
|
-
Strict-Transport-Security: max-age=31536000
|
9
|
-
Set-Cookie: _mkra_ctxt=9c17829664b635eb1a6dd2d98800f709--200; path=/; secure
|
10
|
-
X-UA-Compatible: IE=Edge,chrome=1
|
11
|
-
ETag: "38c868700599b19a2926ba6a2af50fa2"
|
12
|
-
Cache-Control: max-age=0, private, must-revalidate
|
13
|
-
X-Request-Id: e803b952aafca52d3eb7489e1ad842d5
|
14
|
-
X-Runtime: 0.053636
|
15
|
-
X-Rack-Cache: miss
|
16
|
-
Origin: app.cloudability.com
|
17
|
-
|
18
|
-
[{"predicted_monthly_spend":{"cents":1111111,"currency":{"id":146,"key":"usd","priority":1,"iso_code":"USD"}},"subject":"1111-1111-1111","type":"Account","currency":"USD","id":2039,"is_active":true,"threshold":"50000.0"}]
|
@@ -1,18 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Server: nginx/1.4.4
|
3
|
-
Date: Wed, 25 Dec 2013 02:18:25 GMT
|
4
|
-
Content-Type: application/json
|
5
|
-
Content-Length: 1792
|
6
|
-
Connection: keep-alive
|
7
|
-
Status: 200 OK
|
8
|
-
Strict-Transport-Security: max-age=31536000
|
9
|
-
Set-Cookie: _mkra_ctxt=4f95f0a64cfeb8e02daf80dfb0ea9991--200; path=/; secure
|
10
|
-
X-UA-Compatible: IE=Edge,chrome=1
|
11
|
-
ETag: "84a218eedbe7d943b0857ee19afb8fa2"
|
12
|
-
Cache-Control: max-age=0, private, must-revalidate
|
13
|
-
X-Request-Id: 8891c880e5625ce8d39bdd79e7b12d7f
|
14
|
-
X-Runtime: 0.221266
|
15
|
-
X-Rack-Cache: miss
|
16
|
-
Origin: app.cloudability.com
|
17
|
-
|
18
|
-
[{"account_id":null,"account_name":null,"credential_id":22975,"credential_name":"Capsule CRM 1","vendor_id":77,"vendor_name":"Capsule CRM","spend":11111.0,"currency":"USD"},{"account_id":11731,"account_name":"xxx","credential_id":8778,"credential_name":"SL54339","vendor_id":67,"vendor_name":"SoftLayer","spend":11111.11,"currency":"USD"}]
|