Compartilhar via


UsageAggregation Class

Describes the usageAggregation.

Inheritance
msrest.serialization.Model
UsageAggregation

Constructor

UsageAggregation(*, id: str | None = None, name: str | None = None, type: str | None = None, subscription_id: str | None = None, meter_id: str | None = None, usage_start_time: datetime | None = None, usage_end_time: datetime | None = None, quantity: float | None = None, unit: str | None = None, meter_name: str | None = None, meter_category: str | None = None, meter_sub_category: str | None = None, meter_region: str | None = None, info_fields: InfoField | None = None, instance_data: str | None = None, **kwargs)

Parameters

Name Description
id
Required
str

Unique Id for the usage aggregate.

name
Required
str

Name of the usage aggregate.

type
Required
str

Type of the resource being returned.

subscription_id
Required
str

The subscription identifier for the Azure user.

meter_id
Required
str

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

usage_start_time
Required

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

usage_end_time
Required

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

quantity
Required

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

unit
Required
str

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

meter_name
Required
str

Friendly name of the resource being consumed.

meter_category
Required
str

Category of the consumed resource.

meter_sub_category
Required
str

Sub-category of the consumed resource.

meter_region
Required
str

Region of the meterId used for billing purposes.

info_fields
Required

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

instance_data
Required
str

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

Keyword-Only Parameters

Name Description
id
Required
name
Required
type
Required
subscription_id
Required
meter_id
Required
usage_start_time
Required
usage_end_time
Required
quantity
Required
unit
Required
meter_name
Required
meter_category
Required
meter_sub_category
Required
meter_region
Required
info_fields
Required
instance_data
Required