IAzureUtilizationCollection.query(DateTime startTime, DateTime endTime, AzureUtilizationGranularity granularity, boolean showDetails, int size) Method
public abstract ResourceCollection
Retrieves utilization records for the Azure subscription.
Parameters
- startTime
- org.joda.time.DateTime
The starting time of when the utilization was metered in the billing system.
- endTime
- org.joda.time.DateTime
The ending time of when the utilization was metered in the billing system.
- granularity
- AzureUtilizationGranularity
The resource usage time granularity. Can either be daily or hourly. Default is daily.
- showDetails
- boolean
If set to true, the utilization records will be split by the resource instance levels. If set to false, the utilization records will be aggregated on the resource level. Default is true.
- size
- int
Maximum number of records to return. The returned resource collection will specify a next link in case there were more utilization records available.
Returns
The Azure resource utilization for the subscription.