AzureUtilizationCollectionOperations Class

Implements

public class AzureUtilizationCollectionOperations extends BasePartnerComponent<Tuple<String,String>> implements IAzureUtilizationCollection

Constructor Summary

Constructor Description
AzureUtilizationCollectionOperations(IPartner rootPartnerOperations, String customerId, String subscriptionId)

Initializes a new instance of the AzureUtilizationCollectionOperations class.

Method Summary

Modifier and Type Method and Description
ResourceCollection<AzureUtilizationRecord> query(DateTime startTime, 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 utilization for resources that belong to an Azure subscription owned by a customer of the partner.

Inherited Members

BasePartnerComponent<TContext>.getContext() BasePartnerComponent<TContext>.getPartner() java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

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 query(DateTime startTime, 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 - 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 seek(String continuationToken, SeekOperation seekOperation)

Seeks pages 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.

Applies to