Rulvar API reference / @rulvar/rulvar / priceUsdOf
Function: priceUsdOf()
ts
function priceUsdOf(pricing, usage): number;Defined in: packages/core/dist/index.d.ts
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