Basic Filters
editor is a structured query builder designed to provide out-of-the-box filters and aggregations on your usage stream. All metrics defined with the Basic Filters editor are created as streaming billable metrics.
Billable metrics can be created in both the Metronome app or using the Metronome API.
For this example, create a metric to track “API Calls” for a hypothetical cloud service.
+ Add new Billable Metric
.
Basic filters
.
API Calls
).
api_request
).
property_name
: “status”operator
: “In”value
: “success” (This ensures Metronome only counts successful API calls.)property_name
: “user_id”operator
: “Exists”user_id
.
user_id
, providing a simple but effective measure of platform usage across an organization.
Prefer using the API? Here is an example request to set up the same metric: