Note if difference between timeStart
and timeEnd
is less than the finest granularity, e.g., "Hourly" (we notice this is a usual case when one needs to be aware of the charges of a job that takes less than an hour), the expense will be estimated based solely on computation hour. That is, the total expense is the multiplication of computation hour and pricing rate of the requested instance.
azureExpenseCalculator(azureActiveContext, instance = "", timeStart, timeEnd,
granularity, currency, locale, offerId, region, verbose = FALSE)
A container used for caching variables used by AzureSMR
, created by createAzureContext()
Instance name that one would like to check expense. It is by default empty, which returns data consumption for all instances under subscription.
Start time.
End time.
Aggregation granularity. Can be either "Daily" or "Hourly".
Currency in which price rating is measured.
Locality information of subscription.
Offer ID of the subscription. For more information see https://azure.microsoft.com/en-us/support/legal/offer-details/
region information about the subscription.
Total cost measured in the given currency of the specified Azure instance in the period.
Other Cost functions: azureDataConsumption
,
azurePricingRates