Learn R Programming

AzureSMR (version 0.2.6)

azureExpenseCalculator: Calculate cost of using a specific instance of Azure for certain period.

Description

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.

Usage

azureExpenseCalculator(azureActiveContext, instance = "", timeStart, timeEnd,
  granularity, currency, locale, offerId, region, verbose = FALSE)

Arguments

azureActiveContext

A container used for caching variables used by AzureSMR, created by createAzureContext()

instance

Instance name that one would like to check expense. It is by default empty, which returns data consumption for all instances under subscription.

timeStart

Start time.

timeEnd

End time.

granularity

Aggregation granularity. Can be either "Daily" or "Hourly".

currency

Currency in which price rating is measured.

locale

Locality information of subscription.

offerId

Offer ID of the subscription. For more information see https://azure.microsoft.com/en-us/support/legal/offer-details/

region

region information about the subscription.

Value

Total cost measured in the given currency of the specified Azure instance in the period.

See Also

Other Cost functions: azureDataConsumption, azurePricingRates