Module: Cloudability::Client::BillingReports

Included in:
Cloudability::Client
Defined in:
lib/cloudability/client/billing_reports.rb

Instance Method Summary collapse

Instance Method Details

#billing_report(options = {}) ⇒ Array<Hashie::Mash> Also known as: billing_reports

Generate a report of your spend

Examples:

generate report

.billing_report(vendor: 'Amazon')
.billing_report(by: 'vendor')
.billing_report(by: 'service', vendor: 'Amazon', period: '2012-03-01')

Parameters:

  • optional (Hash)

    parameters

Returns:

  • (Array<Hashie::Mash>)

    array of Hashie::Mashes

See Also:



14
15
16
17
# File 'lib/cloudability/client/billing_reports.rb', line 14

def billing_report(options={})
  request = get '/1/billing_reports', options
  convert_to_mashes request
end