GoodAnalytics.Core.Events.Event (GoodAnalytics v0.1.1)

Copy Markdown View Source

Unified event stream record.

Events are append-only and partitioned by month. Source classification fields (source_platform, source_medium, source_campaign) and revenue fields (amount_cents, currency) are promoted to top-level columns for OLAP readiness.

Summary

Functions

Changeset for recording an event.

Returns the canonical list of all event types (for DB validation).

Returns event types accepted via public ingest surfaces (beacon, API).

Functions

changeset(event, attrs)

Changeset for recording an event.

event_types()

@spec event_types() :: [String.t()]

Returns the canonical list of all event types (for DB validation).

ingest_types()

@spec ingest_types() :: [String.t()]

Returns event types accepted via public ingest surfaces (beacon, API).