mixpanel_schema_graph (Data Source)¶
Fetches the schema graph for a Mixpanel project — a JSON representation of all tracked events and their associated properties, including density metrics (how often each property appears with each event).
Note
Lookup key. Only project_id is an input; the remaining attributes are
populated from the fetched schema graph.
Example Usage¶
data "mixpanel_schema_graph" "graph" {
project_id = 1234567
}
# Parse the schema JSON
locals {
schema = jsondecode(data.mixpanel_schema_graph.graph.events)
}
output "tracked_events" {
value = [for event in local.schema : event.name]
}
Schema¶
Required¶
project_id(Number) Project ID to retrieve schema graph for
Optional¶
include_density(Boolean) Include density metrics in the schema graph response
Read-Only¶
events(String) JSON-encoded array of events with their properties and density_local metrics