Class AzureUtilizationCollectionOperations

java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<Tuple<String,​String>>
com.microsoft.store.partnercenter.utilization.AzureUtilizationCollectionOperations
All Implemented Interfaces:
IPartnerComponent<Tuple<String,​String>>, IAzureUtilizationCollection

public class AzureUtilizationCollectionOperations
extends BasePartnerComponent<Tuple<String,​String>>
implements IAzureUtilizationCollection
  • Constructor Details

    • AzureUtilizationCollectionOperations

      public AzureUtilizationCollectionOperations​(IPartner rootPartnerOperations, String customerId, String subscriptionId)
      Initializes a new instance of the AzureUtilizationCollectionOperations class.
      Parameters:
      rootPartnerOperations - The root partner operations instance.
      customerId - The customer identifier.
      subscriptionId - The subscription identifier.
  • Method Details

    • query

      public 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.
      Specified by:
      query in interface IAzureUtilizationCollection
      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 - An optional 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

      public ResourceCollection<AzureUtilizationRecord> seek​(String continuationToken, SeekOperation seekOperation)
      Seeks pages of utilization for resources that belong to an Azure subscription owned by a customer of the partner.
      Specified by:
      seek in interface IAzureUtilizationCollection
      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.