Measured usage for a single usage factor over the license period. Wraps the raw measured value alongside the UsageFactor it was measured for, and exposes the value after the factor's scale factor has been applied. Added to a MetricUsageDataList by KademiSubscriptionManager as it reads each usage factor's data series.
Properties
| Property | Returns | Description |
|---|---|---|
| id | String | Identifier of the usage factor this measurement was taken for, matching UsageFactor.getId. |
| totalUsage | BigDecimal | Total measured usage for this factor over the license period, with the usage factor's scale factor applied so the value is in its billed units. |
| usageFactor | UsageFactor | The usage factor that this measurement was taken for. |
Methods
getId()
Returns: String
Identifier of the usage factor this measurement was taken for, matching UsageFactor.getId.
getTotalUsage()
Returns: BigDecimal
Total measured usage for this factor over the license period, with the usage factor's scale factor applied so the value is in its billed units.
getUsageFactor()
Returns: UsageFactor
The usage factor that this measurement was taken for.
series()
Returns: SalesDataSeries
Looks up the sales data series that this factor's usage was read from.
hasUsage()
Returns: boolean
Whether any usage was measured for this factor over the license period.