ModernUsageDetailProperties Class
The properties of the usage detail.
Constructor
ModernUsageDetailProperties(*args: Any, **kwargs: Any)
Variables
| Name | Description |
|---|---|
|
billing_account_id
|
Billing Account identifier. |
|
effective_price
|
Effective Price that's charged for the usage. |
|
pricing_model
|
Identifier that indicates how the meter is priced. Known values are: "On Demand", "Reservation", and "Spot". |
|
billing_account_name
|
Name of the Billing Account. |
|
billing_period_start_date
|
Billing Period Start Date as in the invoice. |
|
billing_period_end_date
|
Billing Period End Date as in the invoice. |
|
billing_profile_id
|
Identifier for the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc. |
|
billing_profile_name
|
Name of the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc. |
|
subscription_guid
|
Unique Microsoft generated identifier for the Azure Subscription. |
|
subscription_name
|
Name of the Azure Subscription. |
|
date
|
Date for the usage record. |
|
product
|
Name of the product that has accrued charges by consumption or purchase as listed in the invoice. 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_name
|
Identifies the name of the meter against which consumption is measured. |
|
meter_region
|
Identifies the location of the datacenter for certain services that are priced based on datacenter location. |
|
meter_category
|
Identifies the top-level service for the usage. |
|
meter_sub_category
|
Defines the type or sub-category of Azure service that can affect the rate. |
|
service_family
|
List the service family for the product purchased or charged (Example: Storage ; Compute). |
|
quantity
|
Measure the quantity purchased or consumed.The amount of the meter used during the billing period. |
|
unit_of_measure
|
Identifies the Unit that the service is charged in. For example, GB, hours, 10,000 s. |
|
instance_name
|
Instance Name. |
|
cost_in_usd
|
Estimated extendedCost or blended cost before tax in USD. |
|
unit_price
|
Unit Price is the price applicable to you. (your EA or other contract price). |
|
billing_currency_code
|
The currency defining the billed cost. |
|
resource_location
|
Name of the 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. |
|
service_info1
|
Service-specific metadata. |
|
service_info2
|
Legacy field with optional service-specific metadata. |
|
additional_info
|
Additional details of this usage item. 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_id
|
Identifier of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners. |
|
invoice_section_name
|
Name of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners. |
|
cost_center
|
The cost center of this department if it is a department and a cost center is provided. |
|
resource_group
|
Name of the Azure resource group used for cohesive lifecycle management of resources. |
|
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
|
The identifier for the asset or Azure plan name that the subscription belongs to. For example: Azure Plan. For reservations this is the Reservation Order ID. |
|
product_order_name
|
Product Order Name. For reservations this is the SKU that was purchased. |
|
is_azure_credit_eligible
|
Determines if the cost is eligible to be paid for using Azure credits. |
|
term
|
Term (in months). Displays the term for the validity of the offer. For example. In case of reserved instances it displays 12 months for yearly term of reserved instance. For one time purchases or recurring purchases, the terms displays 1 month; This is not applicable for Azure consumption. |
|
publisher_name
|
Name of the publisher of the service including Microsoft or Third Party publishers. |
|
publisher_type
|
Type of publisher that identifies if the publisher is first party, third party reseller or third party agency. |
|
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. |
|
cost_in_billing_currency
|
ExtendedCost or blended cost before tax in billed currency. |
|
cost_in_pricing_currency
|
ExtendedCost or blended cost before tax in pricing currency to correlate with prices. |
|
exchange_rate
|
Exchange rate used in conversion from pricing currency to billing currency. |
|
exchange_rate_date
|
Date on which exchange rate used in conversion from pricing currency to billing currency. |
|
invoice_id
|
Invoice ID as on the invoice where the specific transaction appears. |
|
previous_invoice_id
|
Reference to an original invoice there is a refund (negative cost). This is populated only when there is a refund. |
|
pricing_currency_code
|
Pricing Billing Currency. |
|
product_identifier
|
Identifier for the product that has accrued charges by consumption or purchase . This is the concatenated key of productId and SkuId in partner center. |
|
resource_location_normalized
|
Resource Location Normalized. |
|
service_period_start_date
|
Start date for the rating period when the service usage was rated for charges. The prices for Azure services are determined for the rating period. |
|
service_period_end_date
|
End date for the period when the service usage was rated for charges. The prices for Azure services are determined based on the rating period. |
|
customer_tenant_id
|
Identifier of the customer's AAD tenant. |
|
customer_name
|
Name of the customer's AAD tenant. |
|
partner_tenant_id
|
Identifier for the partner's AAD tenant. |
|
partner_name
|
Name of the partner' AAD tenant. |
|
reseller_mpn_id
|
MPNId for the reseller associated with the subscription. |
|
reseller_name
|
Reseller Name. |
|
publisher_id
|
Publisher Id. |
|
market_price
|
Market Price that's charged for the usage. |
|
exchange_rate_pricing_to_billing
|
Exchange Rate from pricing currency to billing currency. |
|
payg_cost_in_billing_currency
|
The amount of PayG cost before tax in billing currency. |
|
payg_cost_in_usd
|
The amount of PayG cost before tax in US Dollar currency. |
|
partner_earned_credit_rate
|
Rate of discount applied if there is a partner earned credit (PEC) based on partner admin link access. |
|
partner_earned_credit_applied
|
Flag to indicate if partner earned credit has been applied or not. |
|
pay_g_price
|
Retail price for the resource. |
|
benefit_id
|
Unique identifier for the applicable benefit. |
|
benefit_name
|
Name of the applicable benefit. |
|
provider
|
Identifier for Product Category or Line Of Business, Ex - Azure, Microsoft 365, AWS e.t.c. |
|
cost_allocation_rule_name
|
Name for Cost Allocation Rule. |
Attributes
additional_info
Additional details of this usage item. 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.
additional_info: str | None
benefit_id
Unique identifier for the applicable benefit.
benefit_id: str | None
benefit_name
Name of the applicable benefit.
benefit_name: str | None
billing_account_id
Billing Account identifier.
billing_account_id: str | None
billing_account_name
Name of the Billing Account.
billing_account_name: str | None
billing_currency_code
The currency defining the billed cost.
billing_currency_code: str | None
billing_period_end_date
Billing Period End Date as in the invoice.
billing_period_end_date: datetime | None
billing_period_start_date
Billing Period Start Date as in the invoice.
billing_period_start_date: datetime | None
billing_profile_id
Identifier for the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc.
billing_profile_id: str | None
billing_profile_name
Name of the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc.
billing_profile_name: str | None
charge_type
Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund.
charge_type: str | None
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.
consumed_service: str | None
cost_allocation_rule_name
Name for Cost Allocation Rule.
cost_allocation_rule_name: str | None
cost_center
The cost center of this department if it is a department and a cost center is provided.
cost_center: str | None
cost_in_billing_currency
ExtendedCost or blended cost before tax in billed currency.
cost_in_billing_currency: Decimal | None
cost_in_pricing_currency
ExtendedCost or blended cost before tax in pricing currency to correlate with prices.
cost_in_pricing_currency: Decimal | None
cost_in_usd
Estimated extendedCost or blended cost before tax in USD.
cost_in_usd: Decimal | None
customer_name
Name of the customer's AAD tenant.
customer_name: str | None
customer_tenant_id
Identifier of the customer's AAD tenant.
customer_tenant_id: str | None
date
Date for the usage record.
date: datetime | None
effective_price
Effective Price that's charged for the usage.
effective_price: Decimal | None
exchange_rate
Exchange rate used in conversion from pricing currency to billing currency.
exchange_rate: str | None
exchange_rate_date
Date on which exchange rate used in conversion from pricing currency to billing currency.
exchange_rate_date: datetime | None
exchange_rate_pricing_to_billing
Exchange Rate from pricing currency to billing currency.
exchange_rate_pricing_to_billing: Decimal | None
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.
frequency: str | None
instance_name
Instance Name.
instance_name: str | None
invoice_id
Invoice ID as on the invoice where the specific transaction appears.
invoice_id: str | None
invoice_section_id
Identifier of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners.
invoice_section_id: str | None
invoice_section_name
Name of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners.
invoice_section_name: str | None
is_azure_credit_eligible
Determines if the cost is eligible to be paid for using Azure credits.
is_azure_credit_eligible: bool | None
market_price
Market Price that's charged for the usage.
market_price: Decimal | None
meter_category
Identifies the top-level service for the usage.
meter_category: str | None
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_id: str | None
meter_name
Identifies the name of the meter against which consumption is measured.
meter_name: str | None
meter_region
Identifies the location of the datacenter for certain services that are priced based on datacenter location.
meter_region: str | None
meter_sub_category
Defines the type or sub-category of Azure service that can affect the rate.
meter_sub_category: str | None
partner_earned_credit_applied
Flag to indicate if partner earned credit has been applied or not.
partner_earned_credit_applied: str | None
partner_earned_credit_rate
Rate of discount applied if there is a partner earned credit (PEC) based on partner admin link access.
partner_earned_credit_rate: Decimal | None
partner_name
Name of the partner' AAD tenant.
partner_name: str | None
partner_tenant_id
Identifier for the partner's AAD tenant.
partner_tenant_id: str | None
pay_g_price
Retail price for the resource.
pay_g_price: Decimal | None
payg_cost_in_billing_currency
The amount of PayG cost before tax in billing currency.
payg_cost_in_billing_currency: Decimal | None
payg_cost_in_usd
The amount of PayG cost before tax in US Dollar currency.
payg_cost_in_usd: Decimal | None
previous_invoice_id
Reference to an original invoice there is a refund (negative cost). This is populated only when there is a refund.
previous_invoice_id: str | None
pricing_currency_code
Pricing Billing Currency.
pricing_currency_code: str | None
pricing_model
"On Demand", "Reservation", and "Spot".
pricing_model: str | _models.PricingModelType | None
product
Name of the product that has accrued charges by consumption or purchase as listed in the invoice. Not available for Marketplace.
product: str | None
product_identifier
Identifier for the product that has accrued charges by consumption or purchase . This is the concatenated key of productId and SkuId in partner center.
product_identifier: str | None
product_order_id
The identifier for the asset or Azure plan name that the subscription belongs to. For example: Azure Plan. For reservations this is the Reservation Order ID.
product_order_id: str | None
product_order_name
Product Order Name. For reservations this is the SKU that was purchased.
product_order_name: str | None
provider
Identifier for Product Category or Line Of Business, Ex - Azure, Microsoft 365, AWS e.t.c.
provider: str | None
publisher_id
Publisher Id.
publisher_id: str | None
publisher_name
Name of the publisher of the service including Microsoft or Third Party publishers.
publisher_name: str | None
publisher_type
Type of publisher that identifies if the publisher is first party, third party reseller or third party agency.
publisher_type: str | None
quantity
Measure the quantity purchased or consumed.The amount of the meter used during the billing period.
quantity: Decimal | None
reseller_mpn_id
MPNId for the reseller associated with the subscription.
reseller_mpn_id: str | None
reseller_name
Reseller Name.
reseller_name: str | None
reservation_id
ARM resource id of the reservation. Only applies to records relevant to reservations.
reservation_id: str | None
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.
reservation_name: str | None
resource_group
Name of the Azure resource group used for cohesive lifecycle management of resources.
resource_group: str | None
resource_location
Name of the resource location.
resource_location: str | None
resource_location_normalized
Resource Location Normalized.
resource_location_normalized: str | None
service_family
Storage ; Compute).
service_family: str | None
service_info1
Service-specific metadata.
service_info1: str | None
service_info2
Legacy field with optional service-specific metadata.
service_info2: str | None
service_period_end_date
End date for the period when the service usage was rated for charges. The prices for Azure services are determined based on the rating period.
service_period_end_date: datetime | None
service_period_start_date
Start date for the rating period when the service usage was rated for charges. The prices for Azure services are determined for the rating period.
service_period_start_date: datetime | None
subscription_guid
Unique Microsoft generated identifier for the Azure Subscription.
subscription_guid: str | None
subscription_name
Name of the Azure Subscription.
subscription_name: str | None
term
Term (in months). Displays the term for the validity of the offer. For example. In case of reserved instances it displays 12 months for yearly term of reserved instance. For one time purchases or recurring purchases, the terms displays 1 month; This is not applicable for Azure consumption.
term: str | None
unit_of_measure
Identifies the Unit that the service is charged in. For example, GB, hours, 10,000 s.
unit_of_measure: str | None
unit_price
Unit Price is the price applicable to you. (your EA or other contract price).
unit_price: Decimal | None