What you send
You can send:- Usage events: Individual, timestamped records of actions (for example, API calls, compute hours).
- Aggregates: Pre-summarized values (for example, total compute hours per day or per month).
Set up an API endpoint
- In the Zenskar dashboard, navigate to Usage > Usage events.
- Click + ADD USAGE EVENT button.
- Fill in the following:
- Usage Event Name: A descriptive label for this data stream.
- API Slug Endpoint: A URL-safe identifier (alphanumeric, underscores, or dashes).
- Your Data Schema: Define the JSON structure you will send.
π§ Note
customer_idandtimestampare required and read-only.- Zenskar uses
timestampto order incoming records.
- Click ADD USAGE EVENT to create the endpoint and corresponding ingestion pipeline.
Example payloads
Send a usage event
Send an aggregate
What happens next
- Zenskar stores the data in a secure, RDBMS-style table.
- Usage events must be aggregated (using SQL or the visual builder) to become billable metrics.
- Aggregates, being pre-summarized, can be used directly.
- All ingested data is available as structured tables for defining billable metrics.