Core Types
MetricAddress
Identifies a specific metric by its components:TrackableEvent
Represents a single event to be tracked:Summary Types
MetricEntitySummary
Stores the total aggregated values for an entity:MetricEntitySummaryUpdates
Used for updating entity summaries with Firestore field values:Timeline Types
MetricTimelineSection
Represents aggregated data for a specific time period:MetricTimelineSectionUpdates
Used for updating timeline sections with Firestore field values:Configuration Types
MetricConfig
Defines how metrics should be aggregated:DateTimeUnit
Valid time units from Luxon library:Usage Examples
Creating Events
Working with Summaries
Timeline Sections
Metric Configuration
Type Guards
Check if Event is Valid
Validate Metric Address
Import Statements
See Also
- Overview - Introduction to metrics
- incrementMetric - Real-time tracking
- updateMetric - Batch updates