UsageAggregation Interface

public interface UsageAggregation

An immutable client-side representation of UsageAggregation.

Method Summary

Modifier and Type Method and Description
abstract String id()

Gets the id property: Unique Id for the usage aggregate.

abstract BinaryData infoFields()

Gets the infoFields property: Key-value pairs of instance details (legacy format).

abstract UsageAggregationInner innerModel()

Gets the inner com.azure.resourcemanager.commerce.fluent.models.UsageAggregationInner object.

abstract String instanceData()

Gets the instanceData property: Key-value pairs of instance details represented as a string.

abstract String meterCategory()

Gets the meterCategory property: Category of the consumed resource.

abstract String meterId()

Gets the meterId property: Unique ID for the resource that was consumed (aka ResourceID).

abstract String meterName()

Gets the meterName property: Friendly name of the resource being consumed.

abstract String meterRegion()

Gets the meterRegion property: Region of the meterId used for billing purposes.

abstract String meterSubCategory()

Gets the meterSubCategory property: Sub-category of the consumed resource.

abstract String name()

Gets the name property: Name of the usage aggregate.

abstract Double quantity()

Gets the quantity property: The amount of the resource consumption that occurred in this time frame.

abstract String subscriptionId()

Gets the subscriptionId property: The subscription identifier for the Azure user.

abstract String type()

Gets the type property: Type of the resource being returned.

abstract String unit()

Gets the unit property: The unit in which the usage for this resource is being counted, e.g.

abstract OffsetDateTime usageEndTime()

Gets the usageEndTime property: UTC end time for the usage bucket to which this usage aggregate belongs.

abstract OffsetDateTime usageStartTime()

Gets the usageStartTime property: UTC start time for the usage bucket to which this usage aggregate belongs.

Method Details

id

public abstract String id()

Gets the id property: Unique Id for the usage aggregate.

Returns:

the id value.

infoFields

public abstract BinaryData infoFields()

Gets the infoFields property: Key-value pairs of instance details (legacy format).

Returns:

the infoFields value.

innerModel

public abstract UsageAggregationInner innerModel()

Gets the inner com.azure.resourcemanager.commerce.fluent.models.UsageAggregationInner object.

Returns:

the inner object.

instanceData

public abstract String instanceData()

Gets the instanceData property: Key-value pairs of instance details represented as a string.

Returns:

the instanceData value.

meterCategory

public abstract String meterCategory()

Gets the meterCategory property: Category of the consumed resource.

Returns:

the meterCategory value.

meterId

public abstract String meterId()

Gets the meterId property: Unique ID for the resource that was consumed (aka ResourceID).

Returns:

the meterId value.

meterName

public abstract String meterName()

Gets the meterName property: Friendly name of the resource being consumed.

Returns:

the meterName value.

meterRegion

public abstract String meterRegion()

Gets the meterRegion property: Region of the meterId used for billing purposes.

Returns:

the meterRegion value.

meterSubCategory

public abstract String meterSubCategory()

Gets the meterSubCategory property: Sub-category of the consumed resource.

Returns:

the meterSubCategory value.

name

public abstract String name()

Gets the name property: Name of the usage aggregate.

Returns:

the name value.

quantity

public abstract Double quantity()

Gets the quantity property: The amount of the resource consumption that occurred in this time frame.

Returns:

the quantity value.

subscriptionId

public abstract String subscriptionId()

Gets the subscriptionId property: The subscription identifier for the Azure user.

Returns:

the subscriptionId value.

type

public abstract String type()

Gets the type property: Type of the resource being returned.

Returns:

the type value.

unit

public abstract String unit()

Gets the unit property: The unit in which the usage for this resource is being counted, e.g. Hours, GB.

Returns:

the unit value.

usageEndTime

public abstract OffsetDateTime usageEndTime()

Gets the usageEndTime property: UTC end time for the usage bucket to which this usage aggregate belongs.

Returns:

the usageEndTime value.

usageStartTime

public abstract OffsetDateTime usageStartTime()

Gets the usageStartTime property: UTC start time for the usage bucket to which this usage aggregate belongs.

Returns:

the usageStartTime value.

Applies to