Lesson 3 of 4 The FOCUS Specification

Charges, Pricing and Commitments in FOCUS

Filtering FOCUS data correctly depends on knowing what kind of charge each row is, how its price was set and whether a commitment covered it. This lesson explains the charge, pricing and commitment discount columns and their allowed values.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the values of ChargeCategory, ChargeClass and ChargeFrequency.
  • Describe the values of PricingCategory and their uses.
  • Distinguish pricing quantities from consumed quantities.
  • Explain how CommitmentDiscountStatus reveals unused commitments.
  • Describe the Contract Commitment, Invoice Detail and Billing Period datasets.

ChargeCategory

ChargeCategory is the highest-level classification of a row. The following terms define its allowed values.

Usage
Charges for consuming resources or services, such as compute hours, storage or requests.
Purchase
Charges for buying something, such as an up-front or recurring commitment fee or a marketplace subscription.
Tax
Taxes charged on other rows, such as sales tax or VAT.
Credit
Reductions granted by the provider, such as promotional or service-level credits.
Adjustment
Other changes to the amount charged, such as rounding or billing error fixes.

Most engineering analysis starts by filtering to Usage, because Purchase rows would double count commitment costs that are already in the EffectiveCost of usage rows, and Tax and Credit rows are usually analyzed separately.

The following diagram compares a total with usage alone and shows the rows that explain the difference.

Why a cost can appear to fall sharply with no change in usage. A Credit row, or Correction rows reversing an earlier over-charge, reduce the month's total. Filtering to ChargeCategory Usage and excluding corrections shows that the underlying storage usage is unchanged.
Index values are illustrative.

ChargeClass and ChargeFrequency

ChargeClass identifies corrections. When a row corrects a charge from an earlier billing period, its ChargeClass is Correction. Separating corrections stops a refund for last quarter from looking like a drop in this month's usage, and lets analysts attribute the correction to the period it belongs to.

ChargeFrequency shows whether a charge is One-Time (such as an up-front purchase), Recurring (such as a monthly fee or a monthly commitment payment) or Usage-Based (varying with consumption). Engineers looking for the effect of their own changes usually focus on usage-based charges.

Sort into groups

ChargeFrequency

Exam skills 3.2.1

Classify each charge by its ChargeFrequency.

Log in to try this activity Interactive activities are free with an account.

PricingCategory

PricingCategory describes how the price of a row was determined. The following table lists its values.

ValueMeaningExamples
StandardThe regular agreed rate, including negotiated discountsOn-demand usage
DynamicA price that varies with market conditionsSpot capacity
CommittedUsage covered by a commitment discountUsage covered by a reservation or savings plan
OtherPricing that fits none of the other categoriesSpecial arrangements specific to a provider

PricingCategory makes several KPIs straightforward. The share of eligible compute with PricingCategory Committed is commitment coverage; the share with Dynamic shows spot adoption.

Match the pairs

PricingCategory values

Exam skills 3.2.1

Match each charge with its PricingCategory.

Log in to try this activity Interactive activities are free with an account.

Pricing quantities and consumed quantities

FOCUS separates two ways of measuring a charge's quantity. ConsumedQuantity and ConsumedUnit describe what was actually used, in a unit that makes sense to an engineer, such as hours, gigabytes or requests. PricingQuantity and PricingUnit describe the quantity in the unit the provider prices in, which may be a block, such as 1,000 requests or one million tokens. Multiplying PricingQuantity by the unit price gives the cost.

The distinction matters for analysis. To find which resources used the most storage, use ConsumedQuantity; to check a charge against the price list, use PricingQuantity with ListUnitPrice. FOCUS defines a standard format for unit values, which makes units from different providers easier to compare, although engineers should still check that two providers measure a service in the same unit before adding their quantities.

Commitment discount columns

When a commitment applies to a row, the commitment discount columns identify it. CommitmentDiscountId identifies the specific commitment; CommitmentDiscountType holds the provider's name for its kind, such as a reservation or a savings plan; CommitmentDiscountCategory says whether it is Spend-based or Usage-based.

CommitmentDiscountStatus is especially useful. Rows with status Used are usage the commitment covered. Rows with status Unused represent the part of the commitment that was paid for but not used in that charge period. Summing EffectiveCost for Unused rows gives the cost of unused commitments, the waste that rate optimization tries to minimize. Commitment utilization is Used divided by Used plus Unused, measured on the same basis.

Scenario questions

Querying commitments

Exam skills 3.2.1 · 3.2.3

Use FOCUS commitment columns to answer portfolio questions.

Log in to try this activity Interactive activities are free with an account.

Supplemental datasets for commitments and invoices

The Cost and Usage dataset describes charges period by period. Supplemental datasets describe the agreements and invoices behind them. Contract Commitment, introduced in FOCUS 1.3 and expanded in 1.4, describes the terms of each contractual commitment, such as its start and end dates, its structure and the amount remaining, which helps forecast expiries and shortfalls. Invoice Detail and Billing Period, introduced in FOCUS 1.4, connect charges to the invoices that bill them, which simplifies reconciliation.

Worked example

Finding unused commitment cost

The central FinOps team asks an engineer how much last month's unused commitments cost and which commitments were responsible. Which FOCUS columns answer the question?

Filter the Cost and Usage data to the billing period and to rows where CommitmentDiscountStatus is Unused, then sum EffectiveCost, grouped by CommitmentDiscountId and CommitmentDiscountType. The result shows the unused cost of each commitment. A commitment with a large unused share may cover instances that the engineer's team recently migrated, which is exactly the information the central team needs.

Worked example

A refund that looked like a saving

An engineer's chart shows storage cost falling 60% this month, but the team made no changes. Which columns should the engineer check?

The engineer should check ChargeCategory and ChargeClass. A large Credit row, or rows with ChargeClass Correction that reverse an over-charge from a previous period, will reduce the month's total without any change in usage. Filtering the chart to ChargeCategory Usage and excluding corrections shows that the underlying storage usage is unchanged.

Check yourself

Which column and value identify the cost of commitments that were paid for but not used?

Show answer

CommitmentDiscountStatus with the value Unused. Summing EffectiveCost for those rows gives the cost of unused commitments.

Exam Tips

Remember for the exam

  • ChargeCategory: Usage, Purchase, Tax, Credit, Adjustment. Filter to Usage for workload analysis.
  • ChargeClass Correction marks fixes to earlier periods.
  • PricingCategory: Standard, Dynamic, Committed, Other.
  • CommitmentDiscountStatus Unused shows the cost of unused commitments.