Defines a new billable metric. A metric specifies the event name, optional filter groups, and aggregation logic that turns raw ingested events into a quantity the billing engine can price against.
Documentation Index
Fetch the complete documentation index at: https://alguna.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
API key authentication. Pass your API key as a Bearer token.
2026-04-01 A unique string used to ensure the request is processed exactly once. If you retry a request with the same idempotency key within 24 hours, the original response is returned without re-executing the operation.
255"ik_a1b2c3d4e5f6"
How events are aggregated into a metric value
Event name that triggers this metric
"api_call"
Name of the metric
"API Calls"
Description of the metric
"Counts API calls per customer"
Filter groups to apply to events before aggregation
Tag identifiers to associate with this metric
Success
How events are aggregated into a metric value
Timestamp when the metric was created
"2026-04-01T10:00:00Z"
Event name that triggers this metric
"api_call"
Unique identifier for the metric
"mtr_01H1VECT"
Name of the metric
"API Calls"
Timestamp when the metric was last updated
"2026-04-01T12:30:00Z"
Description of the metric
"Counts API calls per customer"
Filter groups applied to events before aggregation
Tag identifiers associated with this metric