LegacyUsageDetail Class
Legacy usage detail.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
Constructor
LegacyUsageDetail(**kwargs)
Variables
Name | Description |
---|---|
id
|
The full qualified ARM ID of an event. |
name
|
The ID that uniquely identifies an event. |
type
|
Resource type. |
etag
|
The etag for the resource. |
tags
|
A set of tags. Resource tags. |
kind
|
Required. Specifies the kind of usage details.Constant filled by server. Known values are: "legacy", "modern". |
billing_account_id
|
Billing Account identifier. |
billing_account_name
|
Billing Account Name. |
billing_period_start_date
|
The billing period start date. |
billing_period_end_date
|
The billing period end date. |
billing_profile_id
|
Billing Profile identifier. |
billing_profile_name
|
Billing Profile Name. |
account_owner_id
|
Account Owner Id. |
account_name
|
Account Name. |
subscription_id
|
Subscription guid. |
subscription_name
|
Subscription name. |
date
|
Date for the usage record. |
product
|
Product name for the consumed service or purchase. Not available for Marketplace. |
part_number
|
Part Number of the service used. Can be used to join with the price sheet. Not available for marketplace. |
meter_id
|
The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName. |
meter_details
|
The details about the meter. By default this is not populated, unless it's specified in $expand. |
quantity
|
The usage quantity. |
effective_price
|
Effective Price that's charged for the usage. |
cost
|
The amount of cost before tax. |
unit_price
|
Unit Price is the price applicable to you. (your EA or other contract price). |
billing_currency
|
Billing Currency. |
resource_location
|
Resource Location. |
consumed_service
|
Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage. |
resource_id
|
Unique identifier of the Azure Resource Manager usage detail resource. |
resource_name
|
Resource Name. |
service_info1
|
Service-specific metadata. |
service_info2
|
Legacy field with optional service-specific metadata. |
additional_info
|
Additional details of this usage item. By default this is not populated, unless it's specified in $expand. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied. |
invoice_section
|
Invoice Section Name. |
cost_center
|
The cost center of this department if it is a department and a cost center is provided. |
resource_group
|
Resource Group Name. |
reservation_id
|
ARM resource id of the reservation. Only applies to records relevant to reservations. |
reservation_name
|
User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations. |
product_order_id
|
Product Order Id. For reservations this is the Reservation Order ID. |
product_order_name
|
Product Order Name. For reservations this is the SKU that was purchased. |
offer_id
|
Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P. |
is_azure_credit_eligible
|
Is Azure Credit Eligible. |
term
|
Term (in months). 1 month for monthly recurring purchase. 12 months for a 1 year reservation. 36 months for a 3 year reservation. |
publisher_name
|
Publisher Name. |
publisher_type
|
Publisher Type. |
plan_name
|
Plan Name. |
charge_type
|
Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund. |
frequency
|
Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used. |
pay_g_price
|
Retail price for the resource. |
benefit_id
|
Unique identifier for the applicable benefit. |
benefit_name
|
Name of the applicable benefit. |
pricing_model
|
Identifier that indicates how the meter is priced. Known values are: "On Demand", "Reservation", "Spot". |
Azure SDK for Python