Skip to main content

Overview

The Caliper client provides access to the Caliper Analytics API, enabling:
  • Activity Events: Track learning activity completions with metrics
  • Time Spent Events: Record time spent on activities
  • Generic Events: Send any IMS Caliper v1.2 event
  • Batching: Combine multiple events in a single API call
  • Job Monitoring: Track asynchronous event processing

Installation

Quick Start

Client Structure

Activity Completed Events

Track when users complete learning activities:

Metric Types

Time Spent Events

Track time spent on activities:

Job Monitoring

Event processing is asynchronous. Monitor job status:

Query Events

Retrieve stored events:

Batching Events

Use factory functions to combine multiple events in a single API call:

Generic Events

For non-Timeback events, use the generic API:

Error Handling

SDK Integration

When using the full SDK, activity tracking automatically emits Caliper events:

Next Steps

Custom Activities

SDK-based activity tracking

EduBridge

Pre-aggregated analytics

Types

Caliper type definitions