class PlatformAPI::EnterpriseAccountUsageMonthly
Usage for an enterprise account at a monthly resolution.
Public Class Methods
new(client)
click to toggle source
# File lib/platform-api/client.rb, line 1860 def initialize(client) @client = client end
Public Instance Methods
info(enterprise_account_id)
click to toggle source
Retrieves usage for an enterprise account for a range of months. Start and end dates can be specified as query parameters using the date format, YYYY-MM format. For example, '/enterprise-accounts/example-account/usage/monthly?start=2019-01&end=2019-02' specifies usage in January and February for 2019. If no end date is specified, one month of usage is returned.
@param enterprise_account_id: unique identifier of the enterprise account
# File lib/platform-api/client.rb, line 1867 def info(enterprise_account_id) @client.enterprise_account_usage_monthly.info(enterprise_account_id) end