- Select the Metered feature type.
-
Reported usage — Use this source when your application reports calculated usage of the feature to Stigg.
This data source is useful for features such as seats. -
Raw events — Use this source when your application generates events that Stigg can filter and aggregate to determine customer usage of the feature.
This data source is useful for features such as monthly active users (MAUs).
Stigg's metering and aggregation capabilities
Usage meters
To create a metered feature based on reported usage:- Select the Reported usage data source.
- (Optional) Edit the singular and plural unit names — for example, seat and seats.
- Confirm the action by clicking Create.

Event meters
To create a metered feature based on raw events:- Select the Raw events data source.
- Click Next.

Event filters
Define the event filters:- Set the primary filter based on the reported event name.
- Add additional conditions to exclude unwanted events.

Aggregation
Select the aggregation method that Stigg will use to calculate each customer’s usage:- Count
- Count unique
- Sum
- Max
- Min
- Average
For example, when calculating a Sum, you must select which property should be summed.
- Select the relevant event property.
- Click Next.

Unit names
Optionally edit the singular and plural unit names, for example: “seat” and “seats”. To complete the feature creation, click on the “Create” button.

Presenting usage to customers in a different granularity
Stigg allows you to report usage in a high granularity (for example, bytes) and present it to customers in a different granularity (for example, GB). When this configuration is enabled, even though usage is reported in the higher granularity (i.e., bytes), the Stigg app and SDK methods will return values in the lower granularity (i.e., GB). When integrated with a billing solution, the lower granularity units (i.e., GB) are rounded up to the nearest integer.This means that if a customer is billed per used GB and has consumed 0.02 GB, they will be charged for 1 GB. To enable this configuration:
- Toggle on Feature is sold in different units.
- Define the units presented to customers and set the conversion rate between reporting and presented units — for example,
1 GB = 1,000,000,000 bytes. - Click Save.

