Get Started
Features
In Autumn, there are 2 types of features you can create: boolean
and metered
. When defining a boolean or metered feature, the id
you enter is what you’ll use to check whether a customer has access later on.
Configuring a metered feature
For metered features, you need to pass in:
- One or more event names
- An aggregation (either
COUNT
orSUM
)
When calculating the usage of a metered feature, Autumn will first filter all events by event_name
, and then either COUNT
or SUM
over them.
COUNT
: This aggregation simply takes the count of eventsSUM
: This aggregation will sum based on a property you specify as shown below. This property should be passed in theproperties
field when sending an event.
Example of sending event with property
In the example below, if there is a metered event minutes
which sums over the property length
, then the following event will increment the metered feature by 2.