UsageAllocation
¶
Source code in docs_src/capo_marketplace_metering/types/usage_allocation.py
allocated_usage_quantity
instance-attribute
¶
allocated_usage_quantity: AllocatedUsageQuantity
The total quantity allocated to this bucket of usage, as a whole number.
Use AllocatedUsageQuantityAsDecimal instead. Each allocation must specify exactly one of AllocatedUsageQuantity or AllocatedUsageQuantityAsDecimal.
allocated_usage_quantity_as_decimal
instance-attribute
¶
allocated_usage_quantity_as_decimal: NotRequired[AllocatedUsageQuantityAsDecimalString]
The total quantity allocated to this bucket of usage, as a decimal string. Use this when the usage quantity of the request or usage record is specified as a decimal (UsageQuantityAsDecimal or QuantityAsDecimal).
A non-negative decimal number, for example 17.42.
Each allocation must specify exactly one of AllocatedUsageQuantity or AllocatedUsageQuantityAsDecimal.