Interface IAzureUtilizationCollection
- All Superinterfaces:
IPartnerComponent<Tuple<String,String>>
- All Known Implementing Classes:
AzureUtilizationCollectionOperations
public interface IAzureUtilizationCollection extends IPartnerComponent<Tuple<String,String>>
Groups behavior related to Azure subscription utilization records.
-
Method Summary
Modifier and Type Method Description ResourceCollection<AzureUtilizationRecord>query(org.joda.time.DateTime startTime, org.joda.time.DateTime endTime, AzureUtilizationGranularity granularity, boolean showDetails, int size)Retrieves utilization records for the Azure subscription.ResourceCollection<AzureUtilizationRecord>seek(String continuationToken, SeekOperation seekOperation)Seeks pages of of utilization for resources that belong to an Azure subscription owned by a customer of the partner.Methods inherited from interface com.microsoft.store.partnercenter.IPartnerComponent
getContext, getPartner
-
Method Details
-
query
ResourceCollection<AzureUtilizationRecord> query(org.joda.time.DateTime startTime, org.joda.time.DateTime endTime, AzureUtilizationGranularity granularity, boolean showDetails, int size)Retrieves utilization records for the Azure subscription.- Parameters:
startTime- The starting time of when the utilization was metered in the billing system.endTime- The ending time of when the utilization was metered in the billing system.granularity- The resource usage time granularity. Can either be daily or hourly. Default is daily.showDetails- 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- 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.
-
seek
ResourceCollection<AzureUtilizationRecord> seek(String continuationToken, SeekOperation seekOperation)Seeks pages of of utilization for resources that belong to an Azure subscription owned by a customer of the partner.- Parameters:
continuationToken- The continuation token from the previous results.seekOperation- The seek operation to perform. Next is only supported.- Returns:
- The next page of utilization records.
-