Skip to main content
Step-by-Step Setup when creating a SUM-based metered feature:
  1. Navigate to Features
    • Go to Product Catalog → Features
    • Click “Add Feature”
  2. Basic Information
    • Name: “Data Transfer” (or descriptive name)
    • Type: Select “Metered”
  3. Event Configuration
    • Event Name: data.transfer (must match your event data)
    • Aggregation Function: Sum
    • Aggregation Field: gb (the property to sum)
  4. Usage Settings
    • Usage Reset: Periodic (for monthly limits) or Cumulative
    • Unit Name: GB / GBs
  5. Save Feature

Calculation Example

Event Data

Calculation Process

  1. Event Matching: All events with event_name = "data.transfer"
  2. Deduplication: Remove duplicate event IDs, keeping latest value
    • evt_0017.1 GB (latest value for this ID)
    • evt_0023.8 GB
  3. Sum Result: 7.1 + 3.8 = 10.9 GB
Result: 10.9 GBs

Use Cases

Data Transfer Tracking

Perfect for: Bandwidth usage, file downloads, API data transfer

Compute Time

Perfect for: CPU hours, GPU usage, processing time

Storage Usage

Perfect for: Disk space, database storage, file storage

Credits Consumed

Perfect for: AI model usage, API credits, processing credits

When to Use SUM

Use SUM when:
  • Tracking quantities or volumes
  • Measuring resource consumption
  • Accumulating usage values
  • Need precise numeric totals

Next Steps