2.4 Commit Usage and Under Usage
2.4.1 Description
FOCUS supports the tracking of commitment discounts usage and under usage, which can come in the form of commitment discounts or capacity reservations.
2.4.2 Directly Dependent Columns
2.4.3 Supporting Columns
2.4.4 Example SQL Query for Commitment Discounts
Example SQL Query for Commitment Discounts
SELECT
ProviderName,
BillingAccountId,
CommitmentDiscountId,
CommitmentDiscountType,
CommitmentDiscountStatus,
SUM(BilledCost) AS TotalBilledCost,
SUM(EffectiveCost) AS TotalEffectiveCost
FROM focus_data_table
WHERE ChargePeriodStart >= ? AND ChargePeriodEnd < ?
AND CommitmentDiscountStatus = 'Unused'
GROUP BY
ProviderName,
BillingAccountId,
CommitmentDiscountId,
CommitmentDiscountType
2.4.5 Example SQL Query for Capacity Reservations
Example SQL Query for Capacity Reservations
SELECT
ProviderName,
BillingAccountId,
CapacityReservationId,
CapacityReservationStatus,
SUM(BilledCost) AS TotalBilledCost,
SUM(EffectiveCost) AS TotalEffectiveCost
FROM focus_data_table
WHERE ChargePeriodStart >= ? AND ChargePeriodEnd < ?
AND CapacityReservationStatus = 'Unused'
GROUP BY
ProviderName,
BillingAccountId,
CapacityReservationId,
CapacityReservationStatus