Usage events and metrics are a flexible framework for representing a wide range of usage-based pricing models
Usage events and metrics for CloudPay
currency = GBP
and the other for currency = USD
. These two transaction volumes can later be converted to the same currency, which the customer will eventually be charged in.Usage events and metrics for Helios
COUNT of api_call
events, filtered by the condition that the response code is 200 (since only successful calls are charged). Because the aggregation is a raw count, the aggregation property is left blank. Finally, in order to display a breakdown by endpoint on the invoice, the endpoint property is specified as the grouping property.Usage events and metrics for Datalytics
UNIQUE user_ids
over all user_session events. Therefore, if a user has multiple sessions in the period that the metric is calculated for, it will only contribute 1 to the final value. Additionally, because active users are charged a different fee depending on their role, Datalytics creates a separate metric for each user_role, adding a filter to select only users with that role.