Skip to main content
Step-by-Step Setup when creating a COUNT-based metered feature:
  1. Navigate to Features
    • Go to Product Catalog → Features
    • Click “Add Feature”
  2. Basic Information
    • Name: “API Calls” (or descriptive name)
    • Type: Select “Metered”
  3. Event Configuration
    • Event Name: api.calls (must match your event data)
    • Aggregation Function: Count
    • Aggregation Field: Leave empty (not required for COUNT)
  4. Usage Settings
    • Usage Reset: Periodic (for monthly limits) or Cumulative
    • Unit Name: API call / API calls
  5. Save Feature

Calculation Example

Event Data

Calculation Process

  1. Event Matching: All events with event_name = "api.calls"
  2. Deduplication: Remove duplicate event IDs
    • evt_001 (first occurrence)
    • evt_002
    • evt_001 (duplicate - ignored)
  3. Count Result: 2 (distinct events)
Result: 2 API calls

Use Cases

API Request Tracking

Perfect for: RESTful APIs, GraphQL queries, webhook calls

File Operations

Perfect for: File uploads, downloads, processing tasks

Transaction Counting

Perfect for: Payment transactions, database operations, user actions

Feature Usage

Perfect for: Feature activations, button clicks, page views

When to Use COUNT

Use COUNT when:
  • Tracking discrete events or actions
  • You don’t need to measure quantity/volume
  • Simple occurrence-based billing
  • High-volume event streams (best performance)

Next Steps