Rulvar API reference / @rulvar/core / priceUsdOf
Function: priceUsdOf()
ts
function priceUsdOf(pricing, usage): number;Defined in: packages/core/src/model/pricing.ts:134
Dollars from normalized usage against one pricing row: the sum of the priceComponentsOf terms in their declared order, byte for byte the historical expression (uncached input, output, cached input, cache writes).
Parameters
| Parameter | Type |
|---|---|
pricing | Pricing |
usage | Usage |
Returns
number