Skip to main content
To create a metered feature:
  1. Select the Metered feature type.
Stigg supports two data sources:
  1. 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.
  2. 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).
For more details about Stigg’s metering and aggregation capabilities, see:

Stigg's metering and aggregation capabilities

Usage meters

To create a metered feature based on reported usage:
  1. Select the Reported usage data source.
  2. (Optional) Edit the singular and plural unit names — for example, seat and seats.
  3. Confirm the action by clicking Create.

Event meters

To create a metered feature based on raw events:
  1. Select the Raw events data source.
  2. Click Next.

Event filters

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

Aggregation

Select the aggregation method that Stigg will use to calculate each customer’s usage:
  1. Count
  2. Count unique
  3. Sum
  4. Max
  5. Min
  6. 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.
  1. Select the relevant event property.
  2. 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:
  1. Toggle on Feature is sold in different units.
  2. 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.
  3. Click Save.
Changing the conversion rate is only possible when there are no active subscriptions that use this feature.