Usage
This document explains what usage is, how usage events and data sources bring it into Zenskar, and how billable metrics measure it.Map of concepts
Map of concepts
Usage: what customers consume
Usage is the consumption of products by customers. Usage reaches Zenskar in two ways. Usage events record it in Zenskar. A data source reads it from a system in your data infrastructure. The usage stays in that system. The following table follows the API calls of one customer in October, from usage to the number of a billable metric:Usage events: usage recorded in Zenskar
Zenskar stores usage events in usage-event collections. Usage events arrive through a CSV upload, a single usage event, the API, or S3 ingestion.Usage events
This document explains usage events, usage-event collections, data schemas, API slugs, and the ways to send usage events.
Data sources: usage in your systems
A data source lets Zenskar read usage from a system in your data infrastructure. Zenskar copies the data on a schedule or queries it in place.Data sources
This document explains data sources, data-source connectors, synced and remote data sources, and sync frequency.
Billable metrics: usage measured as a number
A billable metric measures the usage in usage events or data sources as a number for each customer and period.Billable metrics
This document explains billable metrics, the visual builder, the SQL builder, and what a billable metric gives for each customer and period.
Usage in practice
Usage: end-to-end walkthrough
This walkthrough records API calls as usage events, adds them up with a billable metric, and checks the number for one customer.