Metered features track usage over time. Use them when you need to monitor how much of something a customer is consuming — for example, the number of API calls, seats, or active users.There are two type of metered features:
Reported usage (Usage meters)
Use this option when your application calculates usage and reports it directly to Stigg.
This is commonly used for features such as seats.
Raw events (Event meters)
Use this option when your application emits raw events that Stigg aggregates to calculate usage.
This is commonly used for features such as monthly active users (MAUs).
For more details about Stigg’s metering and aggregation capabilities, see:
In the modal that opens, provide the following details:
Name — The display name of the feature.
Description (optional) — A short explanation of what the feature enables.
ID — Automatically generated by Stigg and used to reference the feature in your application.
You can override this value by clicking Edit and linking an existing feature.
Feature type — Choose Meter.
Meter type - Choose Calculated usage.
If required, edit the singular and plural unit names — for example, day and days.
If you report usage in a higher granularity (for example, bytes) but want to present it to customers in a lower granularity (for example, GB), enable the Feature is sold in different units toggle. For details on configuring unit conversion and rounding behavior, see Reporting usage in one unit and presenting it in another.
Changing the conversion rate is only possible when there are no active subscriptions that use this feature.
In the modal that opens, provide the following details:
Name — The display name of the feature.
Description (optional) — A short explanation of what the feature enables.
ID — Automatically generated by Stigg and used to reference the feature in your application.
You can override this value by clicking Edit and linking an existing feature.
Feature type — Choose Meter.
Meter type - Choose Raw events.
Click Next.
Define the event filters:
Set the primary filter based on the reported event name.
Add additional conditions to exclude unwanted events.
Select the aggregation method that Stigg will use to calculate each customer’s usage:
Count
Count unique
Sum
Max
Min
Average
All aggregation methods except Count require specifying an event property that will be used for the aggregation. For example, when calculating a Sum, you must select which property should be summed.
Click Next.
If required, edit the singular and plural unit names, for example: “seat” and “seats”.
If you report usage in a higher granularity (for example, bytes) but want to present it to customers in a lower granularity (for example, GB), enable the Feature is sold in different units toggle. For details on configuring unit conversion and rounding behavior, see Reporting usage in one unit and presenting it in another.
Changing the conversion rate is only possible when there are no active subscriptions that use this feature.
Reporting usage in one unit and presenting it in another
Stigg allows you to report usage in a high-granularity unit (for example, bytes) while presenting and charging customers in a lower-granularity unit (for example, GB).When this configuration is enabled:
Usage is reported to Stigg in the original (high-granularity) unit, such as bytes.
Throughout the Stigg app and SDKs, usage values are returned in the presented (lower-granularity) unit, such as GB.
When integrated with a billing provider, usage in the presented unit is rounded up to the nearest integer.
For example, if a customer is billed per GB and uses 0.02 GB, they will be billed for 1 GB.