When setting up your pricing, you may want to filters events according to their property. To do so, you can create filters for your billable metric.
compute
billable metric that calculates the total number of hours (i.e. SUM(properties.hours)
).
As your customers can choose from different cloud providers and define a region, you need to filter usage records (i.e. events) according to the provider and region.
On the configuration page of your billable metric, you can define two filters: provider
and region
, with all the necessary values (see snippet below).
How to add filters
"aws"
and "AWS"
is an invalid value."region": "europe"
remains the same between both payloads, this filter remains in the billable metric."region": "usa"
is present in Payload A but not in Payload B, this filter is removed from the billable metric."region": "USA"
is not present in Payload A but is present in Payload B, this filter will be created in the billable metric."region": "africa"
is not present in Payload A but is present in Payload B, this filter will be created in the billable metric.