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)

Parameters

kind
str or UsageDetailsKind
Required

Required. Specifies the kind of usage details.Constant filled by server. Possible values include: "legacy", "modern".

Variables

id
str

Resource Id.

name
str

Resource name.

type
str

Resource type.

tags
dict[str, str]

A set of tags. Resource tags.

billing_account_id
str

Billing Account identifier.

billing_account_name
str

Billing Account Name.

billing_period_start_date
datetime

The billing period start date.

billing_period_end_date
datetime

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
datetime

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
MeterDetailsResponse

The details about the meter. By default this is not populated, unless it's specified in $expand.

quantity
float

The usage quantity.

effective_price
float

Effective Price that's charged for the usage.

cost
float

The amount of cost before tax.

unit_price
float

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

Azure resource manager resource identifier.

resource_name
str

Resource Name.

service_info1
str

Service Info 1.

service_info2
str

Service Info 2.

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
bool

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.