UsageAggregation Class
Describes the usageAggregation.
- Inheritance
-
msrest.serialization.ModelUsageAggregation
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
|
Unique Id for the usage aggregate. |
name
Required
|
Name of the usage aggregate. |
type
Required
|
Type of the resource being returned. |
subscription_id
Required
|
The subscription identifier for the Azure user. |
meter_id
Required
|
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
|
The unit in which the usage for this resource is being counted, e.g. Hours, GB. |
meter_name
Required
|
Friendly name of the resource being consumed. |
meter_category
Required
|
Category of the consumed resource. |
meter_sub_category
Required
|
Sub-category of the consumed resource. |
meter_region
Required
|
Region of the meterId used for billing purposes. |
info_fields
Required
|
Key-value pairs of instance details (legacy format). |
instance_data
Required
|
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
|
|
Azure SDK for Python