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.

Inheritance
azure.mgmt.consumption.models._models_py3.UsageDetail
LegacyUsageDetail

Constructor

LegacyUsageDetail(**kwargs)

Variables

Name Description
id
str

The full qualified ARM ID of an event.

name
str

The ID that uniquely identifies an event.

type
str

Resource type.

etag
str

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
str

Billing Account identifier.

billing_account_name
str

Billing Account Name.

billing_period_start_date

The billing period start date.

billing_period_end_date

The billing period end date.

billing_profile_id
str

Billing Profile identifier.

billing_profile_name
str

Billing Profile Name.

account_owner_id
str

Account Owner Id.

account_name
str

Account Name.

subscription_id
str

Subscription guid.

subscription_name
str

Subscription name.

date

Date for the usage record.

product
str

Product name for the consumed service or purchase. Not available for Marketplace.

part_number
str

Part Number of the service used. Can be used to join with the price sheet. Not available for marketplace.

meter_id
str

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
str

Billing Currency.

resource_location
str

Resource Location.

consumed_service
str

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
str

Unique identifier of the Azure Resource Manager usage detail resource.

resource_name
str

Resource Name.

service_info1
str

Service-specific metadata.

service_info2
str

Legacy field with optional service-specific metadata.

additional_info
str

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
str

Invoice Section Name.

cost_center
str

The cost center of this department if it is a department and a cost center is provided.

resource_group
str

Resource Group Name.

reservation_id
str

ARM resource id of the reservation. Only applies to records relevant to reservations.

reservation_name
str

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
str

Product Order Id. For reservations this is the Reservation Order ID.

product_order_name
str

Product Order Name. For reservations this is the SKU that was purchased.

offer_id
str

Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P.

is_azure_credit_eligible

Is Azure Credit Eligible.

term
str

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
str

Publisher Name.

publisher_type
str

Publisher Type.

plan_name
str

Plan Name.

charge_type
str

Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund.

frequency
str

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
str

Unique identifier for the applicable benefit.

benefit_name
str

Name of the applicable benefit.

pricing_model

Identifier that indicates how the meter is priced. Known values are: "On Demand", "Reservation", "Spot".