IAzureUtilizationCollection Interface

Implements

IPartnerComponent<Tuple<java.lang.String,java.lang.String>>

public interface IAzureUtilizationCollection extends IPartnerComponent<Tuple<String,String>>

Groups behavior related to Azure subscription utilization records.

Method Summary

Modifier and Type Method and Description
abstract ResourceCollection<AzureUtilizationRecord> query(DateTime startTime, DateTime endTime, AzureUtilizationGranularity granularity, boolean showDetails, int size)

Retrieves utilization records for the Azure subscription.

abstract 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.

Method Details

query

public abstract 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 - 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 abstract ResourceCollection 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.

Applies to