Mutation
Parameters
Input for reporting usage
Return Type
Returns aUsageMeasurementWithCurrentUsage with:
| Field | Type | Description |
|---|---|---|
measurementId | String | Measurement ID |
currentUsage | Float | Updated current usage |
Update Behaviors
| Behavior | Description |
|---|---|
DELTA | Add value to current usage (default) |
SET | Set current usage to value |
Examples
Increment Usage
Set Absolute Value
With Idempotency
Common Use Cases
API call tracking
API call tracking
Report API calls as they happen for rate limiting.
Storage metering
Storage metering
Update storage usage periodically.
Event-based billing
Event-based billing
Report usage events for billing calculation.
Related Operations
- Report Usage Bulk - Bulk reporting
- Usage History - Query history
