dataConsumptionDSVM: Get data consumption of an Azure subscription for a time...

Description Usage Arguments See Also

View source: R/expenseCalculator.R

Description

Formats of start time point and end time point follow ISO 8601 standard. For example, if you want to calculate data consumption between Feb 21, 2017 to Feb 25, 2017, with an aggregation granularity of "daily based", the inputs should be "2017-02-21 00:00:00" and "2017-02-25 00:00:00", for start time point and end time point, respectively. If the aggregation granularity is hourly based, the inputs can be "2017-02-21 01:00:00" and "2017-02-21 02:00:00", for start and end time point, respectively. NOTE by default the Azure data consumption API does not allow an aggregation granularity that is finer than an hour. In the case of "hourly based" granularity, if the time difference between start and end time point is less than an hour, data consumption will still be calculated hourly based with end time postponed. For example, if the start time point and end time point are "2017-02-21 00:00:00" and "2017-02-21 00:45:00", the actual returned results are data consumption in the interval of "2017-02-21 00:00:00" and "2017-02-21 01:00:00". However this calculation is merely for retrieving the information of an existing instance instance (e.g. 'meterId') with which the pricing rate is multiplied by to obtain the overall expense. Time zone of all time inputs are synchronized to UTC.

Usage

1
2
dataConsumptionDSVM(context, hostname = "", time.start, time.end,
  granularity = "Hourly", verbose = FALSE)

Arguments

context

Authentication context of AzureSMR encapsulating the TID, CID, and key obtained from Azure Actrive Directory.

hostname

Name of the DSVM. Lowercase characters or numbers only. Special characters are not permitted.

time.start

Start time.

time.end

End time.

granularity

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

instance

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

See Also

Other Cost.functions: costDSVM


Azure/AzureDSVM documentation built on Oct. 14, 2017, 4:57 a.m.