Work with Limited-Type Metric (Limit Metered)
The Limit Metered metric type is used to track user usage and prevent overconsumption. This metric type provides a hard reset each billing cycle, meaning unused quota is lost when the period ends.Key Characteristics
- ✅ Hard Reset: Usage resets completely at the start of each billing cycle
- ✅ No Carryover: Unused quota is lost at the end of each period
- ✅ Automatic Rejection: System rejects requests when limit is reached
- ✅ Predictable Budgets: Customers stay within their plan limits
When to Use Limit Metered
Perfect for:- Monthly allowances that should reset completely
- Time-sensitive quotas (e.g., “1000 API calls per month”)
- Features where unused quota doesn’t have value
- Scenarios requiring a fresh start each billing cycle
Limit Metered vs Limit Recurring
| Aspect | Limit Metered | Limit Recurring |
|---|---|---|
| Reset Behavior | Hard reset (complete) | Soft reset (with carryover) |
| Quota Loss | Unused quota is lost | Unused quota is preserved |
| Use Case | Monthly fresh starts | Prepaid credits |
| Example | ”1000 API calls/month" | "1000 SMS credits/month” |
💡 Need quota carryover? See Limit Recurring Metric for metrics that preserve unused quota.
The metric system integrates with the UniBee API, which provides event-based statistics. You can report usage data by sending events to the Event API. The metric counting for each product, you may need specified for the
productId at Event API, default product will used if not specified
Aggregation Type of Count metric event, it increases 1 usage number
- Month 1: Plan includes 1000 units, user uses 800
- Month 2: Plan resets to 1000 units (the 200 unused units from Month 1 are lost)

