:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(signals): make $anomaly_score free and add its taxonomy (#122487)
posthog[bot]0edcf65bb8f3
diff --git a/frontend/src/taxonomy/core-filter-definitions-by-group.json b/frontend/src/taxonomy/core-filter-definitions-by-group.jsonindex 87574279d56c..d60dfefedda3 100644--- a/frontend/src/taxonomy/core-filter-definitions-by-group.json+++ b/frontend/src/taxonomy/core-filter-definitions-by-group.json@@ -753,6 +753,87 @@"label": "AI web search price (LLM)","type": "Numeric"},+ "$anomaly_breakdown_value": {+ "description": "Breakdown value of the series. Empty when the insight has no breakdown.",+ "label": "Anomaly breakdown value",+ "type": "String"+ },+ "$anomaly_bucket_start": {+ "description": "Start of the scored bucket, with the project timezone offset.",+ "examples": ["2026-10-22T00:00:00+01:00"],+ "label": "Anomaly bucket start",+ "type": "String"+ },+ "$anomaly_details": {+ "description": "Detector-specific values for this bucket, for example ensemble sub-scores. Its shape depends on the detector.",+ "label": "Anomaly details",+ "type": "String"+ },+ "$anomaly_detector": {+ "description": "Detector type of the scoring profile.",+ "examples": ["zscore", "ensemble"],+ "label": "Anomaly detector",+ "type": "String"+ },+ "$anomaly_detector_version": {+ "description": "Hash of the scoring settings for the interval. A change to the settings starts a new version.",+ "label": "Anomaly detector version",+ "type": "String"+ },+ "$anomaly_flag": {+ "description": "1 when the bucket is anomalous, 0 when it is not, and empty while the series warms up. Average it for an anomaly rate, and sum it for an anomaly count.",+ "examples": [0, 1],+ "label": "Anomaly flag",+ "type": "Numeric"+ },+ "$anomaly_insight_id": {+ "description": "ID of the saved insight that holds the series. It joins to `system.insights.id` and `system.dashboard_tiles.insight_id`. Empty for default series.",+ "label": "Anomaly insight ID",+ "type": "Numeric"+ },+ "$anomaly_interval": {+ "description": "Interval of the scored series. Filter on one interval before you average flags across series, because an hourly series writes 24 events for each event a daily series writes.",+ "examples": ["hour", "day", "week", "month"],+ "label": "Anomaly interval",+ "type": "String"+ },+ "$anomaly_profile": {+ "description": "Name of the scoring profile that produced the score.",+ "examples": ["default-v1"],+ "label": "Anomaly scoring profile",+ "type": "String"+ },+ "$anomaly_score": {+ "description": "Score from 0 to 1. It ranks buckets within one series only, so never compare or average it across series. Empty while the series warms up.",+ "label": "Anomaly score",+ "type": "Numeric"+ },+ "$anomaly_scored_at": {+ "description": "When the bucket was scored. If a bucket was scored more than once, keep the latest result.",+ "label": "Anomaly scored at",+ "type": "String"+ },+ "$anomaly_series_key": {+ "description": "Stable ID of the scored series. Use it with Anomaly bucket start to keep the latest result for each bucket.",+ "label": "Anomaly series key",+ "type": "String"+ },+ "$anomaly_series_label": {+ "description": "Name of the series as the chart shows it.",+ "label": "Anomaly series label",+ "type": "String"+ },+ "$anomaly_source": {+ "description": "Where the series comes from. `insight` is a saved insight, and `default` is a series PostHog scores without a saved insight.",+ "examples": ["insight", "default"],+ "label": "Anomaly source",+ "type": "String"+ },+ "$anomaly_value": {+ "description": "The series value that was scored, as it was at scoring time. It can differ from the chart later, when late events arrive.",+ "label": "Anomaly scored value",+ "type": "Numeric"+ },"$anon_distinct_id": {"description": "If the user was previously anonymous, their anonymous ID will be set here.","examples": ["16ff262c4301e5-0aa346c03894bc-39667c0e-1aeaa0-16ff262c431767"],@@ -3180,6 +3261,16 @@"label": "AI trace (LLM)","primary_property": "$ai_span_name"},+ "$anomaly_score": {+ "description": "Self-driving scored one completed bucket of one series for anomalies. Emitted once per series and bucket. The timestamp is the bucket start, so a trends insight on this event lines up with the source chart. The `$anomaly_*` properties hold the result.",+ "label": "Anomaly score",+ "primary_property": "$anomaly_series_label"+ },+ "$anomaly_score_shadow": {+ "description": "Same shape as Anomaly score, but scored by a profile under comparison. Use it to compare profiles. Never count it in anomaly rates.",+ "label": "Anomaly score (shadow)",+ "primary_property": "$anomaly_series_label"+ },"$autocapture": {"description": "User interactions that were automatically captured.","examples": ["clicked button"],@@ -4604,6 +4695,87 @@"label": "AI web search price (LLM)","type": "Numeric"},+ "$anomaly_breakdown_value": {+ "description": "Breakdown value of the series. Empty when the insight has no breakdown.",+ "label": "Anomaly breakdown value",+ "type": "String"+ },+ "$anomaly_bucket_start": {+ "description": "Start of the scored bucket, with the project timezone offset.",+ "examples": ["2026-10-22T00:00:00+01:00"],+ "label": "Anomaly bucket start",+ "type": "String"+ },+ "$anomaly_details": {+ "description": "Detector-specific values for this bucket, for example ensemble sub-scores. Its shape depends on the detector.",+ "label": "Anomaly details",+ "type": "String"+ },+ "$anomaly_detector": {+ "description": "Detector type of the scoring profile.",+ "examples": ["zscore", "ensemble"],+ "label": "Anomaly detector",+ "type": "String"+ },+ "$anomaly_detector_version": {+ "description": "Hash of the scoring settings for the interval. A change to the settings starts a new version.",+ "label": "Anomaly detector version",+ "type": "String"+ },+ "$anomaly_flag": {+ "description": "1 when the bucket is anomalous, 0 when it is not, and empty while the series warms up. Average it for an anomaly rate, and sum it for an anomaly count.",+ "examples": [0, 1],+ "label": "Anomaly flag",+ "type": "Numeric"+ },+ "$anomaly_insight_id": {+ "description": "ID of the saved insight that holds the series. It joins to `system.insights.id` and `system.dashboard_tiles.insight_id`. Empty for default series.",+ "label": "Anomaly insight ID",+ "type": "Numeric"+ },+ "$anomaly_interval": {+ "description": "Interval of the scored series. Filter on one interval before you average flags across series, because an hourly series writes 24 events for each event a daily series writes.",+ "examples": ["hour", "day", "week", "month"],+ "label": "Anomaly interval",+ "type": "String"+ },+ "$anomaly_profile": {+ "description": "Name of the scoring profile that produced the score.",+ "examples": ["default-v1"],+ "label": "Anomaly scoring profile",+ "type": "String"+ },+ "$anomaly_score": {+ "description": "Score from 0 to 1. It ranks buckets within one series only, so never compare or average it across series. Empty while the series warms up.",+ "label": "Anomaly score",+ "type": "Numeric"+ },+ "$anomaly_scored_at": {+ "description": "When the bucket was scored. If a bucket was scored more than once, keep the latest result.",+ "label": "Anomaly scored at",+ "type": "String"+ },+ "$anomaly_series_key": {+ "description": "Stable ID of the scored series. Use it with Anomaly bucket start to keep the latest result for each bucket.",+ "label": "Anomaly series key",+ "type": "String"+ },+ "$anomaly_series_label": {+ "description": "Name of the series as the chart shows it.",+ "label": "Anomaly series label",+ "type": "String"+ },+ "$anomaly_source": {+ "description": "Where the series comes from. `insight` is a saved insight, and `default` is a series PostHog scores without a saved insight.",+ "examples": ["insight", "default"],+ "label": "Anomaly source",+ "type": "String"+ },+ "$anomaly_value": {+ "description": "The series value that was scored, as it was at scoring time. It can differ from the chart later, when late events arrive.",+ "label": "Anomaly scored value",+ "type": "Numeric"+ },"$anon_distinct_id": {"description": "If the user was previously anonymous, their anonymous ID will be set here.","examples": ["16ff262c4301e5-0aa346c03894bc-39667c0e-1aeaa0-16ff262c431767"],diff --git a/posthog/tasks/test/__snapshots__/test_usage_report.ambr b/posthog/tasks/test/__snapshots__/test_usage_report.ambrindex 42a99145d7f3..a2dcbbf01e74 100644--- a/posthog/tasks/test/__snapshots__/test_usage_report.ambr+++ b/posthog/tasks/test/__snapshots__/test_usage_report.ambr@@ -7,7 +7,7 @@FROM eventsWHERE timestamp >= '2022-01-10 00:00:00'AND timestamp < '2022-01-10 02:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -20,7 +20,7 @@FROM eventsWHERE timestamp >= '2022-01-10 02:00:00'AND timestamp < '2022-01-10 04:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -33,7 +33,7 @@FROM eventsWHERE timestamp >= '2022-01-10 20:00:00'AND timestamp < '2022-01-10 22:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -63,7 +63,7 @@FROM eventsWHERE timestamp >= '2022-01-10 22:00:00'AND timestamp < '2022-01-10 23:59:59'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -76,7 +76,7 @@FROM eventsWHERE timestamp >= '2022-01-10 00:00:00'AND timestamp < '2022-01-10 02:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -91,7 +91,7 @@FROM eventsWHERE timestamp >= '2022-01-10 02:00:00'AND timestamp < '2022-01-10 04:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -106,7 +106,7 @@FROM eventsWHERE timestamp >= '2022-01-10 04:00:00'AND timestamp < '2022-01-10 06:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -121,7 +121,7 @@FROM eventsWHERE timestamp >= '2022-01-10 06:00:00'AND timestamp < '2022-01-10 08:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -136,7 +136,7 @@FROM eventsWHERE timestamp >= '2022-01-10 08:00:00'AND timestamp < '2022-01-10 10:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -151,7 +151,7 @@FROM eventsWHERE timestamp >= '2022-01-10 10:00:00'AND timestamp < '2022-01-10 12:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -166,7 +166,7 @@FROM eventsWHERE timestamp >= '2022-01-10 12:00:00'AND timestamp < '2022-01-10 14:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -181,7 +181,7 @@FROM eventsWHERE timestamp >= '2022-01-10 14:00:00'AND timestamp < '2022-01-10 16:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -196,7 +196,7 @@FROM eventsWHERE timestamp >= '2022-01-10 04:00:00'AND timestamp < '2022-01-10 06:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -209,7 +209,7 @@FROM eventsWHERE timestamp >= '2022-01-10 16:00:00'AND timestamp < '2022-01-10 18:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -224,7 +224,7 @@FROM eventsWHERE timestamp >= '2022-01-10 18:00:00'AND timestamp < '2022-01-10 20:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -239,7 +239,7 @@FROM eventsWHERE timestamp >= '2022-01-10 20:00:00'AND timestamp < '2022-01-10 22:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -254,7 +254,7 @@FROM eventsWHERE timestamp >= '2022-01-10 22:00:00'AND timestamp < '2022-01-10 23:59:59'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -398,7 +398,7 @@FROM eventsWHERE timestamp >= '2022-01-10 06:00:00'AND timestamp < '2022-01-10 08:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -552,7 +552,7 @@FROM eventsWHERE timestamp >= '2022-01-10 08:00:00'AND timestamp < '2022-01-10 10:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -975,7 +975,7 @@FROM eventsWHERE timestamp >= '2022-01-10 10:00:00'AND timestamp < '2022-01-10 12:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -1242,7 +1242,7 @@FROM eventsWHERE timestamp >= '2022-01-10 12:00:00'AND timestamp < '2022-01-10 14:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -1450,7 +1450,7 @@FROM eventsWHERE timestamp >= '2022-01-10 14:00:00'AND timestamp < '2022-01-10 16:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -1463,7 +1463,7 @@FROM eventsWHERE timestamp >= '2022-01-10 00:00:00'AND timestamp < '2022-01-10 02:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND ($group_0 != ''OR $group_1 != ''@@ -1481,7 +1481,7 @@FROM eventsWHERE timestamp >= '2022-01-10 02:00:00'AND timestamp < '2022-01-10 04:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND ($group_0 != ''OR $group_1 != ''@@ -1499,7 +1499,7 @@FROM eventsWHERE timestamp >= '2022-01-10 04:00:00'AND timestamp < '2022-01-10 06:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND ($group_0 != ''OR $group_1 != ''@@ -1517,7 +1517,7 @@FROM eventsWHERE timestamp >= '2022-01-10 06:00:00'AND timestamp < '2022-01-10 08:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND ($group_0 != ''OR $group_1 != ''@@ -1535,7 +1535,7 @@FROM eventsWHERE timestamp >= '2022-01-10 08:00:00'AND timestamp < '2022-01-10 10:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND ($group_0 != ''OR $group_1 != ''@@ -1553,7 +1553,7 @@FROM eventsWHERE timestamp >= '2022-01-10 10:00:00'AND timestamp < '2022-01-10 12:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND ($group_0 != ''OR $group_1 != ''@@ -1571,7 +1571,7 @@FROM eventsWHERE timestamp >= '2022-01-10 12:00:00'AND timestamp < '2022-01-10 14:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND ($group_0 != ''OR $group_1 != ''@@ -1589,7 +1589,7 @@FROM eventsWHERE timestamp >= '2022-01-10 14:00:00'AND timestamp < '2022-01-10 16:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND ($group_0 != ''OR $group_1 != ''@@ -1607,7 +1607,7 @@FROM eventsWHERE timestamp >= '2022-01-10 16:00:00'AND timestamp < '2022-01-10 18:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND ($group_0 != ''OR $group_1 != ''@@ -1625,7 +1625,7 @@FROM eventsWHERE timestamp >= '2022-01-10 18:00:00'AND timestamp < '2022-01-10 20:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND ($group_0 != ''OR $group_1 != ''@@ -1643,7 +1643,7 @@FROM eventsWHERE timestamp >= '2022-01-10 16:00:00'AND timestamp < '2022-01-10 18:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -1656,7 +1656,7 @@FROM eventsWHERE timestamp >= '2022-01-10 20:00:00'AND timestamp < '2022-01-10 22:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND ($group_0 != ''OR $group_1 != ''@@ -1674,7 +1674,7 @@FROM eventsWHERE timestamp >= '2022-01-10 22:00:00'AND timestamp < '2022-01-10 23:59:59'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND ($group_0 != ''OR $group_1 != ''@@ -1850,7 +1850,7 @@FROM eventsWHERE timestamp >= '2022-01-10 18:00:00'AND timestamp < '2022-01-10 20:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''diff --git a/posthog/tasks/test/__snapshots__/test_usage_report.new_events_schema.ambr b/posthog/tasks/test/__snapshots__/test_usage_report.new_events_schema.ambrindex 6417c1148dff..26d12c8e52ec 100644--- a/posthog/tasks/test/__snapshots__/test_usage_report.new_events_schema.ambr+++ b/posthog/tasks/test/__snapshots__/test_usage_report.new_events_schema.ambr@@ -7,7 +7,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 20:00:00'AND timestamp < '2022-01-10 22:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -20,7 +20,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 22:00:00'AND timestamp < '2022-01-10 23:59:59'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -33,7 +33,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 00:00:00'AND timestamp < '2022-01-10 02:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -48,7 +48,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 02:00:00'AND timestamp < '2022-01-10 04:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -63,7 +63,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 04:00:00'AND timestamp < '2022-01-10 06:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -78,7 +78,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 06:00:00'AND timestamp < '2022-01-10 08:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -93,7 +93,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 08:00:00'AND timestamp < '2022-01-10 10:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -108,7 +108,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 10:00:00'AND timestamp < '2022-01-10 12:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -123,7 +123,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 12:00:00'AND timestamp < '2022-01-10 14:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -138,7 +138,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 14:00:00'AND timestamp < '2022-01-10 16:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -153,7 +153,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 02:00:00'AND timestamp < '2022-01-10 04:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -166,7 +166,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 16:00:00'AND timestamp < '2022-01-10 18:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -181,7 +181,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 18:00:00'AND timestamp < '2022-01-10 20:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -196,7 +196,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 20:00:00'AND timestamp < '2022-01-10 22:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -211,7 +211,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 22:00:00'AND timestamp < '2022-01-10 23:59:59'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND person_mode IN ('full','force_upgrade')@@ -404,7 +404,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 04:00:00'AND timestamp < '2022-01-10 06:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -1087,7 +1087,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 06:00:00'AND timestamp < '2022-01-10 08:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -1410,7 +1410,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 08:00:00'AND timestamp < '2022-01-10 10:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -1504,7 +1504,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 00:00:00'AND timestamp < '2022-01-10 02:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND (properties.`$group_0` != ''OR properties.`$group_1` != ''@@ -1522,7 +1522,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 02:00:00'AND timestamp < '2022-01-10 04:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND (properties.`$group_0` != ''OR properties.`$group_1` != ''@@ -1540,7 +1540,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 04:00:00'AND timestamp < '2022-01-10 06:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND (properties.`$group_0` != ''OR properties.`$group_1` != ''@@ -1558,7 +1558,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 06:00:00'AND timestamp < '2022-01-10 08:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND (properties.`$group_0` != ''OR properties.`$group_1` != ''@@ -1576,7 +1576,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 08:00:00'AND timestamp < '2022-01-10 10:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND (properties.`$group_0` != ''OR properties.`$group_1` != ''@@ -1594,7 +1594,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 10:00:00'AND timestamp < '2022-01-10 12:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND (properties.`$group_0` != ''OR properties.`$group_1` != ''@@ -1612,7 +1612,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 12:00:00'AND timestamp < '2022-01-10 14:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND (properties.`$group_0` != ''OR properties.`$group_1` != ''@@ -1630,7 +1630,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 10:00:00'AND timestamp < '2022-01-10 12:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -1643,7 +1643,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 14:00:00'AND timestamp < '2022-01-10 16:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND (properties.`$group_0` != ''OR properties.`$group_1` != ''@@ -1661,7 +1661,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 16:00:00'AND timestamp < '2022-01-10 18:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND (properties.`$group_0` != ''OR properties.`$group_1` != ''@@ -1679,7 +1679,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 18:00:00'AND timestamp < '2022-01-10 20:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND (properties.`$group_0` != ''OR properties.`$group_1` != ''@@ -1697,7 +1697,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 20:00:00'AND timestamp < '2022-01-10 22:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND (properties.`$group_0` != ''OR properties.`$group_1` != ''@@ -1715,7 +1715,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 22:00:00'AND timestamp < '2022-01-10 23:59:59'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')AND (properties.`$group_0` != ''OR properties.`$group_1` != ''@@ -1733,7 +1733,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 12:00:00'AND timestamp < '2022-01-10 14:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -1746,7 +1746,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 14:00:00'AND timestamp < '2022-01-10 16:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -1759,7 +1759,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 16:00:00'AND timestamp < '2022-01-10 18:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -1772,7 +1772,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 18:00:00'AND timestamp < '2022-01-10 20:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''@@ -1785,7 +1785,7 @@FROM events_jsonWHERE timestamp >= '2022-01-10 00:00:00'AND timestamp < '2022-01-10 02:00:00'- AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets']+ AND event NOT IN ['$feature_flag_called', '$experiment_exposure', 'survey sent', 'survey shown', 'survey dismissed', '$exception', '$llm_prompt_fetched', '$conversations_loaded', '$conversations_widget_loaded', '$conversations_message_sent', '$conversations_user_identified', '$conversations_restore_link_requested', '$conversations_widget_state_changed', '$conversations_back_to_tickets', '$anomaly_score', '$anomaly_score_shadow']AND NOT startsWith(event, '$ai_')GROUP BY team_id'''diff --git a/posthog/tasks/test/test_usage_report.py b/posthog/tasks/test/test_usage_report.pyindex b4579d19eff8..c26f168d1fce 100644--- a/posthog/tasks/test/test_usage_report.py+++ b/posthog/tasks/test/test_usage_report.py@@ -7095,7 +7095,7 @@ class TestQuerySplitting(ClickhouseDestroyTablesMixin, ClickhouseTestMixin, Test)def test_events_owned_by_other_products_excluded_from_billable_count(self) -> None:- """Test that Conversations widget and prompt management events are excluded from billable event counts."""+ """Test that Conversations widget, prompt management and anomaly scoring events are excluded from billable event counts."""from posthog.tasks.usage_report import get_teams_with_billable_event_count_in_periodbillable_result_before = get_teams_with_billable_event_count_in_period(self.begin, self.end)@@ -7110,6 +7110,8 @@ class TestQuerySplitting(ClickhouseDestroyTablesMixin, ClickhouseTestMixin, Test"$conversations_widget_state_changed","$conversations_back_to_tickets","$llm_prompt_fetched",+ "$anomaly_score",+ "$anomaly_score_shadow",):_create_event(event=event_name,diff --git a/posthog/tasks/usage_report.py b/posthog/tasks/usage_report.pyindex 1dc0800165e2..a80f7530b03a 100644--- a/posthog/tasks/usage_report.py+++ b/posthog/tasks/usage_report.py@@ -132,6 +132,9 @@ BILLABLE_EVENT_EXCLUDED_EVENTS = [# artifact of using the product rather than customer instrumentation.LLM_PROMPT_FETCHED_EVENT,*CONVERSATIONS_EVENTS,+ # Written by self-driving anomaly scoring, not sent by the customer.+ "$anomaly_score",+ "$anomaly_score_shadow",]diff --git a/posthog/taxonomy/taxonomy.py b/posthog/taxonomy/taxonomy.pyindex 7e1582bde502..2218fba9f82f 100644--- a/posthog/taxonomy/taxonomy.py+++ b/posthog/taxonomy/taxonomy.py@@ -301,6 +301,16 @@ CORE_FILTER_DEFINITIONS_BY_GROUP: dict[str, dict[str, CoreFilterDefinition]] = {"description": "One Replay Vision scanner finished analyzing one session recording. Emitted once per scanner and session, minutes to months after the recording itself, so it describes a session rather than happening inside one. The scanner's output is flattened into `scanner_output_*` properties, and the observed session is named by `session_id`.","primary_property": "scanner_name",},+ "$anomaly_score": {+ "label": "Anomaly score",+ "description": "Self-driving scored one completed bucket of one series for anomalies. Emitted once per series and bucket. The timestamp is the bucket start, so a trends insight on this event lines up with the source chart. The `$anomaly_*` properties hold the result.",+ "primary_property": "$anomaly_series_label",+ },+ "$anomaly_score_shadow": {+ "label": "Anomaly score (shadow)",+ "description": "Same shape as Anomaly score, but scored by a profile under comparison. Use it to compare profiles. Never count it in anomaly rates.",+ "primary_property": "$anomaly_series_label",+ },"$csp_violation": {"label": "CSP violation","description": "Content Security Policy violation reported by a browser to our csp endpoint.",@@ -3283,6 +3293,89 @@ CORE_FILTER_DEFINITIONS_BY_GROUP: dict[str, dict[str, CoreFilterDefinition]] = {"label": "Observed subject email (Replay Vision)","description": "Email of the person in the recording, captured when the scan ran.",},+ # Anomaly scoring properties, all on `$anomaly_score` and `$anomaly_score_shadow`. The `$anomaly_`+ # prefix keeps them apart from a project's own property names and types.+ "$anomaly_score": {+ "label": "Anomaly score",+ "description": "Score from 0 to 1. It ranks buckets within one series only, so never compare or average it across series. Empty while the series warms up.",+ "type": "Numeric",+ },+ "$anomaly_flag": {+ "label": "Anomaly flag",+ "description": "1 when the bucket is anomalous, 0 when it is not, and empty while the series warms up. Average it for an anomaly rate, and sum it for an anomaly count.",+ "examples": [0, 1],+ "type": "Numeric",+ },+ "$anomaly_value": {+ "label": "Anomaly scored value",+ "description": "The series value that was scored, as it was at scoring time. It can differ from the chart later, when late events arrive.",+ "type": "Numeric",+ },+ "$anomaly_bucket_start": {+ "label": "Anomaly bucket start",+ "description": "Start of the scored bucket, with the project timezone offset.",+ "examples": ["2026-10-22T00:00:00+01:00"],+ "type": "String",+ },+ "$anomaly_interval": {+ "label": "Anomaly interval",+ "description": "Interval of the scored series. Filter on one interval before you average flags across series, because an hourly series writes 24 events for each event a daily series writes.",+ "examples": ["hour", "day", "week", "month"],+ "type": "String",+ },+ "$anomaly_series_key": {+ "label": "Anomaly series key",+ "description": "Stable ID of the scored series. Use it with Anomaly bucket start to keep the latest result for each bucket.",+ "type": "String",+ },+ "$anomaly_source": {+ "label": "Anomaly source",+ "description": "Where the series comes from. `insight` is a saved insight, and `default` is a series PostHog scores without a saved insight.",+ "examples": ["insight", "default"],+ "type": "String",+ },+ "$anomaly_insight_id": {+ "label": "Anomaly insight ID",+ "description": "ID of the saved insight that holds the series. It joins to `system.insights.id` and `system.dashboard_tiles.insight_id`. Empty for default series.",+ "type": "Numeric",+ },+ "$anomaly_series_label": {+ "label": "Anomaly series label",+ "description": "Name of the series as the chart shows it.",+ "type": "String",+ },+ "$anomaly_breakdown_value": {+ "label": "Anomaly breakdown value",+ "description": "Breakdown value of the series. Empty when the insight has no breakdown.",+ "type": "String",+ },+ "$anomaly_profile": {+ "label": "Anomaly scoring profile",+ "description": "Name of the scoring profile that produced the score.",+ "examples": ["default-v1"],+ "type": "String",+ },+ "$anomaly_detector": {+ "label": "Anomaly detector",+ "description": "Detector type of the scoring profile.",+ "examples": ["zscore", "ensemble"],+ "type": "String",+ },+ "$anomaly_detector_version": {+ "label": "Anomaly detector version",+ "description": "Hash of the scoring settings for the interval. A change to the settings starts a new version.",+ "type": "String",+ },+ "$anomaly_scored_at": {+ "label": "Anomaly scored at",+ "description": "When the bucket was scored. If a bucket was scored more than once, keep the latest result.",+ "type": "String",+ },+ "$anomaly_details": {+ "label": "Anomaly details",+ "description": "Detector-specific values for this bucket, for example ensemble sub-scores. Its shape depends on the detector.",+ "type": "String",+ },"$csp_document_url": {"label": "Document URL","description": "The URL of the document where the violation occurred.",diff --git a/products/billing/skills/understanding-billing-usage/SKILL.md b/products/billing/skills/understanding-billing-usage/SKILL.mdindex e534b6284dd4..70a1654d289e 100644--- a/products/billing/skills/understanding-billing-usage/SKILL.md+++ b/products/billing/skills/understanding-billing-usage/SKILL.md@@ -205,7 +205,8 @@ WHERE timestamp >= {window_start}'$conversations_loaded', '$conversations_widget_loaded','$conversations_message_sent', '$conversations_user_identified','$conversations_restore_link_requested',- '$conversations_widget_state_changed', '$conversations_back_to_tickets'+ '$conversations_widget_state_changed', '$conversations_back_to_tickets',+ '$anomaly_score', '$anomaly_score_shadow')AND NOT startsWith(event, '$ai_')GROUP BY event