UsageAggregation interface

Describes the usageAggregation.

Properties

id

Unique Id for the usage aggregate.

infoFields

Key-value pairs of instance details (legacy format).

instanceData

Key-value pairs of instance details represented as a string.

meterCategory

Category of the consumed resource.

meterId

Unique ID for the resource that was consumed (aka ResourceID).

meterName

Friendly name of the resource being consumed.

meterRegion

Region of the meterId used for billing purposes

meterSubCategory

Sub-category of the consumed resource.

name

Name of the usage aggregate.

quantity

The amount of the resource consumption that occurred in this time frame.

subscriptionId

The subscription identifier for the Azure user.

type

Type of the resource being returned.

unit

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

usageEndTime

UTC end time for the usage bucket to which this usage aggregate belongs.

usageStartTime

UTC start time for the usage bucket to which this usage aggregate belongs.

Property Details

id

Unique Id for the usage aggregate.

id?: string

Property Value

string

infoFields

Key-value pairs of instance details (legacy format).

infoFields?: InfoField

Property Value

instanceData

Key-value pairs of instance details represented as a string.

instanceData?: string

Property Value

string

meterCategory

Category of the consumed resource.

meterCategory?: string

Property Value

string

meterId

Unique ID for the resource that was consumed (aka ResourceID).

meterId?: string

Property Value

string

meterName

Friendly name of the resource being consumed.

meterName?: string

Property Value

string

meterRegion

Region of the meterId used for billing purposes

meterRegion?: string

Property Value

string

meterSubCategory

Sub-category of the consumed resource.

meterSubCategory?: string

Property Value

string

name

Name of the usage aggregate.

name?: string

Property Value

string

quantity

The amount of the resource consumption that occurred in this time frame.

quantity?: number

Property Value

number

subscriptionId

The subscription identifier for the Azure user.

subscriptionId?: string

Property Value

string

type

Type of the resource being returned.

type?: string

Property Value

string

unit

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

unit?: string

Property Value

string

usageEndTime

UTC end time for the usage bucket to which this usage aggregate belongs.

usageEndTime?: Date

Property Value

Date

usageStartTime

UTC start time for the usage bucket to which this usage aggregate belongs.

usageStartTime?: Date

Property Value

Date