Create and publish a metric
Learn how to create a billable metric that aggregates usage events, publish the metric to an event source, and uses the generated ingestion URL to track entitlement usage.
Create a meter when usage data must be aggregated and used to update an entitlement balance.
A meter defines how Zuora receives and processes usage events. When you configure a meter, specify the event type or event definition, the computed property used to measure consumption, and the aggregation behavior. A meter can aggregate storage consumption events by summing the reported quantity and measuring the result in gigabytes.
To create and publish a metric:
Zuora generates a unique ingestion URL for the billable metric.
After the metric is published:
-
Use the ingestion URL to send usage events to Zuora through the Streaming API or your integration.
-
Use the sample event payload generated for the metric as the request body template. Replace the sample customer identifier with the appropriate customer account ID or account number before sending events.
-
Associate the published billable metric with a metered feature to begin tracking entitlement usage.
For Streaming API source behavior, prerequisites, request formats, volume limits, and troubleshooting, see Streaming API as a source and Ingest usage events for a meter.