Skip to content

: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.

feat(error-tracking): add fingerprint map (#83832)

Hugues Pouillotdd408530ee10
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index accf1d1b4d38..90d3b4c1fce3 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -6180,6 +6180,10 @@ snapshots:
hash: v1.k794b7964.8af7a7f552f592c9bea2a3bf7bd687bace89246404cac7991973d2c760104f9d.DO0DLDoxcYidQZT32FkkgnuXCRQsmRuOUC3JR-TG8hI
scenes-app-errortracking--group-page-empty-with-filter--light:
hash: v1.k794b7964.50372c3554997af22c6286d29899ed2dee7286543f9854a24369c82594827b4f.hm-F4CK6jtHzTcU9SNds3hfdGHucHAvoKl2inMnQA-A
+ scenes-app-errortracking--group-page-fingerprint-map--dark:
+ hash: v1.k794b7964.c2371b61c82d78840a898f65a5d5056500445f4f58ee5c66cecfba5b58332963.18BW2E8eIlCmRO_44KTj9DdGo4b-mKrYmVN71UR6cnU
+ scenes-app-errortracking--group-page-fingerprint-map--light:
+ hash: v1.k794b7964.40458b483fe451732ea55a59cc6a8e1791f7bef20e423ae84f64f9475e6fe56d.eb1v7v97E17EKC7HUbObCd3YpY9FqZPCzTZBpeUfRIk
scenes-app-errortracking--group-page-loading--dark:
hash: v1.k794b7964.211fa2dc218f0004b4f6fb90be5accfd1cec678d8cf5d75f2aa0c06167dc9b8b.ZF3VTqeZ0v_HQxJZyMnn70EScvoUGGyQ-fjz4dw-ExA
scenes-app-errortracking--group-page-loading--light:
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index eebe311f8b64..cc258b5c9e57 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -310,6 +310,7 @@ export const FEATURE_FLAGS = {
EDITOR_DRAFTS: 'editor-drafts', // owner: @EDsCODE #team-data-tools
ENDPOINTS_AI_MATERIALIZATION_FIX: 'endpoints-ai-materialization-fix', // owner: @sakce #team-data-modeling, gates the AI materialization rewrite (UI button + API action + MCP tools)
ENGINEERING_ANALYTICS: 'engineering-analytics', // owner: #team-devex
+ ERROR_TRACKING_FINGERPRINT_MAP: 'error-tracking-fingerprint-map', // owner: #team-error-tracking
ERROR_TRACKING_ISSUE_CORRELATION: 'error-tracking-issue-correlation', // owner: @david #team-error-tracking
ERROR_TRACKING_ISSUE_SPLITTING: 'error-tracking-issue-splitting', // owner: @david #team-error-tracking
ERROR_TRACKING_RATE_LIMITING: 'error-tracking-rate-limiting', // owner: @ablaszkiewicz #team-error-tracking
diff --git a/frontend/src/queries/schema.json b/frontend/src/queries/schema.json
index 870e5456bafa..64af7edefc92 100644
--- a/frontend/src/queries/schema.json
+++ b/frontend/src/queries/schema.json
@@ -1584,6 +1584,9 @@
{
"$ref": "#/definitions/ErrorTrackingSimilarIssuesQuery"
},
+ {
+ "$ref": "#/definitions/ErrorTrackingFingerprintProjectionQuery"
+ },
{
"$ref": "#/definitions/ErrorTrackingBreakdownsQuery"
},
@@ -7230,6 +7233,109 @@
],
"type": "object"
},
+ "CachedErrorTrackingFingerprintProjectionQueryResponse": {
+ "additionalProperties": false,
+ "properties": {
+ "cache_key": {
+ "type": "string"
+ },
+ "cache_target_age": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "calculation_trigger": {
+ "description": "What triggered the calculation of the query, leave empty if user/immediate",
+ "type": "string"
+ },
+ "error": {
+ "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
+ "type": "string"
+ },
+ "hasMore": {
+ "type": "boolean"
+ },
+ "hogql": {
+ "description": "Generated HogQL query.",
+ "type": "string"
+ },
+ "is_cached": {
+ "type": "boolean"
+ },
+ "last_refresh": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "modifiers": {
+ "$ref": "#/definitions/HogQLQueryModifiers",
+ "description": "Modifiers used when performing the query"
+ },
+ "next_allowed_client_refresh": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "query_metadata": {
+ "type": "object"
+ },
+ "query_status": {
+ "$ref": "#/definitions/QueryStatus",
+ "description": "Query status indicates whether next to the provided data, a query is still running."
+ },
+ "resolved_compare_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The resolved previous/comparison period date range, when comparing against another period"
+ },
+ "resolved_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The date range used for the query"
+ },
+ "results": {
+ "items": {
+ "$ref": "#/definitions/ErrorTrackingFingerprintProjectionPoint"
+ },
+ "type": "array"
+ },
+ "timezone": {
+ "type": "string"
+ },
+ "timings": {
+ "description": "Measured timings for different parts of the query generation process",
+ "items": {
+ "$ref": "#/definitions/QueryTiming"
+ },
+ "type": "array"
+ },
+ "used_data_warehouse_sources": {
+ "description": "Connector-synced data warehouse sources referenced by this query, if any.",
+ "items": {
+ "$ref": "#/definitions/DataWarehouseSourceUsage"
+ },
+ "type": "array"
+ },
+ "warnings": {
+ "description": "Warnings about data warehouse sources referenced by the query whose latest sync failed, is paused, hit a billing limit, or is otherwise stale. Results may not reflect current source data. Accumulated across every HogQL execution that contributes to this response — so insights backed by warehouse tables (Trends, Funnels, etc.) receive the same warnings as raw HogQL queries. Also carries access control warnings when a system-table query filters out objects the user can't access.",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/DataWarehouseSyncWarning"
+ },
+ {
+ "$ref": "#/definitions/AccessControlFilterWarning"
+ }
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "cache_key",
+ "is_cached",
+ "last_refresh",
+ "next_allowed_client_refresh",
+ "results",
+ "timezone"
+ ],
+ "type": "object"
+ },
"CachedErrorTrackingIssueCorrelationQueryResponse": {
"additionalProperties": false,
"properties": {
@@ -20891,6 +20997,124 @@
"required": ["id", "kind", "display_name"],
"type": "object"
},
+ "ErrorTrackingFingerprintProjectionPoint": {
+ "additionalProperties": false,
+ "properties": {
+ "fingerprint": {
+ "type": "string"
+ },
+ "x": {
+ "type": "number"
+ },
+ "y": {
+ "type": "number"
+ }
+ },
+ "required": ["fingerprint", "x", "y"],
+ "type": "object"
+ },
+ "ErrorTrackingFingerprintProjectionQuery": {
+ "additionalProperties": false,
+ "properties": {
+ "issueId": {
+ "type": "string"
+ },
+ "kind": {
+ "const": "ErrorTrackingFingerprintProjectionQuery",
+ "type": "string"
+ },
+ "modelName": {
+ "$ref": "#/definitions/EmbeddingModelName"
+ },
+ "modifiers": {
+ "$ref": "#/definitions/HogQLQueryModifiers",
+ "description": "Modifiers used when performing the query"
+ },
+ "rendering": {
+ "type": "string"
+ },
+ "response": {
+ "$ref": "#/definitions/ErrorTrackingFingerprintProjectionQueryResponse"
+ },
+ "tags": {
+ "$ref": "#/definitions/QueryLogTags"
+ },
+ "version": {
+ "description": "version of the node, used for schema migrations",
+ "type": "number"
+ }
+ },
+ "required": ["issueId", "kind"],
+ "type": "object"
+ },
+ "ErrorTrackingFingerprintProjectionQueryResponse": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
+ "type": "string"
+ },
+ "hasMore": {
+ "type": "boolean"
+ },
+ "hogql": {
+ "description": "Generated HogQL query.",
+ "type": "string"
+ },
+ "modifiers": {
+ "$ref": "#/definitions/HogQLQueryModifiers",
+ "description": "Modifiers used when performing the query"
+ },
+ "query_status": {
+ "$ref": "#/definitions/QueryStatus",
+ "description": "Query status indicates whether next to the provided data, a query is still running."
+ },
+ "resolved_compare_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The resolved previous/comparison period date range, when comparing against another period"
+ },
+ "resolved_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The date range used for the query"
+ },
+ "results": {
+ "items": {
+ "$ref": "#/definitions/ErrorTrackingFingerprintProjectionPoint"
+ },
+ "type": "array"
+ },
+ "timings": {
+ "description": "Measured timings for different parts of the query generation process",
+ "items": {
+ "$ref": "#/definitions/QueryTiming"
+ },
+ "type": "array"
+ },
+ "used_data_warehouse_sources": {
+ "description": "Connector-synced data warehouse sources referenced by this query, if any.",
+ "items": {
+ "$ref": "#/definitions/DataWarehouseSourceUsage"
+ },
+ "type": "array"
+ },
+ "warnings": {
+ "description": "Warnings about data warehouse sources referenced by the query whose latest sync failed, is paused, hit a billing limit, or is otherwise stale. Results may not reflect current source data. Accumulated across every HogQL execution that contributes to this response — so insights backed by warehouse tables (Trends, Funnels, etc.) receive the same warnings as raw HogQL queries. Also carries access control warnings when a system-table query filters out objects the user can't access.",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/DataWarehouseSyncWarning"
+ },
+ {
+ "$ref": "#/definitions/AccessControlFilterWarning"
+ }
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": ["results"],
+ "type": "object"
+ },
"ErrorTrackingIssue": {
"additionalProperties": false,
"properties": {
@@ -36158,6 +36382,7 @@
"SessionAttributionExplorerQuery",
"ErrorTrackingQuery",
"ErrorTrackingSimilarIssuesQuery",
+ "ErrorTrackingFingerprintProjectionQuery",
"ErrorTrackingBreakdownsQuery",
"ErrorTrackingIssueCorrelationQuery",
"LogsQuery",
@@ -39222,6 +39447,74 @@
"required": ["results"],
"type": "object"
},
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
+ "type": "string"
+ },
+ "hasMore": {
+ "type": "boolean"
+ },
+ "hogql": {
+ "description": "Generated HogQL query.",
+ "type": "string"
+ },
+ "modifiers": {
+ "$ref": "#/definitions/HogQLQueryModifiers",
+ "description": "Modifiers used when performing the query"
+ },
+ "query_status": {
+ "$ref": "#/definitions/QueryStatus",
+ "description": "Query status indicates whether next to the provided data, a query is still running."
+ },
+ "resolved_compare_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The resolved previous/comparison period date range, when comparing against another period"
+ },
+ "resolved_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The date range used for the query"
+ },
+ "results": {
+ "items": {
+ "$ref": "#/definitions/ErrorTrackingFingerprintProjectionPoint"
+ },
+ "type": "array"
+ },
+ "timings": {
+ "description": "Measured timings for different parts of the query generation process",
+ "items": {
+ "$ref": "#/definitions/QueryTiming"
+ },
+ "type": "array"
+ },
+ "used_data_warehouse_sources": {
+ "description": "Connector-synced data warehouse sources referenced by this query, if any.",
+ "items": {
+ "$ref": "#/definitions/DataWarehouseSourceUsage"
+ },
+ "type": "array"
+ },
+ "warnings": {
+ "description": "Warnings about data warehouse sources referenced by the query whose latest sync failed, is paused, hit a billing limit, or is otherwise stale. Results may not reflect current source data. Accumulated across every HogQL execution that contributes to this response — so insights backed by warehouse tables (Trends, Funnels, etc.) receive the same warnings as raw HogQL queries. Also carries access control warnings when a system-table query filters out objects the user can't access.",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/DataWarehouseSyncWarning"
+ },
+ {
+ "$ref": "#/definitions/AccessControlFilterWarning"
+ }
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": ["results"],
+ "type": "object"
+ },
{
"additionalProperties": false,
"properties": {
@@ -46173,6 +46466,9 @@
{
"$ref": "#/definitions/ErrorTrackingSimilarIssuesQuery"
},
+ {
+ "$ref": "#/definitions/ErrorTrackingFingerprintProjectionQuery"
+ },
{
"$ref": "#/definitions/ErrorTrackingBreakdownsQuery"
},
diff --git a/frontend/src/queries/schema/schema-general.ts b/frontend/src/queries/schema/schema-general.ts
index 42da182af908..fb8d79d5f1ad 100644
--- a/frontend/src/queries/schema/schema-general.ts
+++ b/frontend/src/queries/schema/schema-general.ts
@@ -102,6 +102,7 @@ export enum NodeKind {
SessionAttributionExplorerQuery = 'SessionAttributionExplorerQuery',
ErrorTrackingQuery = 'ErrorTrackingQuery',
ErrorTrackingSimilarIssuesQuery = 'ErrorTrackingSimilarIssuesQuery',
+ ErrorTrackingFingerprintProjectionQuery = 'ErrorTrackingFingerprintProjectionQuery',
ErrorTrackingBreakdownsQuery = 'ErrorTrackingBreakdownsQuery',
ErrorTrackingIssueCorrelationQuery = 'ErrorTrackingIssueCorrelationQuery',
LogsQuery = 'LogsQuery',
@@ -247,6 +248,7 @@ export type AnyDataNode =
| SessionAttributionExplorerQuery
| ErrorTrackingQuery
| ErrorTrackingSimilarIssuesQuery
+ | ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
| ErrorTrackingIssueCorrelationQuery
| LogsQuery
@@ -313,6 +315,7 @@ export type QuerySchema =
| SessionAttributionExplorerQuery
| ErrorTrackingQuery
| ErrorTrackingSimilarIssuesQuery
+ | ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
| ErrorTrackingIssueCorrelationQuery
| ExperimentFunnelsQuery
@@ -3832,6 +3835,13 @@ export interface ErrorTrackingSimilarIssuesQuery extends DataNode<ErrorTrackingS
offset?: integer
}
+export interface ErrorTrackingFingerprintProjectionQuery extends DataNode<ErrorTrackingFingerprintProjectionQueryResponse> {
+ kind: NodeKind.ErrorTrackingFingerprintProjectionQuery
+ issueId: ErrorTrackingIssue['id']
+ modelName?: EmbeddingModelName
+ rendering?: string
+}
+
export interface ErrorTrackingBreakdownsQuery extends DataNode<ErrorTrackingBreakdownsQueryResponse> {
kind: NodeKind.ErrorTrackingBreakdownsQuery
issueId: ErrorTrackingIssue['id']
@@ -3992,6 +4002,19 @@ export interface ErrorTrackingSimilarIssuesQueryResponse extends AnalyticsQueryR
}
export type CachedErrorTrackingSimilarIssuesQueryResponse = CachedQueryResponse<ErrorTrackingSimilarIssuesQueryResponse>
+export interface ErrorTrackingFingerprintProjectionPoint {
+ fingerprint: string
+ x: number
+ y: number
+}
+
+export interface ErrorTrackingFingerprintProjectionQueryResponse extends AnalyticsQueryResponseBase {
+ results: ErrorTrackingFingerprintProjectionPoint[]
+ hasMore?: boolean
+}
+export type CachedErrorTrackingFingerprintProjectionQueryResponse =
+ CachedQueryResponse<ErrorTrackingFingerprintProjectionQueryResponse>
+
export interface ErrorTrackingBreakdownsQueryResponse extends AnalyticsQueryResponseBase {
results: Record<string, { values: BreakdownValue[]; total_count: number }>
}
diff --git a/frontend/src/scenes/saved-insights/insightTypesMetadata.tsx b/frontend/src/scenes/saved-insights/insightTypesMetadata.tsx
index 2d335ef1f259..4bfe2b6e5fd7 100644
--- a/frontend/src/scenes/saved-insights/insightTypesMetadata.tsx
+++ b/frontend/src/scenes/saved-insights/insightTypesMetadata.tsx
@@ -363,6 +363,12 @@ export const QUERY_TYPES_METADATA: Record<NodeKind, InsightTypeMetadata> = {
icon: IconWarning,
inMenu: false,
},
+ [NodeKind.ErrorTrackingFingerprintProjectionQuery]: {
+ name: 'Error tracking fingerprint projection',
+ description: 'Plot issue fingerprints by embedding similarity.',
+ icon: IconWarning,
+ inMenu: false,
+ },
[NodeKind.ErrorTrackingBreakdownsQuery]: {
name: 'Error Tracking Breakdowns',
description: 'Break down error tracking issues by properties.',
diff --git a/posthog/api/query.py b/posthog/api/query.py
index dd5be378f024..21981dce3d1f 100644
--- a/posthog/api/query.py
+++ b/posthog/api/query.py
@@ -66,6 +66,8 @@ from posthog.rate_limit import (
APIQueriesSustainedThrottle,
ClickHouseBurstRateThrottle,
ClickHouseSustainedRateThrottle,
+ ErrorTrackingFingerprintProjectionBurstRateThrottle,
+ ErrorTrackingFingerprintProjectionSustainedRateThrottle,
HogQLQueryThrottle,
)
from posthog.rbac.user_access_control import UserAccessControlError
@@ -171,6 +173,7 @@ def _process_query_request(
# the generic endpoint.
_QUERY_KIND_SCOPES: dict[str, list[str]] = {
"AccountsTableQuery": ["query:read", "account:read"],
+ "ErrorTrackingFingerprintProjectionQuery": ["query:read", "error_tracking:read"],
"MetricsQuery": ["metrics:read"],
# Both scopes listed: this result replaces the view's default query:read
# rather than adding to it, and a token must hold every listed scope.
@@ -214,15 +217,20 @@ class QueryViewSet(QueryCoalescingMixin, TeamAndOrgViewSetMixin, PydanticModelMi
return [AIBurstRateThrottle(), AISustainedRateThrottle()]
if self.action == "get_query_log":
return [APIQueriesBurstThrottle(), APIQueriesSustainedThrottle()]
+ query = self.request.data.get("query")
+ if isinstance(query, dict) and query.get("kind") == "ErrorTrackingFingerprintProjectionQuery":
+ return [
+ ErrorTrackingFingerprintProjectionBurstRateThrottle(),
+ ErrorTrackingFingerprintProjectionSustainedRateThrottle(),
+ ]
if (
self.team_id in settings.API_QUERIES_PER_TEAM
or (settings.API_QUERIES_ENABLED and self.check_team_api_queries_concurrency())
or (settings.API_QUERIES_LEGACY_TEAM_LIST and self.team_id not in settings.API_QUERIES_LEGACY_TEAM_LIST)
):
return [APIQueriesBurstThrottle(), APIQueriesSustainedThrottle()]
- if query := self.request.data.get("query"):
- if isinstance(query, dict) and query.get("kind") == "HogQLQuery":
- return [HogQLQueryThrottle()]
+ if isinstance(query, dict) and query.get("kind") == "HogQLQuery":
+ return [HogQLQueryThrottle()]
return [ClickHouseBurstRateThrottle(), ClickHouseSustainedRateThrottle()]
def check_team_api_queries_concurrency(self):
diff --git a/posthog/clickhouse/query_tagging.py b/posthog/clickhouse/query_tagging.py
index a3923b06fc30..3f267a0531da 100644
--- a/posthog/clickhouse/query_tagging.py
+++ b/posthog/clickhouse/query_tagging.py
@@ -217,6 +217,7 @@ def kind_fallback_tags(kind: NodeKind) -> FallbackTags | None:
NodeKind.ERROR_TRACKING_QUERY
| NodeKind.ERROR_TRACKING_ISSUE_CORRELATION_QUERY
| NodeKind.ERROR_TRACKING_SIMILAR_ISSUES_QUERY
+ | NodeKind.ERROR_TRACKING_FINGERPRINT_PROJECTION_QUERY
| NodeKind.ERROR_TRACKING_BREAKDOWNS_QUERY
):
return {"product": Product.ERROR_TRACKING}
diff --git a/posthog/hogql_queries/query_runner.py b/posthog/hogql_queries/query_runner.py
index 6719fe69b535..eb508ddadd32 100644
--- a/posthog/hogql_queries/query_runner.py
+++ b/posthog/hogql_queries/query_runner.py
@@ -978,6 +978,18 @@ def get_query_runner(
user=user,
)
+ if kind == "ErrorTrackingFingerprintProjectionQuery":
+ from products.error_tracking.backend.facade.queries import ErrorTrackingFingerprintProjectionQueryRunner
+
+ return ErrorTrackingFingerprintProjectionQueryRunner(
+ query=query,
+ team=team,
+ timings=timings,
+ modifiers=modifiers,
+ limit_context=limit_context,
+ user=user,
+ )
+
if kind == "ErrorTrackingBreakdownsQuery":
from products.error_tracking.backend.facade.queries import ErrorTrackingBreakdownsQueryRunner
diff --git a/posthog/rate_limit.py b/posthog/rate_limit.py
index 528dd6661179..c95bb2e3a82a 100644
--- a/posthog/rate_limit.py
+++ b/posthog/rate_limit.py
@@ -569,6 +569,19 @@ class SessionContextsSustainedRateThrottle(_TeamBucketRateThrottle):
rate = "600/hour"
+# Fingerprint projection runs t-SNE synchronously over up to 250 high-dimensional embeddings.
+# Query endpoint defaults only cover personal API keys, so use a team-wide bucket to include
+# session callers and prevent forced refreshes from consuming application workers without bound.
+class ErrorTrackingFingerprintProjectionBurstRateThrottle(_TeamBucketRateThrottle):
+ scope = "error_tracking_fingerprint_projection_burst"
+ rate = "10/minute"
+
+
+class ErrorTrackingFingerprintProjectionSustainedRateThrottle(_TeamBucketRateThrottle):
+ scope = "error_tracking_fingerprint_projection_sustained"
+ rate = "100/hour"
+
+
# The logs anomaly scan aggregates weeks of baseline slices from ClickHouse in one synchronous
# request — the heaviest single query the logs product exposes, budgeted at gigabytes of reads
# per call. A team-wide bucket caps the project's total spend regardless of how many users or
diff --git a/posthog/schema.py b/posthog/schema.py
index 315321ba7678..7f9dfd5b0ff7 100644
--- a/posthog/schema.py
+++ b/posthog/schema.py
@@ -1219,6 +1219,15 @@ class Population(BaseModel):
success_only: float
+class ErrorTrackingFingerprintProjectionPoint(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ fingerprint: str
+ x: float
+ y: float
+
+
class FirstEvent(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -2438,7 +2447,7 @@ class QueryResponseAlternative7(BaseModel):
stdout: str | None = None
-class QueryResponseAlternative77(BaseModel):
+class QueryResponseAlternative78(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -6327,7 +6336,7 @@ class QueryResponseAlternative10(BaseModel):
)
-class QueryResponseAlternative19(BaseModel):
+class QueryResponseAlternative20(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -6343,7 +6352,7 @@ class QueryResponseAlternative19(BaseModel):
)
-class QueryResponseAlternative28(BaseModel):
+class QueryResponseAlternative29(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -6352,7 +6361,7 @@ class QueryResponseAlternative28(BaseModel):
status: ExternalQueryStatus
-class QueryResponseAlternative84(BaseModel):
+class QueryResponseAlternative85(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -11038,6 +11047,65 @@ class CachedErrorTrackingBreakdownsQueryResponse(BaseModel):
)
+class CachedErrorTrackingFingerprintProjectionQueryResponse(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ cache_key: str
+ cache_target_age: AwareDatetime | None = None
+ calculation_trigger: str | None = Field(
+ default=None,
+ description=("What triggered the calculation of the query, leave empty if user/immediate"),
+ )
+ error: str | None = Field(
+ default=None,
+ description=(
+ "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
+ ),
+ )
+ hasMore: bool | None = None
+ hogql: str | None = Field(default=None, description="Generated HogQL query.")
+ is_cached: bool
+ last_refresh: AwareDatetime
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ next_allowed_client_refresh: AwareDatetime
+ query_metadata: dict[str, Any] | None = None
+ query_status: QueryStatus | None = Field(
+ default=None,
+ description=("Query status indicates whether next to the provided data, a query is still running."),
+ )
+ resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None,
+ description=("The resolved previous/comparison period date range, when comparing against another period"),
+ )
+ resolved_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None, description="The date range used for the query"
+ )
+ results: list[ErrorTrackingFingerprintProjectionPoint]
+ timezone: str
+ timings: list[QueryTiming] | None = Field(
+ default=None,
+ description=("Measured timings for different parts of the query generation process"),
+ )
+ used_data_warehouse_sources: list[DataWarehouseSourceUsage] | None = Field(
+ default=None,
+ description=("Connector-synced data warehouse sources referenced by this query, if any."),
+ )
+ warnings: list[DataWarehouseSyncWarning | AccessControlFilterWarning] | None = Field(
+ default=None,
+ description=(
+ "Warnings about data warehouse sources referenced by the query whose"
+ " latest sync failed, is paused, hit a billing limit, or is otherwise"
+ " stale. Results may not reflect current source data. Accumulated"
+ " across every HogQL execution that contributes to this response — so"
+ " insights backed by warehouse tables (Trends, Funnels, etc.) receive"
+ " the same warnings as raw HogQL queries. Also carries access control"
+ " warnings when a system-table query filters out objects the user can't"
+ " access."
+ ),
+ )
+
+
class CachedErrorTrackingSimilarIssuesQueryResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -16425,6 +16493,54 @@ class ErrorTrackingExternalReference(BaseModel):
integration: ErrorTrackingExternalReferenceIntegration
+class ErrorTrackingFingerprintProjectionQueryResponse(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ error: str | None = Field(
+ default=None,
+ description=(
+ "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
+ ),
+ )
+ hasMore: bool | None = None
+ hogql: str | None = Field(default=None, description="Generated HogQL query.")
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ query_status: QueryStatus | None = Field(
+ default=None,
+ description=("Query status indicates whether next to the provided data, a query is still running."),
+ )
+ resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None,
+ description=("The resolved previous/comparison period date range, when comparing against another period"),
+ )
+ resolved_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None, description="The date range used for the query"
+ )
+ results: list[ErrorTrackingFingerprintProjectionPoint]
+ timings: list[QueryTiming] | None = Field(
+ default=None,
+ description=("Measured timings for different parts of the query generation process"),
+ )
+ used_data_warehouse_sources: list[DataWarehouseSourceUsage] | None = Field(
+ default=None,
+ description=("Connector-synced data warehouse sources referenced by this query, if any."),
+ )
+ warnings: list[DataWarehouseSyncWarning | AccessControlFilterWarning] | None = Field(
+ default=None,
+ description=(
+ "Warnings about data warehouse sources referenced by the query whose"
+ " latest sync failed, is paused, hit a billing limit, or is otherwise"
+ " stale. Results may not reflect current source data. Accumulated"
+ " across every HogQL execution that contributes to this response — so"
+ " insights backed by warehouse tables (Trends, Funnels, etc.) receive"
+ " the same warnings as raw HogQL queries. Also carries access control"
+ " warnings when a system-table query filters out objects the user can't"
+ " access."
+ ),
+ )
+
+
class ErrorTrackingIssue(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -19456,6 +19572,54 @@ class QueryResponseAlternative13(BaseModel):
class QueryResponseAlternative14(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ error: str | None = Field(
+ default=None,
+ description=(
+ "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
+ ),
+ )
+ hasMore: bool | None = None
+ hogql: str | None = Field(default=None, description="Generated HogQL query.")
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ query_status: QueryStatus | None = Field(
+ default=None,
+ description=("Query status indicates whether next to the provided data, a query is still running."),
+ )
+ resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None,
+ description=("The resolved previous/comparison period date range, when comparing against another period"),
+ )
+ resolved_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None, description="The date range used for the query"
+ )
+ results: list[ErrorTrackingFingerprintProjectionPoint]
+ timings: list[QueryTiming] | None = Field(
+ default=None,
+ description=("Measured timings for different parts of the query generation process"),
+ )
+ used_data_warehouse_sources: list[DataWarehouseSourceUsage] | None = Field(
+ default=None,
+ description=("Connector-synced data warehouse sources referenced by this query, if any."),
+ )
+ warnings: list[DataWarehouseSyncWarning | AccessControlFilterWarning] | None = Field(
+ default=None,
+ description=(
+ "Warnings about data warehouse sources referenced by the query whose"
+ " latest sync failed, is paused, hit a billing limit, or is otherwise"
+ " stale. Results may not reflect current source data. Accumulated"
+ " across every HogQL execution that contributes to this response — so"
+ " insights backed by warehouse tables (Trends, Funnels, etc.) receive"
+ " the same warnings as raw HogQL queries. Also carries access control"
+ " warnings when a system-table query filters out objects the user can't"
+ " access."
+ ),
+ )
+
+
+class QueryResponseAlternative15(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19502,7 +19666,7 @@ class QueryResponseAlternative14(BaseModel):
)
-class QueryResponseAlternative20(BaseModel):
+class QueryResponseAlternative21(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19552,7 +19716,7 @@ class QueryResponseAlternative20(BaseModel):
)
-class QueryResponseAlternative21(BaseModel):
+class QueryResponseAlternative22(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19603,7 +19767,7 @@ class QueryResponseAlternative21(BaseModel):
)
-class QueryResponseAlternative22(BaseModel):
+class QueryResponseAlternative23(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19664,7 +19828,7 @@ class QueryResponseAlternative22(BaseModel):
)
-class QueryResponseAlternative23(BaseModel):
+class QueryResponseAlternative24(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19717,7 +19881,7 @@ class QueryResponseAlternative23(BaseModel):
)
-class QueryResponseAlternative24(BaseModel):
+class QueryResponseAlternative25(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19769,7 +19933,7 @@ class QueryResponseAlternative24(BaseModel):
)
-class QueryResponseAlternative25(BaseModel):
+class QueryResponseAlternative26(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19823,7 +19987,7 @@ class QueryResponseAlternative25(BaseModel):
)
-class QueryResponseAlternative26(BaseModel):
+class QueryResponseAlternative27(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19871,7 +20035,7 @@ class QueryResponseAlternative26(BaseModel):
)
-class QueryResponseAlternative27(BaseModel):
+class QueryResponseAlternative28(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19921,7 +20085,7 @@ class QueryResponseAlternative27(BaseModel):
)
-class QueryResponseAlternative29(BaseModel):
+class QueryResponseAlternative30(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19970,7 +20134,7 @@ class QueryResponseAlternative29(BaseModel):
)
-class QueryResponseAlternative30(BaseModel):
+class QueryResponseAlternative31(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20023,7 +20187,7 @@ class QueryResponseAlternative30(BaseModel):
)
-class QueryResponseAlternative31(BaseModel):
+class QueryResponseAlternative32(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20071,7 +20235,7 @@ class QueryResponseAlternative31(BaseModel):
)
-class QueryResponseAlternative32(BaseModel):
+class QueryResponseAlternative33(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20141,7 +20305,7 @@ class QueryResponseAlternative32(BaseModel):
)
-class QueryResponseAlternative33(BaseModel):
+class QueryResponseAlternative34(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20205,7 +20369,7 @@ class QueryResponseAlternative33(BaseModel):
)
-class QueryResponseAlternative34(BaseModel):
+class QueryResponseAlternative35(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20258,7 +20422,7 @@ class QueryResponseAlternative34(BaseModel):
)
-class QueryResponseAlternative35(BaseModel):
+class QueryResponseAlternative36(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20311,7 +20475,7 @@ class QueryResponseAlternative35(BaseModel):
)
-class QueryResponseAlternative36(BaseModel):
+class QueryResponseAlternative37(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20364,7 +20528,7 @@ class QueryResponseAlternative36(BaseModel):
)
-class QueryResponseAlternative37(BaseModel):
+class QueryResponseAlternative38(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20417,7 +20581,7 @@ class QueryResponseAlternative37(BaseModel):
)
-class QueryResponseAlternative38(BaseModel):
+class QueryResponseAlternative39(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20470,7 +20634,7 @@ class QueryResponseAlternative38(BaseModel):
)
-class QueryResponseAlternative39(BaseModel):
+class QueryResponseAlternative40(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20521,7 +20685,7 @@ class QueryResponseAlternative39(BaseModel):
)
-class QueryResponseAlternative40(BaseModel):
+class QueryResponseAlternative41(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20582,7 +20746,7 @@ class QueryResponseAlternative40(BaseModel):
)
-class QueryResponseAlternative41(BaseModel):
+class QueryResponseAlternative42(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20635,7 +20799,7 @@ class QueryResponseAlternative41(BaseModel):
)
-class QueryResponseAlternative42(BaseModel):
+class QueryResponseAlternative43(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20687,7 +20851,7 @@ class QueryResponseAlternative42(BaseModel):
)
-class QueryResponseAlternative43(BaseModel):
+class QueryResponseAlternative44(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20741,7 +20905,7 @@ class QueryResponseAlternative43(BaseModel):
)
-class QueryResponseAlternative44(BaseModel):
+class QueryResponseAlternative45(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20789,7 +20953,7 @@ class QueryResponseAlternative44(BaseModel):
)
-class QueryResponseAlternative45(BaseModel):
+class QueryResponseAlternative46(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20841,7 +21005,7 @@ class QueryResponseAlternative45(BaseModel):
)
-class QueryResponseAlternative46(BaseModel):
+class QueryResponseAlternative47(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20893,7 +21057,7 @@ class QueryResponseAlternative46(BaseModel):
)
-class QueryResponseAlternative47(BaseModel):
+class QueryResponseAlternative48(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20946,7 +21110,7 @@ class QueryResponseAlternative47(BaseModel):
)
-class QueryResponseAlternative48(BaseModel):
+class QueryResponseAlternative49(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20994,7 +21158,7 @@ class QueryResponseAlternative48(BaseModel):
)
-class QueryResponseAlternative49(BaseModel):
+class QueryResponseAlternative50(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21047,7 +21211,7 @@ class QueryResponseAlternative49(BaseModel):
)
-class QueryResponseAlternative50(BaseModel):
+class QueryResponseAlternative51(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21098,7 +21262,7 @@ class QueryResponseAlternative50(BaseModel):
)
-class QueryResponseAlternative54(BaseModel):
+class QueryResponseAlternative55(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21149,7 +21313,7 @@ class QueryResponseAlternative54(BaseModel):
)
-class QueryResponseAlternative56(BaseModel):
+class QueryResponseAlternative57(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21201,7 +21365,7 @@ class QueryResponseAlternative56(BaseModel):
)
-class QueryResponseAlternative57(BaseModel):
+class QueryResponseAlternative58(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21258,7 +21422,7 @@ class QueryResponseAlternative57(BaseModel):
)
-class QueryResponseAlternative58(BaseModel):
+class QueryResponseAlternative59(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21313,7 +21477,7 @@ class QueryResponseAlternative58(BaseModel):
)
-class QueryResponseAlternative59(BaseModel):
+class QueryResponseAlternative60(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21362,7 +21526,7 @@ class QueryResponseAlternative59(BaseModel):
)
-class QueryResponseAlternative60(BaseModel):
+class QueryResponseAlternative61(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21416,7 +21580,7 @@ class QueryResponseAlternative60(BaseModel):
)
-class QueryResponseAlternative61(BaseModel):
+class QueryResponseAlternative62(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21463,7 +21627,7 @@ class QueryResponseAlternative61(BaseModel):
)
-class QueryResponseAlternative62(BaseModel):
+class QueryResponseAlternative63(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21510,7 +21674,7 @@ class QueryResponseAlternative62(BaseModel):
)
-class QueryResponseAlternative63(BaseModel):
+class QueryResponseAlternative64(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21557,7 +21721,7 @@ class QueryResponseAlternative63(BaseModel):
)
-class QueryResponseAlternative64(BaseModel):
+class QueryResponseAlternative65(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21604,7 +21768,7 @@ class QueryResponseAlternative64(BaseModel):
)
-class QueryResponseAlternative66(BaseModel):
+class QueryResponseAlternative67(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21656,7 +21820,7 @@ class QueryResponseAlternative66(BaseModel):
)
-class QueryResponseAlternative68(BaseModel):
+class QueryResponseAlternative69(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21708,7 +21872,7 @@ class QueryResponseAlternative68(BaseModel):
)
-class QueryResponseAlternative69(BaseModel):
+class QueryResponseAlternative70(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21760,7 +21924,7 @@ class QueryResponseAlternative69(BaseModel):
)
-class QueryResponseAlternative70(BaseModel):
+class QueryResponseAlternative71(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21808,7 +21972,7 @@ class QueryResponseAlternative70(BaseModel):
)
-class QueryResponseAlternative71(BaseModel):
+class QueryResponseAlternative72(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21855,7 +22019,7 @@ class QueryResponseAlternative71(BaseModel):
)
-class QueryResponseAlternative72(BaseModel):
+class QueryResponseAlternative73(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21902,7 +22066,7 @@ class QueryResponseAlternative72(BaseModel):
)
-class QueryResponseAlternative73(BaseModel):
+class QueryResponseAlternative74(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21953,7 +22117,7 @@ class QueryResponseAlternative73(BaseModel):
)
-class QueryResponseAlternative74(BaseModel):
+class QueryResponseAlternative75(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22004,7 +22168,7 @@ class QueryResponseAlternative74(BaseModel):
)
-class QueryResponseAlternative75(BaseModel):
+class QueryResponseAlternative76(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22055,7 +22219,7 @@ class QueryResponseAlternative75(BaseModel):
)
-class QueryResponseAlternative76(BaseModel):
+class QueryResponseAlternative77(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22106,7 +22270,7 @@ class QueryResponseAlternative76(BaseModel):
)
-class QueryResponseAlternative78(BaseModel):
+class QueryResponseAlternative79(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22156,7 +22320,7 @@ class QueryResponseAlternative78(BaseModel):
)
-class QueryResponseAlternative79(BaseModel):
+class QueryResponseAlternative80(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22206,7 +22370,7 @@ class QueryResponseAlternative79(BaseModel):
)
-class QueryResponseAlternative80(BaseModel):
+class QueryResponseAlternative81(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22253,7 +22417,7 @@ class QueryResponseAlternative80(BaseModel):
)
-class QueryResponseAlternative81(BaseModel):
+class QueryResponseAlternative82(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22304,7 +22468,7 @@ class QueryResponseAlternative81(BaseModel):
)
-class QueryResponseAlternative85(BaseModel):
+class QueryResponseAlternative86(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22351,7 +22515,7 @@ class QueryResponseAlternative85(BaseModel):
)
-class QueryResponseAlternative86(BaseModel):
+class QueryResponseAlternative87(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22398,7 +22562,7 @@ class QueryResponseAlternative86(BaseModel):
)
-class QueryResponseAlternative87(BaseModel):
+class QueryResponseAlternative88(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22455,7 +22619,7 @@ class QueryResponseAlternative87(BaseModel):
)
-class QueryResponseAlternative88(BaseModel):
+class QueryResponseAlternative89(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22510,7 +22674,7 @@ class QueryResponseAlternative88(BaseModel):
)
-class QueryResponseAlternative89(BaseModel):
+class QueryResponseAlternative90(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22557,7 +22721,7 @@ class QueryResponseAlternative89(BaseModel):
)
-class QueryResponseAlternative90(BaseModel):
+class QueryResponseAlternative91(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22609,7 +22773,7 @@ class QueryResponseAlternative90(BaseModel):
)
-class QueryResponseAlternative91(BaseModel):
+class QueryResponseAlternative92(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22656,7 +22820,7 @@ class QueryResponseAlternative91(BaseModel):
)
-class QueryResponseAlternative92(BaseModel):
+class QueryResponseAlternative93(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22703,7 +22867,7 @@ class QueryResponseAlternative92(BaseModel):
)
-class QueryResponseAlternative93(BaseModel):
+class QueryResponseAlternative94(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22750,7 +22914,7 @@ class QueryResponseAlternative93(BaseModel):
)
-class QueryResponseAlternative94(BaseModel):
+class QueryResponseAlternative95(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22797,7 +22961,7 @@ class QueryResponseAlternative94(BaseModel):
)
-class QueryResponseAlternative95(BaseModel):
+class QueryResponseAlternative96(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22844,7 +23008,7 @@ class QueryResponseAlternative95(BaseModel):
)
-class QueryResponseAlternative96(BaseModel):
+class QueryResponseAlternative97(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22891,7 +23055,7 @@ class QueryResponseAlternative96(BaseModel):
)
-class QueryResponseAlternative97(BaseModel):
+class QueryResponseAlternative98(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22938,7 +23102,7 @@ class QueryResponseAlternative97(BaseModel):
)
-class QueryResponseAlternative98(BaseModel):
+class QueryResponseAlternative99(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22988,7 +23152,7 @@ class QueryResponseAlternative98(BaseModel):
)
-class QueryResponseAlternative99(BaseModel):
+class QueryResponseAlternative100(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23035,7 +23199,7 @@ class QueryResponseAlternative99(BaseModel):
)
-class QueryResponseAlternative100(BaseModel):
+class QueryResponseAlternative101(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23082,7 +23246,7 @@ class QueryResponseAlternative100(BaseModel):
)
-class QueryResponseAlternative101(BaseModel):
+class QueryResponseAlternative102(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23129,7 +23293,7 @@ class QueryResponseAlternative101(BaseModel):
)
-class QueryResponseAlternative102(BaseModel):
+class QueryResponseAlternative103(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23176,7 +23340,7 @@ class QueryResponseAlternative102(BaseModel):
)
-class QueryResponseAlternative103(BaseModel):
+class QueryResponseAlternative104(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23223,7 +23387,7 @@ class QueryResponseAlternative103(BaseModel):
)
-class QueryResponseAlternative104(BaseModel):
+class QueryResponseAlternative105(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23270,7 +23434,7 @@ class QueryResponseAlternative104(BaseModel):
)
-class QueryResponseAlternative105(BaseModel):
+class QueryResponseAlternative106(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23317,7 +23481,7 @@ class QueryResponseAlternative105(BaseModel):
)
-class QueryResponseAlternative106(BaseModel):
+class QueryResponseAlternative107(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23364,7 +23528,7 @@ class QueryResponseAlternative106(BaseModel):
)
-class QueryResponseAlternative107(BaseModel):
+class QueryResponseAlternative108(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -25354,6 +25518,20 @@ class ErrorTrackingCorrelatedIssue(BaseModel):
status: ErrorTrackingIssueStatus
+class ErrorTrackingFingerprintProjectionQuery(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ issueId: str
+ kind: Literal["ErrorTrackingFingerprintProjectionQuery"] = "ErrorTrackingFingerprintProjectionQuery"
+ modelName: EmbeddingModelName | None = None
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ rendering: str | None = None
+ response: ErrorTrackingFingerprintProjectionQueryResponse | None = None
+ tags: QueryLogTags | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
class ErrorTrackingIssueCorrelationQueryResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -26384,7 +26562,7 @@ class PropertyValuesQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class QueryResponseAlternative15(BaseModel):
+class QueryResponseAlternative16(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -27731,7 +27909,7 @@ class PathsV2ActorsQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class QueryResponseAlternative67(BaseModel):
+class QueryResponseAlternative68(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -27869,7 +28047,7 @@ class LegacyExperimentQueryResponse(BaseModel):
)
-class QueryResponseAlternative18(BaseModel):
+class QueryResponseAlternative19(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -28296,7 +28474,7 @@ class FunnelsQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class QueryResponseAlternative16(BaseModel):
+class QueryResponseAlternative17(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -28316,7 +28494,7 @@ class QueryResponseAlternative16(BaseModel):
)
-class QueryResponseAlternative17(BaseModel):
+class QueryResponseAlternative18(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -28337,7 +28515,7 @@ class QueryResponseAlternative17(BaseModel):
)
-class QueryResponseAlternative52(BaseModel):
+class QueryResponseAlternative53(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -28357,7 +28535,7 @@ class QueryResponseAlternative52(BaseModel):
)
-class QueryResponseAlternative53(BaseModel):
+class QueryResponseAlternative54(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -28415,8 +28593,8 @@ class QueryResponseAlternative(
| QueryResponseAlternative32
| QueryResponseAlternative33
| QueryResponseAlternative34
- | Any
| QueryResponseAlternative35
+ | Any
| QueryResponseAlternative36
| QueryResponseAlternative37
| QueryResponseAlternative38
@@ -28432,10 +28610,10 @@ class QueryResponseAlternative(
| QueryResponseAlternative48
| QueryResponseAlternative49
| QueryResponseAlternative50
- | QueryResponseAlternative52
+ | QueryResponseAlternative51
| QueryResponseAlternative53
| QueryResponseAlternative54
- | QueryResponseAlternative56
+ | QueryResponseAlternative55
| QueryResponseAlternative57
| QueryResponseAlternative58
| QueryResponseAlternative59
@@ -28444,7 +28622,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative62
| QueryResponseAlternative63
| QueryResponseAlternative64
- | QueryResponseAlternative66
+ | QueryResponseAlternative65
| QueryResponseAlternative67
| QueryResponseAlternative68
| QueryResponseAlternative69
@@ -28460,7 +28638,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative79
| QueryResponseAlternative80
| QueryResponseAlternative81
- | QueryResponseAlternative84
+ | QueryResponseAlternative82
| QueryResponseAlternative85
| QueryResponseAlternative86
| QueryResponseAlternative87
@@ -28484,6 +28662,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative105
| QueryResponseAlternative106
| QueryResponseAlternative107
+ | QueryResponseAlternative108
]
):
root: (
@@ -28522,8 +28701,8 @@ class QueryResponseAlternative(
| QueryResponseAlternative32
| QueryResponseAlternative33
| QueryResponseAlternative34
- | Any
| QueryResponseAlternative35
+ | Any
| QueryResponseAlternative36
| QueryResponseAlternative37
| QueryResponseAlternative38
@@ -28539,10 +28718,10 @@ class QueryResponseAlternative(
| QueryResponseAlternative48
| QueryResponseAlternative49
| QueryResponseAlternative50
- | QueryResponseAlternative52
+ | QueryResponseAlternative51
| QueryResponseAlternative53
| QueryResponseAlternative54
- | QueryResponseAlternative56
+ | QueryResponseAlternative55
| QueryResponseAlternative57
| QueryResponseAlternative58
| QueryResponseAlternative59
@@ -28551,7 +28730,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative62
| QueryResponseAlternative63
| QueryResponseAlternative64
- | QueryResponseAlternative66
+ | QueryResponseAlternative65
| QueryResponseAlternative67
| QueryResponseAlternative68
| QueryResponseAlternative69
@@ -28567,7 +28746,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative79
| QueryResponseAlternative80
| QueryResponseAlternative81
- | QueryResponseAlternative84
+ | QueryResponseAlternative82
| QueryResponseAlternative85
| QueryResponseAlternative86
| QueryResponseAlternative87
@@ -28591,6 +28770,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative105
| QueryResponseAlternative106
| QueryResponseAlternative107
+ | QueryResponseAlternative108
)
@@ -29522,6 +29702,7 @@ class HogQLAutocomplete(BaseModel):
| SessionAttributionExplorerQuery
| ErrorTrackingQuery
| ErrorTrackingSimilarIssuesQuery
+ | ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
| ErrorTrackingIssueCorrelationQuery
| LogsQuery
@@ -29634,6 +29815,7 @@ class HogQLMetadata(BaseModel):
| SessionAttributionExplorerQuery
| ErrorTrackingQuery
| ErrorTrackingSimilarIssuesQuery
+ | ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
| ErrorTrackingIssueCorrelationQuery
| LogsQuery
@@ -29740,6 +29922,7 @@ class MaxInsightContext(BaseModel):
| SessionAttributionExplorerQuery
| ErrorTrackingQuery
| ErrorTrackingSimilarIssuesQuery
+ | ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
| ErrorTrackingIssueCorrelationQuery
| ExperimentFunnelsQuery
@@ -29876,6 +30059,7 @@ class QueryRequest(BaseModel):
| SessionAttributionExplorerQuery
| ErrorTrackingQuery
| ErrorTrackingSimilarIssuesQuery
+ | ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
| ErrorTrackingIssueCorrelationQuery
| ExperimentFunnelsQuery
@@ -30004,6 +30188,7 @@ class QuerySchemaRoot(
| SessionAttributionExplorerQuery
| ErrorTrackingQuery
| ErrorTrackingSimilarIssuesQuery
+ | ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
| ErrorTrackingIssueCorrelationQuery
| ExperimentFunnelsQuery
@@ -30102,6 +30287,7 @@ class QuerySchemaRoot(
| SessionAttributionExplorerQuery
| ErrorTrackingQuery
| ErrorTrackingSimilarIssuesQuery
+ | ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
| ErrorTrackingIssueCorrelationQuery
| ExperimentFunnelsQuery
@@ -30205,6 +30391,7 @@ class QueryUpgradeRequest(BaseModel):
| SessionAttributionExplorerQuery
| ErrorTrackingQuery
| ErrorTrackingSimilarIssuesQuery
+ | ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
| ErrorTrackingIssueCorrelationQuery
| ExperimentFunnelsQuery
@@ -30308,6 +30495,7 @@ class QueryUpgradeResponse(BaseModel):
| SessionAttributionExplorerQuery
| ErrorTrackingQuery
| ErrorTrackingSimilarIssuesQuery
+ | ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
| ErrorTrackingIssueCorrelationQuery
| ExperimentFunnelsQuery
@@ -30597,6 +30785,7 @@ class VisualizationArtifactContent(BaseModel):
| SessionAttributionExplorerQuery
| ErrorTrackingQuery
| ErrorTrackingSimilarIssuesQuery
+ | ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
| ErrorTrackingIssueCorrelationQuery
| ExperimentFunnelsQuery
diff --git a/posthog/schema_enums.py b/posthog/schema_enums.py
index e20c336c0ef2..58daed858695 100644
--- a/posthog/schema_enums.py
+++ b/posthog/schema_enums.py
@@ -3276,6 +3276,7 @@ class NodeKind(StrEnum):
SESSION_ATTRIBUTION_EXPLORER_QUERY = "SessionAttributionExplorerQuery"
ERROR_TRACKING_QUERY = "ErrorTrackingQuery"
ERROR_TRACKING_SIMILAR_ISSUES_QUERY = "ErrorTrackingSimilarIssuesQuery"
+ ERROR_TRACKING_FINGERPRINT_PROJECTION_QUERY = "ErrorTrackingFingerprintProjectionQuery"
ERROR_TRACKING_BREAKDOWNS_QUERY = "ErrorTrackingBreakdownsQuery"
ERROR_TRACKING_ISSUE_CORRELATION_QUERY = "ErrorTrackingIssueCorrelationQuery"
LOGS_QUERY = "LogsQuery"
diff --git a/products/error_tracking/backend/facade/queries.py b/products/error_tracking/backend/facade/queries.py
index ec4f08c512ac..0ac9189dd10a 100644
--- a/products/error_tracking/backend/facade/queries.py
+++ b/products/error_tracking/backend/facade/queries.py
@@ -17,6 +17,9 @@ from posthog.models.team.team import Team
from products.error_tracking.backend.hogql_queries.error_tracking_breakdowns_query_runner import (
ErrorTrackingBreakdownsQueryRunner,
)
+from products.error_tracking.backend.hogql_queries.error_tracking_fingerprint_projection_query_runner import (
+ ErrorTrackingFingerprintProjectionQueryRunner,
+)
from products.error_tracking.backend.hogql_queries.error_tracking_issue_correlation_query_runner import (
ErrorTrackingIssueCorrelationQueryRunner,
)
@@ -27,6 +30,7 @@ from products.error_tracking.backend.hogql_queries.error_tracking_similar_issues
__all__ = [
"ErrorTrackingBreakdownsQueryRunner",
+ "ErrorTrackingFingerprintProjectionQueryRunner",
"ErrorTrackingIssueCorrelationQueryRunner",
"ErrorTrackingQueryRunner",
"ErrorTrackingSimilarIssuesQueryRunner",
diff --git a/products/error_tracking/backend/hogql_queries/error_tracking_fingerprint_projection_query_runner.py b/products/error_tracking/backend/hogql_queries/error_tracking_fingerprint_projection_query_runner.py
new file mode 100644
index 000000000000..4729afa323a8
--- /dev/null
+++ b/products/error_tracking/backend/hogql_queries/error_tracking_fingerprint_projection_query_runner.py
@@ -0,0 +1,165 @@
+import math
+
+from posthog.schema import (
+ CachedErrorTrackingFingerprintProjectionQueryResponse,
+ EmbeddingModelName,
+ ErrorTrackingFingerprintProjectionPoint,
+ ErrorTrackingFingerprintProjectionQuery,
+ ErrorTrackingFingerprintProjectionQueryResponse,
+)
+
+from posthog.hogql import ast
+from posthog.hogql.parser import parse_select
+from posthog.hogql.query import execute_hogql_query
+
+from posthog.dataclasses import frozen
+from posthog.hogql_queries.query_runner import AnalyticsQueryRunner
+
+from products.error_tracking.backend.hogql_queries.access import ErrorTrackingQueryRunnerAccessMixin
+from products.error_tracking.backend.hogql_queries.error_tracking_query_runner_utils import validate_uuid_param
+from products.error_tracking.backend.models import ErrorTrackingIssueFingerprintV2
+
+MAX_FINGERPRINTS = 250
+
+
+@frozen
+class FingerprintEmbedding:
+ fingerprint: str
+ embedding: list[float]
+
+
+class ErrorTrackingFingerprintProjectionQueryRunner(
+ ErrorTrackingQueryRunnerAccessMixin, AnalyticsQueryRunner[ErrorTrackingFingerprintProjectionQueryResponse]
+):
+ query: ErrorTrackingFingerprintProjectionQuery
+ cached_response: CachedErrorTrackingFingerprintProjectionQueryResponse
+
+ def __post_init__(self) -> None:
+ self.query.issueId = validate_uuid_param(self.query.issueId, "issueId")
+
+ def _calculate(self) -> ErrorTrackingFingerprintProjectionQueryResponse:
+ selected_fingerprints, has_more = self._get_fingerprints()
+ if not selected_fingerprints:
+ return ErrorTrackingFingerprintProjectionQueryResponse(results=[], hasMore=False, modifiers=self.modifiers)
+
+ with self.timings.measure("error_tracking_fingerprint_projection_hogql_execute"):
+ query_result = execute_hogql_query(
+ query=self._build_query(selected_fingerprints),
+ team=self.team,
+ user=self.user,
+ query_type="ErrorTrackingFingerprintProjectionQuery",
+ timings=self.timings,
+ modifiers=self.modifiers,
+ limit_context=self.limit_context,
+ )
+
+ embeddings_by_fingerprint = {item.fingerprint: item for item in _parse_embedding_rows(query_result.results)}
+ ordered_embeddings = [
+ embeddings_by_fingerprint[fingerprint]
+ for fingerprint in selected_fingerprints
+ if fingerprint in embeddings_by_fingerprint
+ ]
+
+ return ErrorTrackingFingerprintProjectionQueryResponse(
+ results=project_fingerprint_embeddings(ordered_embeddings),
+ hasMore=has_more,
+ timings=query_result.timings,
+ hogql=query_result.hogql,
+ modifiers=self.modifiers,
+ )
+
+ def to_query(self) -> ast.SelectQuery | ast.SelectSetQuery:
+ fingerprints, _ = self._get_fingerprints()
+ return self._build_query(fingerprints)
+
+ def _get_fingerprints(self) -> tuple[list[str], bool]:
+ fingerprints = list(
+ ErrorTrackingIssueFingerprintV2.objects.filter(team=self.team, issue_id=self.query.issueId)
+ .order_by("created_at")
+ .values_list("fingerprint", flat=True)[: MAX_FINGERPRINTS + 1]
+ )
+ return fingerprints[:MAX_FINGERPRINTS], len(fingerprints) > MAX_FINGERPRINTS
+
+ def _build_query(self, fingerprints: list[str]) -> ast.SelectQuery:
+ query = parse_select(
+ """
+ SELECT document_id, argMax(embedding, inserted_at) AS embedding
+ FROM document_embeddings
+ WHERE product = 'error_tracking'
+ AND document_type = 'fingerprint'
+ AND model_name = {model_name}
+ AND rendering = {rendering}
+ AND document_id IN {fingerprints}
+ GROUP BY document_id
+ """,
+ placeholders={
+ "fingerprints": ast.Constant(value=fingerprints),
+ "model_name": ast.Constant(value=self.model_name),
+ "rendering": ast.Constant(value=self.rendering),
+ },
+ )
+ if not isinstance(query, ast.SelectQuery):
+ raise ValueError("Fingerprint projection query must be a SELECT query")
+ return query
+
+ @property
+ def model_name(self) -> str:
+ return self.query.modelName or str(EmbeddingModelName.TEXT_EMBEDDING_3_LARGE_3072)
+
+ @property
+ def rendering(self) -> str:
+ return self.query.rendering or "type_message_and_stack"
+
+
+def project_fingerprint_embeddings(
+ fingerprint_embeddings: list[FingerprintEmbedding],
+) -> list[ErrorTrackingFingerprintProjectionPoint]:
+ import numpy as np # noqa: PLC0415 — keeps NumPy off unrelated error tracking query imports
+ from sklearn.manifold import TSNE # noqa: PLC0415 — keeps scikit-learn off unrelated query imports
+
+ if not fingerprint_embeddings:
+ return []
+ if len(fingerprint_embeddings) == 1:
+ item = fingerprint_embeddings[0]
+ return [ErrorTrackingFingerprintProjectionPoint(fingerprint=item.fingerprint, x=0.0, y=0.0)]
+ if len(fingerprint_embeddings) == 2:
+ return [
+ ErrorTrackingFingerprintProjectionPoint(fingerprint=fingerprint_embeddings[0].fingerprint, x=-1.0, y=0.0),
+ ErrorTrackingFingerprintProjectionPoint(fingerprint=fingerprint_embeddings[1].fingerprint, x=1.0, y=0.0),
+ ]
+
+ embedding_matrix = np.asarray([item.embedding for item in fingerprint_embeddings], dtype=np.float64)
+ if np.allclose(embedding_matrix, embedding_matrix[0]):
+ return [
+ ErrorTrackingFingerprintProjectionPoint(fingerprint=item.fingerprint, x=0.0, y=0.0)
+ for item in fingerprint_embeddings
+ ]
+ coordinates = TSNE(
+ n_components=2,
+ perplexity=float(min(30, len(fingerprint_embeddings) - 1)),
+ learning_rate="auto",
+ init="random",
+ metric="cosine",
+ random_state=0,
+ ).fit_transform(embedding_matrix)
+
+ return [
+ ErrorTrackingFingerprintProjectionPoint(
+ fingerprint=item.fingerprint,
+ x=float(coordinates[index, 0]),
+ y=float(coordinates[index, 1]),
+ )
+ for index, item in enumerate(fingerprint_embeddings)
+ ]
+
+
+def _parse_embedding_rows(rows: list[list[object]]) -> list[FingerprintEmbedding]:
+ parsed_rows: list[FingerprintEmbedding] = []
+ for row in rows:
+ if len(row) != 2 or not isinstance(row[0], str) or not isinstance(row[1], list):
+ continue
+ embedding = row[1]
+ if not embedding or not all(isinstance(value, int | float) and math.isfinite(value) for value in embedding):
+ continue
+ parsed_rows.append(FingerprintEmbedding(fingerprint=row[0], embedding=[float(value) for value in embedding]))
+ return parsed_rows
diff --git a/products/error_tracking/backend/hogql_queries/test/test_error_tracking_fingerprint_projection_query_runner.py b/products/error_tracking/backend/hogql_queries/test/test_error_tracking_fingerprint_projection_query_runner.py
new file mode 100644
index 000000000000..8e46a1046a6c
--- /dev/null
+++ b/products/error_tracking/backend/hogql_queries/test/test_error_tracking_fingerprint_projection_query_runner.py
@@ -0,0 +1,85 @@
+import math
+from uuid import uuid4
+
+from posthog.test.base import APIBaseTest
+from unittest.mock import patch
+
+from django.core.cache import cache
+from django.test import SimpleTestCase
+
+from parameterized import parameterized
+from rest_framework import status
+from rest_framework.response import Response
+
+from posthog.models.personal_api_key import PersonalAPIKey
+from posthog.models.utils import generate_random_token_personal, hash_key_value
+from posthog.rate_limit import ErrorTrackingFingerprintProjectionBurstRateThrottle
+
+from products.error_tracking.backend.hogql_queries.error_tracking_fingerprint_projection_query_runner import (
+ FingerprintEmbedding,
+ project_fingerprint_embeddings,
+)
+
+
+class TestFingerprintEmbeddingProjection(SimpleTestCase):
+ @parameterized.expand(
+ [
+ ("single", [[1.0, 0.0, 0.0]]),
+ ("pair", [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]]),
+ ("small_cluster", [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]]),
+ ("identical", [[1.0, 0.0, 0.0], [1.0, 0.0, 0.0], [1.0, 0.0, 0.0]]),
+ ]
+ )
+ def test_projects_small_fingerprint_sets_without_dropping_points(
+ self, _name: str, embeddings: list[list[float]]
+ ) -> None:
+ fingerprint_embeddings = [
+ FingerprintEmbedding(fingerprint=f"fingerprint-{index}", embedding=embedding)
+ for index, embedding in enumerate(embeddings)
+ ]
+
+ points = project_fingerprint_embeddings(fingerprint_embeddings)
+
+ assert [point.fingerprint for point in points] == [item.fingerprint for item in fingerprint_embeddings]
+ assert all(math.isfinite(point.x) and math.isfinite(point.y) for point in points)
+
+
+class TestFingerprintProjectionQueryScope(APIBaseTest):
+ def _query(self, *, headers: dict[str, str] | None = None) -> Response:
+ return self.client.post(
+ f"/api/projects/{self.team.pk}/query/",
+ {"query": {"kind": "ErrorTrackingFingerprintProjectionQuery", "issueId": str(uuid4())}},
+ format="json",
+ headers=headers,
+ )
+
+ @parameterized.expand(
+ [
+ (["query:read"], status.HTTP_403_FORBIDDEN),
+ (["error_tracking:read"], status.HTTP_403_FORBIDDEN),
+ (["query:read", "error_tracking:read"], status.HTTP_200_OK),
+ ]
+ )
+ def test_query_endpoint_requires_query_and_error_tracking_scopes(
+ self, scopes: list[str], expected_status: int
+ ) -> None:
+ value = generate_random_token_personal()
+ PersonalAPIKey.objects.create(
+ label="fingerprint projection query",
+ user=self.user,
+ secure_value=hash_key_value(value),
+ scopes=scopes,
+ )
+
+ response = self._query(headers={"authorization": f"Bearer {value}"})
+
+ assert response.status_code == expected_status, response.data
+
+ @patch("posthog.rate_limit.is_rate_limit_enabled", return_value=True)
+ def test_query_endpoint_throttles_session_requests(self, _enabled: object) -> None:
+ cache.clear()
+ self.addCleanup(cache.clear)
+
+ with patch.object(ErrorTrackingFingerprintProjectionBurstRateThrottle, "rate", "1/minute"):
+ assert self._query().status_code == status.HTTP_200_OK
+ assert self._query().status_code == status.HTTP_429_TOO_MANY_REQUESTS
diff --git a/products/error_tracking/backend/hogql_queries/test/test_error_tracking_query_runner.py b/products/error_tracking/backend/hogql_queries/test/test_error_tracking_query_runner.py
index bd8912f16418..0547e181f888 100644
--- a/products/error_tracking/backend/hogql_queries/test/test_error_tracking_query_runner.py
+++ b/products/error_tracking/backend/hogql_queries/test/test_error_tracking_query_runner.py
@@ -44,6 +44,9 @@ from products.error_tracking.backend.hogql_queries.access import ErrorTrackingQu
from products.error_tracking.backend.hogql_queries.error_tracking_breakdowns_query_runner import (
ErrorTrackingBreakdownsQueryRunner,
)
+from products.error_tracking.backend.hogql_queries.error_tracking_fingerprint_projection_query_runner import (
+ ErrorTrackingFingerprintProjectionQueryRunner,
+)
from products.error_tracking.backend.hogql_queries.error_tracking_issue_correlation_query_runner import (
ErrorTrackingIssueCorrelationQueryRunner,
)
@@ -1051,6 +1054,7 @@ class TestErrorTrackingQueryRunner(ClickhouseTestMixin, NonAtomicBaseTestKeepIde
for runner_class in (
ErrorTrackingQueryRunner,
ErrorTrackingBreakdownsQueryRunner,
+ ErrorTrackingFingerprintProjectionQueryRunner,
ErrorTrackingIssueCorrelationQueryRunner,
ErrorTrackingSimilarIssuesQueryRunner,
):
diff --git a/products/error_tracking/frontend/ErrorTracking.stories.tsx b/products/error_tracking/frontend/ErrorTracking.stories.tsx
index 2688594ebfef..0c368eb8e804 100644
--- a/products/error_tracking/frontend/ErrorTracking.stories.tsx
+++ b/products/error_tracking/frontend/ErrorTracking.stories.tsx
@@ -5,6 +5,7 @@ import { useActions } from 'kea'
import { useLayoutEffect, useState } from 'react'
import type { ErrorEventType } from 'lib/components/Errors/types'
+import { FEATURE_FLAGS } from 'lib/constants'
import { App } from 'scenes/App'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
@@ -22,6 +23,15 @@ import { errorTrackingIssueSceneLogic } from './scenes/ErrorTrackingIssueScene/e
const ISSUE_ID = 'issue-id'
const FINGERPRINT = String(TEST_EVENTS.javascript_resolved.properties.$exception_fingerprint)
+const STORY_FINGERPRINTS = [FINGERPRINT, ...Array.from({ length: 11 }, (_, index) => `story-fingerprint-${index + 1}`)]
+const STORY_FINGERPRINT_PROJECTION_RESPONSE = {
+ results: STORY_FINGERPRINTS.map((fingerprint, index) => ({
+ fingerprint,
+ x: Math.cos(index * 1.7) * (1 + (index % 3) * 0.4),
+ y: Math.sin(index * 1.7) * (1 + (index % 4) * 0.3),
+ })),
+ hasMore: false,
+}
const STORY_STACK_FRAME_RESULTS = stackFrameResults.map((record) => ({
...record,
raw_id: record.raw_id.includes('/') ? record.raw_id : `${record.raw_id}/0`,
@@ -264,13 +274,11 @@ const meta: Meta = {
200,
{
next: null,
- results: [
- {
- fingerprint: FINGERPRINT,
- issue_id: ISSUE_ID,
- created_at: STORY_TIMESTAMPS.at(-1),
- },
- ],
+ results: STORY_FINGERPRINTS.map((fingerprint, index) => ({
+ fingerprint,
+ issue_id: ISSUE_ID,
+ created_at: STORY_TIMESTAMPS[index % STORY_TIMESTAMPS.length],
+ })),
},
],
'/api/environments/:team_id/error_tracking/spike_events': [200, { results: [] }],
@@ -288,6 +296,9 @@ const meta: Meta = {
if (body.query?.kind === NodeKind.ErrorTrackingBreakdownsQuery) {
return [200, STORY_BREAKDOWNS_RESPONSE]
}
+ if (body.query?.kind === NodeKind.ErrorTrackingFingerprintProjectionQuery) {
+ return [200, STORY_FINGERPRINT_PROJECTION_RESPONSE]
+ }
if (body.query?.kind === NodeKind.EventsQuery) {
return body.query.select?.includes('properties.$exception_list')
? [200, STORY_TIMELINE_RESPONSE]
@@ -441,6 +452,15 @@ export const GroupPageCappedBreakdownPanel: Story = {
),
}
+export const GroupPageFingerprintMap: Story = {
+ name: 'Issue scene with fingerprint map',
+ parameters: {
+ pageUrl: urls.errorTrackingIssue(ISSUE_ID),
+ featureFlags: [FEATURE_FLAGS.ERROR_TRACKING_FINGERPRINT_MAP],
+ },
+ render: () => <IssueScenePreviewStory activePreview="fingerprints" />,
+}
+
export const GroupPageBreakdownLoading: Story = {
name: 'Issue scene with loading breakdown panel',
parameters: {
diff --git a/products/error_tracking/frontend/components/FingerprintPreview/FingerprintPreview.tsx b/products/error_tracking/frontend/components/FingerprintPreview/FingerprintPreview.tsx
new file mode 100644
index 000000000000..e2e51b0fd233
--- /dev/null
+++ b/products/error_tracking/frontend/components/FingerprintPreview/FingerprintPreview.tsx
@@ -0,0 +1,87 @@
+import { useActions, useValues } from 'kea'
+
+import { ScatterChart, TooltipSurface } from '@posthog/quill-charts'
+
+import { useChartTheme } from 'lib/charts/hooks'
+import { Button, Spinner, Text } from 'lib/ui/quill'
+
+import { PropertyOperator } from '~/types'
+
+import { IssueFilterPreviewHeader } from '../IssueFilterPreview/IssueFilterPreviewHeader'
+import { issueFilterPreviewLogic } from '../IssueFilterPreview/issueFilterPreviewLogic'
+import { fingerprintProjectionLogic } from './fingerprintProjectionLogic'
+
+export function FingerprintPreview({ issueId }: { issueId: string }): JSX.Element {
+ const { fingerprintDomains, fingerprintSeries, projection, projectionError, projectionLoading } = useValues(
+ fingerprintProjectionLogic({ issueId })
+ )
+ const { loadProjection } = useActions(fingerprintProjectionLogic({ issueId }))
+ const { applyPropertyFilter } = useActions(issueFilterPreviewLogic)
+ const theme = useChartTheme()
+
+ return (
+ <div className="flex flex-col">
+ <IssueFilterPreviewHeader preview="fingerprints" title="Fingerprints" />
+ <div className="flex h-64 min-h-0 flex-col px-3 pb-3 pt-2">
+ {projectionLoading ? (
+ <div className="flex min-h-0 flex-1 items-center justify-center">
+ <Spinner />
+ </div>
+ ) : projectionError ? (
+ <div className="flex min-h-0 flex-1 flex-col items-center justify-center gap-2 text-center">
+ <Text variant="muted">Couldn't load the fingerprint map.</Text>
+ <Button
+ variant="default"
+ size="sm"
+ loading={projectionLoading}
+ onClick={() => loadProjection()}
+ >
+ Retry
+ </Button>
+ </div>
+ ) : projection.results.length === 0 ? (
+ <div className="flex min-h-0 flex-1 items-center justify-center text-center">
+ <Text variant="muted">No fingerprint embeddings available yet.</Text>
+ </div>
+ ) : (
+ <>
+ <div className="min-h-0 flex-1">
+ <ScatterChart
+ series={fingerprintSeries}
+ theme={theme}
+ config={{
+ xAxis: { hide: true, domain: fingerprintDomains?.x },
+ yAxis: { hide: true, domain: fingerprintDomains?.y },
+ margins: { top: 8, right: 8, bottom: 8, left: 8 },
+ pointRadius: 5,
+ tooltip: { placement: 'cursor' },
+ }}
+ className="h-full"
+ dataAttr="error-tracking-fingerprint-scatter"
+ tooltip={({ point }) => (
+ <TooltipSurface data-attr="error-tracking-fingerprint-tooltip">
+ {point.label}
+ </TooltipSurface>
+ )}
+ onPointClick={(point) => {
+ if (point.meta?.fingerprint) {
+ applyPropertyFilter(
+ '$exception_fingerprint',
+ point.meta.fingerprint,
+ PropertyOperator.Exact,
+ true
+ )
+ }
+ }}
+ />
+ </div>
+ <Text size="xs" variant="muted" className="pt-1 text-center">
+ {projection.hasMore ? 'This map uses a sample of fingerprints. ' : ''}
+ Nearby points are similar. Select one to filter exceptions.
+ </Text>
+ </>
+ )}
+ </div>
+ </div>
+ )
+}
diff --git a/products/error_tracking/frontend/components/FingerprintPreview/fingerprintProjectionLogic.ts b/products/error_tracking/frontend/components/FingerprintPreview/fingerprintProjectionLogic.ts
new file mode 100644
index 000000000000..b43ee0a8dcea
--- /dev/null
+++ b/products/error_tracking/frontend/components/FingerprintPreview/fingerprintProjectionLogic.ts
@@ -0,0 +1,146 @@
+import { MakeLogicType, events, kea, key, path, props, reducers, selectors } from 'kea'
+import { loaders } from 'kea-loaders'
+
+import type { ScatterSeries } from '@posthog/quill-charts'
+
+import api from 'lib/api'
+import { midEllipsis } from 'lib/utils/strings'
+
+import type { ErrorTrackingFingerprintProjectionQueryResponse } from '~/queries/schema/schema-general'
+
+import { errorTrackingFingerprintProjectionQuery } from '../../queries'
+
+export interface FingerprintProjectionLogicProps {
+ issueId: string
+}
+
+export interface FingerprintPointMeta {
+ fingerprint: string
+}
+
+export interface FingerprintProjectionDomains {
+ x: readonly [number, number]
+ y: readonly [number, number]
+}
+
+function centeredDomain(values: number[]): readonly [number, number] {
+ const center = values.reduce((sum, value) => sum + value, 0) / values.length
+ const radius = Math.max(...values.map((value) => Math.abs(value - center)), 1)
+ const paddedRadius = radius * 1.1
+ return [center - paddedRadius, center + paddedRadius]
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface fingerprintProjectionLogicValues {
+ fingerprintDomains: FingerprintProjectionDomains | null
+ fingerprintSeries: ScatterSeries<FingerprintPointMeta>[]
+ projection: ErrorTrackingFingerprintProjectionQueryResponse
+ projectionError: string | null
+ projectionLoading: boolean
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface fingerprintProjectionLogicActions {
+ loadProjection: () => any
+ loadProjectionFailure: (
+ error: string,
+ errorObject?: any
+ ) => {
+ error: string
+ errorObject?: any
+ }
+ loadProjectionSuccess: (
+ projection: ErrorTrackingFingerprintProjectionQueryResponse,
+ payload?: any
+ ) => {
+ projection: ErrorTrackingFingerprintProjectionQueryResponse
+ payload?: any
+ }
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface fingerprintProjectionLogicMeta {
+ key: string
+ __keaTypeGenInternalSelectorTypes: {
+ fingerprintDomains: (
+ projection: ErrorTrackingFingerprintProjectionQueryResponse
+ ) => FingerprintProjectionDomains | null
+ fingerprintSeries: (
+ projection: ErrorTrackingFingerprintProjectionQueryResponse
+ ) => ScatterSeries<FingerprintPointMeta>[]
+ }
+}
+
+export type fingerprintProjectionLogicType = MakeLogicType<
+ fingerprintProjectionLogicValues,
+ fingerprintProjectionLogicActions,
+ FingerprintProjectionLogicProps,
+ fingerprintProjectionLogicMeta
+>
+
+export const fingerprintProjectionLogic = kea<fingerprintProjectionLogicType>([
+ path((key) => [
+ 'products',
+ 'error_tracking',
+ 'components',
+ 'FingerprintPreview',
+ 'fingerprintProjectionLogic',
+ key,
+ ]),
+ props({} as FingerprintProjectionLogicProps),
+ key(({ issueId }) => issueId),
+ loaders(({ props }) => ({
+ projection: [
+ { results: [] } as ErrorTrackingFingerprintProjectionQueryResponse,
+ {
+ loadProjection: async () =>
+ (await api.query(
+ errorTrackingFingerprintProjectionQuery(props.issueId)
+ )) as ErrorTrackingFingerprintProjectionQueryResponse,
+ },
+ ],
+ })),
+ reducers({
+ projectionError: [
+ null as string | null,
+ {
+ loadProjection: () => null,
+ loadProjectionSuccess: () => null,
+ loadProjectionFailure: (_, { error }) => error,
+ },
+ ],
+ }),
+ selectors({
+ fingerprintDomains: [
+ (selectors) => [selectors.projection],
+ (projection: ErrorTrackingFingerprintProjectionQueryResponse): FingerprintProjectionDomains | null => {
+ if (projection.results.length === 0) {
+ return null
+ }
+
+ return {
+ x: centeredDomain(projection.results.map((point) => point.x)),
+ y: centeredDomain(projection.results.map((point) => point.y)),
+ }
+ },
+ ],
+ fingerprintSeries: [
+ (selectors) => [selectors.projection],
+ (projection: ErrorTrackingFingerprintProjectionQueryResponse): ScatterSeries<FingerprintPointMeta>[] => [
+ {
+ key: 'fingerprints',
+ label: 'Fingerprints',
+ points: projection.results.map((point) => ({
+ x: point.x,
+ y: point.y,
+ label: midEllipsis(point.fingerprint, 24),
+ meta: { fingerprint: point.fingerprint },
+ })),
+ },
+ ],
+ ],
+ }),
+ events(({ actions }) => ({
+ afterMount: () => actions.loadProjection(),
+ })),
+])
diff --git a/products/error_tracking/frontend/components/IssueFilterPreview/IssueFilterPreviewPanel.tsx b/products/error_tracking/frontend/components/IssueFilterPreview/IssueFilterPreviewPanel.tsx
index 37dd20de8f33..c1f77cee6753 100644
--- a/products/error_tracking/frontend/components/IssueFilterPreview/IssueFilterPreviewPanel.tsx
+++ b/products/error_tracking/frontend/components/IssueFilterPreview/IssueFilterPreviewPanel.tsx
@@ -3,9 +3,13 @@ import type { PropsWithChildren, UIEvent } from 'react'
import { IconClock, IconListTree } from '@posthog/icons'
+import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
+import { IconFingerprint } from 'lib/lemon-ui/icons'
import { Tabs, TabsContent, TabsList, TabsTrigger, Tooltip, TooltipContent, TooltipTrigger } from 'lib/ui/quill'
+import { errorTrackingIssueSceneLogic } from '../../scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic'
import { MiniBreakdowns } from '../Breakdowns/MiniBreakdowns'
+import { FingerprintPreview } from '../FingerprintPreview/FingerprintPreview'
import { issueFilterPreviewLogic } from './issueFilterPreviewLogic'
import { TimeFilterPreview } from './TimeFilterPreview'
@@ -20,7 +24,10 @@ export function IssueFilterPreviewPanel({
onScrollNearEnd,
}: PropsWithChildren<IssueFilterPreviewPanelProps>): JSX.Element {
const { activePreview } = useValues(issueFilterPreviewLogic)
+ const { issueId } = useValues(errorTrackingIssueSceneLogic)
const { setActivePreview } = useActions(issueFilterPreviewLogic)
+ const hasFingerprintMap = useFeatureFlag('ERROR_TRACKING_FINGERPRINT_MAP')
+ const selectedPreview = !hasFingerprintMap && activePreview === 'fingerprints' ? 'time' : activePreview
const handleScroll = (event: UIEvent<HTMLDivElement>): void => {
const { clientHeight, scrollHeight, scrollTop } = event.currentTarget
@@ -35,9 +42,13 @@ export function IssueFilterPreviewPanel({
<div className="max-h-1/2 shrink-0 overflow-y-auto overscroll-y-none">
<Tabs
orientation="vertical"
- value={activePreview}
+ value={selectedPreview}
onValueChange={(preview) => {
- if (preview === 'time' || preview === 'properties') {
+ if (
+ preview === 'time' ||
+ preview === 'properties' ||
+ (hasFingerprintMap && preview === 'fingerprints')
+ ) {
setActivePreview(preview)
}
}}
@@ -77,6 +88,22 @@ export function IssueFilterPreviewPanel({
</TooltipTrigger>
<TooltipContent side="right">Properties</TooltipContent>
</Tooltip>
+ {hasFingerprintMap && (
+ <Tooltip>
+ <TooltipTrigger
+ render={
+ <TabsTrigger
+ value="fingerprints"
+ aria-label="Fingerprints"
+ className="!size-8 !flex-none !justify-center !p-0"
+ />
+ }
+ >
+ <IconFingerprint />
+ </TooltipTrigger>
+ <TooltipContent side="right">Fingerprints</TooltipContent>
+ </Tooltip>
+ )}
</TabsList>
<TabsContent value="time" className="min-w-0 !flex-none flex-1">
<TimeFilterPreview />
@@ -84,6 +111,11 @@ export function IssueFilterPreviewPanel({
<TabsContent value="properties" className="min-w-0 !flex-none flex-1">
<MiniBreakdowns />
</TabsContent>
+ {hasFingerprintMap && (
+ <TabsContent value="fingerprints" className="min-w-0 !flex-none flex-1">
+ <FingerprintPreview issueId={issueId} />
+ </TabsContent>
+ )}
</Tabs>
</div>
{children}
diff --git a/products/error_tracking/frontend/components/IssueFilterPreview/issueFilterPreviewLogic.test.ts b/products/error_tracking/frontend/components/IssueFilterPreview/issueFilterPreviewLogic.test.ts
index 4af33b3a4a8b..8e7973acbf84 100644
--- a/products/error_tracking/frontend/components/IssueFilterPreview/issueFilterPreviewLogic.test.ts
+++ b/products/error_tracking/frontend/components/IssueFilterPreview/issueFilterPreviewLogic.test.ts
@@ -2,7 +2,7 @@ import { quickFiltersSectionLogic } from 'lib/components/QuickFilters'
import { QuickFilterContext } from '~/queries/schema/schema-general'
import { initKeaTests } from '~/test/init'
-import { PropertyOperator } from '~/types'
+import { PropertyOperator, UniversalFiltersGroup } from '~/types'
import {
DEFAULT_DATE_RANGE,
@@ -45,6 +45,34 @@ describe('issueFilterPreviewLogic', () => {
preview.actions.undoActivePreview()
expect(filters.values.filterGroup).toEqual(DEFAULT_FILTER_GROUP)
+ preview.actions.setActivePreview('fingerprints')
+ preview.actions.applyPropertyFilter('$exception_fingerprint', 'fingerprint-1', PropertyOperator.Exact, true)
+ preview.actions.applyPropertyFilter('$exception_fingerprint', 'fingerprint-2', PropertyOperator.Exact, true)
+ expect(filters.values.filterGroup).toEqual({
+ type: 'AND',
+ values: [
+ {
+ type: 'AND',
+ values: [
+ {
+ key: '$exception_fingerprint',
+ type: 'event',
+ operator: PropertyOperator.Exact,
+ value: ['fingerprint-2'],
+ },
+ ],
+ },
+ ],
+ })
+ expect(preview.values.canUndoActivePreview).toBe(true)
+ preview.actions.undoActivePreview()
+ expect((filters.values.filterGroup.values[0] as UniversalFiltersGroup).values[0]).toMatchObject({
+ key: '$exception_fingerprint',
+ value: ['fingerprint-1'],
+ })
+ preview.actions.undoActivePreview()
+ expect(filters.values.filterGroup).toEqual(DEFAULT_FILTER_GROUP)
+
preview.unmount()
filters.unmount()
})
diff --git a/products/error_tracking/frontend/components/IssueFilterPreview/issueFilterPreviewLogic.ts b/products/error_tracking/frontend/components/IssueFilterPreview/issueFilterPreviewLogic.ts
index 387ad0e41b85..926442c09538 100644
--- a/products/error_tracking/frontend/components/IssueFilterPreview/issueFilterPreviewLogic.ts
+++ b/products/error_tracking/frontend/components/IssueFilterPreview/issueFilterPreviewLogic.ts
@@ -13,7 +13,7 @@ import {
issueFiltersLogic,
} from '../IssueFilters/issueFiltersLogic'
-export type IssueFilterPreview = 'time' | 'properties'
+export type IssueFilterPreview = 'time' | 'properties' | 'fingerprints'
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface issueFilterPreviewLogicValues {
@@ -35,11 +35,13 @@ export interface issueFilterPreviewLogicActions {
key: string,
value: boolean | number | string | null,
operator?: PropertyOperator | undefined,
- openConfig?: boolean | undefined
+ openConfig?: boolean | undefined,
+ replaceExisting?: boolean | undefined
) => {
key: string
openConfig: boolean
operator: PropertyOperator
+ replaceExisting: boolean
value: boolean | number | string | null
} // issueFiltersLogic
setDateRange: (
@@ -71,10 +73,12 @@ export interface issueFilterPreviewLogicActions {
applyPropertyFilter: (
key: string,
value: boolean | number | string | null,
- operator?: PropertyOperator
+ operator?: PropertyOperator,
+ replaceExisting?: boolean
) => {
key: string
operator: PropertyOperator
+ replaceExisting: boolean
value: boolean | number | string | null
}
clearNonDateFilters: () => {
@@ -152,8 +156,9 @@ export const issueFilterPreviewLogic = kea<issueFilterPreviewLogicType>([
applyPropertyFilter: (
key: string,
value: string | number | boolean | null,
- operator: PropertyOperator = PropertyOperator.Exact
- ) => ({ key, value, operator }),
+ operator: PropertyOperator = PropertyOperator.Exact,
+ replaceExisting: boolean = false
+ ) => ({ key, value, operator, replaceExisting }),
undoActivePreview: true,
clearNonDateFilters: true,
popDateRangeHistory: true,
@@ -223,9 +228,9 @@ export const issueFilterPreviewLogic = kea<issueFilterPreviewLogicType>([
actions.pushDateRangeHistory(values.dateRange)
actions.setDateRange(dateRange, true)
},
- applyPropertyFilter: ({ key, value, operator }) => {
+ applyPropertyFilter: ({ key, value, operator, replaceExisting }) => {
const previousFilterGroup = values.filterGroup
- actions.addPropertyFilter(key, value, operator, false)
+ actions.addPropertyFilter(key, value, operator, false, replaceExisting)
if (values.filterGroup !== previousFilterGroup) {
actions.pushFilterGroupHistory(previousFilterGroup)
}
@@ -236,7 +241,7 @@ export const issueFilterPreviewLogic = kea<issueFilterPreviewLogicType>([
if (values.activePreview === 'time' && previousDateRange) {
actions.setDateRange(previousDateRange, true)
actions.popDateRangeHistory()
- } else if (values.activePreview === 'properties' && previousFilterGroup) {
+ } else if (values.activePreview !== 'time' && previousFilterGroup) {
actions.setFilterGroup(previousFilterGroup, 1)
actions.popFilterGroupHistory()
}
diff --git a/products/error_tracking/frontend/components/IssueFilters/issueFiltersLogic.ts b/products/error_tracking/frontend/components/IssueFilters/issueFiltersLogic.ts
index e88d5e7757f7..ca58e904a24a 100644
--- a/products/error_tracking/frontend/components/IssueFilters/issueFiltersLogic.ts
+++ b/products/error_tracking/frontend/components/IssueFilters/issueFiltersLogic.ts
@@ -48,11 +48,13 @@ export interface issueFiltersLogicActions {
key: string,
value: boolean | number | string | null,
operator?: PropertyOperator,
- openConfig?: boolean
+ openConfig?: boolean,
+ replaceExisting?: boolean
) => {
key: string
openConfig: boolean
operator: PropertyOperator
+ replaceExisting: boolean
value: boolean | number | string | null
}
setDateRange: (
@@ -118,8 +120,9 @@ export const issueFiltersLogic = kea<issueFiltersLogicType>([
key: string,
value: string | number | boolean | null,
operator: PropertyOperator = PropertyOperator.Exact,
- openConfig: boolean = true
- ) => ({ key, value, operator, openConfig }),
+ openConfig: boolean = true,
+ replaceExisting: boolean = false
+ ) => ({ key, value, operator, openConfig, replaceExisting }),
setDateRange: (dateRange: DateRange, fromPreview: boolean = false) => ({ dateRange, fromPreview }),
setSearchInput: (searchInput: string) => ({ searchInput }),
setSearchQuery: (searchQuery: string) => ({ searchQuery }),
@@ -139,7 +142,7 @@ export const issueFiltersLogic = kea<issueFiltersLogicType>([
filterGroup: [
DEFAULT_FILTER_GROUP as UniversalFiltersGroup,
{
- addPropertyFilter: (filterGroup, { key, value, operator }) => {
+ addPropertyFilter: (filterGroup, { key, value, operator, replaceExisting }) => {
const firstValue = filterGroup.values[0]
const firstGroup: UniversalFiltersGroup = isUniversalGroupFilterLike(firstValue)
? firstValue
@@ -153,16 +156,28 @@ export const issueFiltersLogic = kea<issueFiltersLogicType>([
operator,
...(value === null ? {} : { value: [value] }),
}
- if (firstGroup.values.some((existingFilter) => equal(existingFilter, newFilter))) {
+ if (
+ !replaceExisting &&
+ firstGroup.values.some((existingFilter) => equal(existingFilter, newFilter))
+ ) {
+ return filterGroup
+ }
+ const retainedFilters = replaceExisting
+ ? firstGroup.values.filter(
+ (existingFilter) =>
+ isUniversalGroupFilterLike(existingFilter) ||
+ existingFilter.type !== PropertyFilterType.Event ||
+ existingFilter.key !== key
+ )
+ : firstGroup.values
+ const nextFilters = [...retainedFilters, newFilter]
+ if (equal(firstGroup.values, nextFilters)) {
return filterGroup
}
return {
type: FilterLogicalOperator.And,
- values: [
- { ...firstGroup, values: [...firstGroup.values, newFilter] },
- ...filterGroup.values.slice(1),
- ],
+ values: [{ ...firstGroup, values: nextFilters }, ...filterGroup.values.slice(1)],
}
},
setFilterGroup: (_, { filterGroup }) =>
diff --git a/products/error_tracking/frontend/queries.ts b/products/error_tracking/frontend/queries.ts
index 1de2a46a1cd5..4d1a575ad81e 100644
--- a/products/error_tracking/frontend/queries.ts
+++ b/products/error_tracking/frontend/queries.ts
@@ -3,6 +3,7 @@ import {
DateRange,
DocumentSimilarityQuery,
ErrorTrackingBreakdownsQuery,
+ ErrorTrackingFingerprintProjectionQuery,
ErrorTrackingIssueCorrelationQuery,
ErrorTrackingPendingFingerprintIssueStateUpdate,
ErrorTrackingQuery,
@@ -183,6 +184,11 @@ export const errorTrackingIssueEventsQuery = ({
return eventsQuery
}
+export const errorTrackingFingerprintProjectionQuery = (issueId: string): ErrorTrackingFingerprintProjectionQuery => ({
+ kind: NodeKind.ErrorTrackingFingerprintProjectionQuery,
+ issueId,
+})
+
export const errorTrackingIssueCorrelationQuery = ({
events,
}: {
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index a1012b9e6d80..e83c32e69c36 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -29807,6 +29807,48 @@ export namespace Schemas {
readonly created_at: string;
}
+ export interface ErrorTrackingFingerprintProjectionPoint {
+ fingerprint: string;
+ x: number;
+ y: number;
+ }
+
+ export interface ErrorTrackingFingerprintProjectionQueryResponse {
+ /** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
+ error?: string | null;
+ hasMore?: boolean | null;
+ /** Generated HogQL query. */
+ hogql?: string | null;
+ /** Modifiers used when performing the query */
+ modifiers?: HogQLQueryModifiers | null;
+ /** Query status indicates whether next to the provided data, a query is still running. */
+ query_status?: QueryStatus | null;
+ /** The resolved previous/comparison period date range, when comparing against another period */
+ resolved_compare_date_range?: ResolvedDateRangeResponse | null;
+ /** The date range used for the query */
+ resolved_date_range?: ResolvedDateRangeResponse | null;
+ results: ErrorTrackingFingerprintProjectionPoint[];
+ /** Measured timings for different parts of the query generation process */
+ timings?: QueryTiming[] | null;
+ /** Connector-synced data warehouse sources referenced by this query, if any. */
+ used_data_warehouse_sources?: DataWarehouseSourceUsage[] | null;
+ /** Warnings about data warehouse sources referenced by the query whose latest sync failed, is paused, hit a billing limit, or is otherwise stale. Results may not reflect current source data. Accumulated across every HogQL execution that contributes to this response — so insights backed by warehouse tables (Trends, Funnels, etc.) receive the same warnings as raw HogQL queries. Also carries access control warnings when a system-table query filters out objects the user can't access. */
+ warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
+ }
+
+ export interface ErrorTrackingFingerprintProjectionQuery {
+ issueId: string;
+ kind?: 'ErrorTrackingFingerprintProjectionQuery';
+ modelName?: EmbeddingModelName | null;
+ /** Modifiers used when performing the query */
+ modifiers?: HogQLQueryModifiers | null;
+ rendering?: string | null;
+ response?: ErrorTrackingFingerprintProjectionQueryResponse | null;
+ tags?: QueryLogTags | null;
+ /** version of the node, used for schema migrations */
+ version?: number | null;
+ }
+
/**
* @nullable
*/
@@ -42802,7 +42844,7 @@ export namespace Schemas {
query: string;
response?: HogQLMetadataResponse | null;
/** Query within which "expr" and "template" are validated. Defaults to "select * from events" */
- sourceQuery?: EventsNode | ActionsNode | PersonsNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingIssueCorrelationQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | CalendarHeatmapQuery | RecordingsQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | null;
+ sourceQuery?: EventsNode | ActionsNode | PersonsNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingIssueCorrelationQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | CalendarHeatmapQuery | RecordingsQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | null;
tags?: QueryLogTags | null;
/** Variables to be subsituted into the query */
variables?: HogQLMetadataVariables;
@@ -42828,7 +42870,7 @@ export namespace Schemas {
query: string;
response?: HogQLAutocompleteResponse | null;
/** Query in whose context to validate. */
- sourceQuery?: EventsNode | ActionsNode | PersonsNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingIssueCorrelationQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | CalendarHeatmapQuery | RecordingsQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | null;
+ sourceQuery?: EventsNode | ActionsNode | PersonsNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingIssueCorrelationQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | CalendarHeatmapQuery | RecordingsQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | null;
/** Start position of the editor word */
startPosition: number;
tags?: QueryLogTags | null;
@@ -67161,7 +67203,7 @@ export namespace Schemas {
* ```
*
* For more details on HogQL queries, see the [PostHog HogQL documentation](/docs/hogql#api-access). */
- query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingIssueCorrelationQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | DataVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | FunnelCorrelationQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | PropertyValuesQuery;
+ query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingIssueCorrelationQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | DataVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | FunnelCorrelationQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | PropertyValuesQuery;
/** Whether results should be calculated sync or async, and how much to rely on the cache:
* - `'blocking'` - calculate synchronously (returning only when the query is done), UNLESS there are very fresh results in the cache
* - `'async'` - kick off background calculation (returning immediately with a query status), UNLESS there are very fresh results in the cache
@@ -67461,11 +67503,10 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative14Results = {[key: string]: Results};
-
export interface QueryResponseAlternative14 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
+ hasMore?: boolean | null;
/** Generated HogQL query. */
hogql?: string | null;
/** Modifiers used when performing the query */
@@ -67476,7 +67517,7 @@ export namespace Schemas {
resolved_compare_date_range?: ResolvedDateRangeResponse | null;
/** The date range used for the query */
resolved_date_range?: ResolvedDateRangeResponse | null;
- results: QueryResponseAlternative14Results;
+ results: ErrorTrackingFingerprintProjectionPoint[];
/** Measured timings for different parts of the query generation process */
timings?: QueryTiming[] | null;
/** Connector-synced data warehouse sources referenced by this query, if any. */
@@ -67485,7 +67526,31 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
+ export type QueryResponseAlternative15Results = {[key: string]: Results};
+
export interface QueryResponseAlternative15 {
+ /** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
+ error?: string | null;
+ /** Generated HogQL query. */
+ hogql?: string | null;
+ /** Modifiers used when performing the query */
+ modifiers?: HogQLQueryModifiers | null;
+ /** Query status indicates whether next to the provided data, a query is still running. */
+ query_status?: QueryStatus | null;
+ /** The resolved previous/comparison period date range, when comparing against another period */
+ resolved_compare_date_range?: ResolvedDateRangeResponse | null;
+ /** The date range used for the query */
+ resolved_date_range?: ResolvedDateRangeResponse | null;
+ results: QueryResponseAlternative15Results;
+ /** Measured timings for different parts of the query generation process */
+ timings?: QueryTiming[] | null;
+ /** Connector-synced data warehouse sources referenced by this query, if any. */
+ used_data_warehouse_sources?: DataWarehouseSourceUsage[] | null;
+ /** Warnings about data warehouse sources referenced by the query whose latest sync failed, is paused, hit a billing limit, or is otherwise stale. Results may not reflect current source data. Accumulated across every HogQL execution that contributes to this response — so insights backed by warehouse tables (Trends, Funnels, etc.) receive the same warnings as raw HogQL queries. Also carries access control warnings when a system-table query filters out objects the user can't access. */
+ warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
+ }
+
+ export interface QueryResponseAlternative16 {
columns?: string[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -67511,19 +67576,19 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative16CredibleIntervals = {[key: string]: number[]};
+ export type QueryResponseAlternative17CredibleIntervals = {[key: string]: number[]};
- export type QueryResponseAlternative16InsightItemItem = { [key: string]: unknown };
+ export type QueryResponseAlternative17InsightItemItem = { [key: string]: unknown };
- export type QueryResponseAlternative16Probability = {[key: string]: number};
+ export type QueryResponseAlternative17Probability = {[key: string]: number};
- export interface QueryResponseAlternative16 {
- credible_intervals: QueryResponseAlternative16CredibleIntervals;
+ export interface QueryResponseAlternative17 {
+ credible_intervals: QueryResponseAlternative17CredibleIntervals;
expected_loss: number;
funnels_query?: FunnelsQuery | null;
- insight: QueryResponseAlternative16InsightItemItem[][];
+ insight: QueryResponseAlternative17InsightItemItem[][];
kind?: 'ExperimentFunnelsQuery';
- probability: QueryResponseAlternative16Probability;
+ probability: QueryResponseAlternative17Probability;
significance_code: ExperimentSignificanceCode;
significant: boolean;
stats_version?: number | null;
@@ -67532,20 +67597,20 @@ export namespace Schemas {
warnings?: DataWarehouseSyncWarning[] | null;
}
- export type QueryResponseAlternative17CredibleIntervals = {[key: string]: number[]};
+ export type QueryResponseAlternative18CredibleIntervals = {[key: string]: number[]};
- export type QueryResponseAlternative17InsightItem = { [key: string]: unknown };
+ export type QueryResponseAlternative18InsightItem = { [key: string]: unknown };
- export type QueryResponseAlternative17Probability = {[key: string]: number};
+ export type QueryResponseAlternative18Probability = {[key: string]: number};
- export interface QueryResponseAlternative17 {
+ export interface QueryResponseAlternative18 {
count_query?: TrendsQuery | null;
- credible_intervals: QueryResponseAlternative17CredibleIntervals;
+ credible_intervals: QueryResponseAlternative18CredibleIntervals;
exposure_query?: TrendsQuery | null;
- insight: QueryResponseAlternative17InsightItem[];
+ insight: QueryResponseAlternative18InsightItem[];
kind?: 'ExperimentTrendsQuery';
p_value: number;
- probability: QueryResponseAlternative17Probability;
+ probability: QueryResponseAlternative18Probability;
significance_code: ExperimentSignificanceCode;
significant: boolean;
stats_version?: number | null;
@@ -67554,26 +67619,26 @@ export namespace Schemas {
warnings?: DataWarehouseSyncWarning[] | null;
}
- export type QueryResponseAlternative18CredibleIntervals = {[key: string]: number[]} | null;
+ export type QueryResponseAlternative19CredibleIntervals = {[key: string]: number[]} | null;
- export type QueryResponseAlternative18Insight = { [key: string]: unknown }[] | null;
+ export type QueryResponseAlternative19Insight = { [key: string]: unknown }[] | null;
- export type QueryResponseAlternative18Probability = {[key: string]: number} | null;
+ export type QueryResponseAlternative19Probability = {[key: string]: number} | null;
- export interface QueryResponseAlternative18 {
+ export interface QueryResponseAlternative19 {
baseline?: ExperimentStatsBaseValidated | null;
/** Results grouped by breakdown value. When present, baseline and variant_results contain aggregated data. */
breakdown_results?: ExperimentBreakdownResult[] | null;
clickhouse_sql?: string | null;
- credible_intervals?: QueryResponseAlternative18CredibleIntervals;
+ credible_intervals?: QueryResponseAlternative19CredibleIntervals;
hogql?: string | null;
- insight?: QueryResponseAlternative18Insight;
+ insight?: QueryResponseAlternative19Insight;
/** Whether exposures were served from the precomputation system */
is_precomputed?: boolean | null;
kind?: 'ExperimentQuery';
metric?: ExperimentMeanMetric | ExperimentFunnelMetric | ExperimentRatioMetric | ExperimentRetentionMetric | null;
p_value?: number | null;
- probability?: QueryResponseAlternative18Probability;
+ probability?: QueryResponseAlternative19Probability;
significance_code?: ExperimentSignificanceCode | null;
significant?: boolean | null;
stats_version?: number | null;
@@ -67583,20 +67648,20 @@ export namespace Schemas {
warnings?: DataWarehouseSyncWarning[] | null;
}
- export type QueryResponseAlternative19TotalExposures = {[key: string]: number};
+ export type QueryResponseAlternative20TotalExposures = {[key: string]: number};
- export interface QueryResponseAlternative19 {
+ export interface QueryResponseAlternative20 {
bias_risk?: BiasRisk | null;
date_range: DateRange;
kind?: 'ExperimentExposureQuery';
sample_ratio_mismatch?: SampleRatioMismatch | null;
timeseries: ExperimentExposureTimeSeries[];
- total_exposures: QueryResponseAlternative19TotalExposures;
+ total_exposures: QueryResponseAlternative20TotalExposures;
/** Data warehouse sync warnings — see AnalyticsQueryResponseBase.warnings for semantics. */
warnings?: DataWarehouseSyncWarning[] | null;
}
- export interface QueryResponseAlternative20 {
+ export interface QueryResponseAlternative21 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore?: boolean | null;
@@ -67621,7 +67686,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative21 {
+ export interface QueryResponseAlternative22 {
dateFrom?: string | null;
dateTo?: string | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -67647,7 +67712,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative22 {
+ export interface QueryResponseAlternative23 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -67678,7 +67743,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative23 {
+ export interface QueryResponseAlternative24 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -67706,7 +67771,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative24 {
+ export interface QueryResponseAlternative25 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -67733,7 +67798,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative25 {
+ export interface QueryResponseAlternative26 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -67762,7 +67827,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative26 {
+ export interface QueryResponseAlternative27 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -67789,7 +67854,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative27 {
+ export interface QueryResponseAlternative28 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore?: boolean | null;
@@ -67814,15 +67879,15 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative28Data = { [key: string]: unknown };
+ export type QueryResponseAlternative29Data = { [key: string]: unknown };
- export interface QueryResponseAlternative28 {
- data: QueryResponseAlternative28Data;
+ export interface QueryResponseAlternative29 {
+ data: QueryResponseAlternative29Data;
error?: ExternalQueryError | null;
status: ExternalQueryStatus;
}
- export interface QueryResponseAlternative29 {
+ export interface QueryResponseAlternative30 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -67846,7 +67911,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative30 {
+ export interface QueryResponseAlternative31 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -67874,9 +67939,9 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative31Results = {[key: string]: MarketingAnalyticsItem};
+ export type QueryResponseAlternative32Results = {[key: string]: MarketingAnalyticsItem};
- export interface QueryResponseAlternative31 {
+ export interface QueryResponseAlternative32 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -67889,7 +67954,7 @@ export namespace Schemas {
resolved_compare_date_range?: ResolvedDateRangeResponse | null;
/** The date range used for the query */
resolved_date_range?: ResolvedDateRangeResponse | null;
- results: QueryResponseAlternative31Results;
+ results: QueryResponseAlternative32Results;
samplingRate?: SamplingRate | null;
/** Measured timings for different parts of the query generation process */
timings?: QueryTiming[] | null;
@@ -67899,7 +67964,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative32 {
+ export interface QueryResponseAlternative33 {
/** Whether this result counted a repeat converter's every conversion, after resolving the query's null against the goal's math. The rate columns are a true share only when this is false, so the table reads it to label them. */
allowsMultipleConversionsPerVisitor: boolean;
/** The team's configured attribution window, for the tooltips. */
@@ -67936,7 +68001,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative33 {
+ export interface QueryResponseAlternative34 {
/** Conversions with at least one in-window touchpoint. The share denominator — deliberately unfiltered by min/maxTouchpoints so shares stay comparable across filter values. */
attributedConversions: number;
/** The attribution window actually used, for the tooltips. */
@@ -67969,7 +68034,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative34 {
+ export interface QueryResponseAlternative35 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -67997,7 +68062,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative35 {
+ export interface QueryResponseAlternative36 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68026,7 +68091,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative36 {
+ export interface QueryResponseAlternative37 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68054,7 +68119,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative37 {
+ export interface QueryResponseAlternative38 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68082,7 +68147,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative38 {
+ export interface QueryResponseAlternative39 {
/** Executed ClickHouse query */
clickhouse?: string | null;
/** Returned columns */
@@ -68119,7 +68184,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative39 {
+ export interface QueryResponseAlternative40 {
dateFrom?: string | null;
dateTo?: string | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -68145,7 +68210,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative40 {
+ export interface QueryResponseAlternative41 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68176,7 +68241,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative41 {
+ export interface QueryResponseAlternative42 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68204,7 +68269,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative42 {
+ export interface QueryResponseAlternative43 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68231,7 +68296,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative43 {
+ export interface QueryResponseAlternative44 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68260,7 +68325,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative44 {
+ export interface QueryResponseAlternative45 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -68287,7 +68352,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative45 {
+ export interface QueryResponseAlternative46 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68314,7 +68379,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative46 {
+ export interface QueryResponseAlternative47 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68341,7 +68406,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative47 {
+ export interface QueryResponseAlternative48 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68369,9 +68434,9 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative48Results = {[key: string]: MarketingAnalyticsItem};
+ export type QueryResponseAlternative49Results = {[key: string]: MarketingAnalyticsItem};
- export interface QueryResponseAlternative48 {
+ export interface QueryResponseAlternative49 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -68384,7 +68449,7 @@ export namespace Schemas {
resolved_compare_date_range?: ResolvedDateRangeResponse | null;
/** The date range used for the query */
resolved_date_range?: ResolvedDateRangeResponse | null;
- results: QueryResponseAlternative48Results;
+ results: QueryResponseAlternative49Results;
samplingRate?: SamplingRate | null;
/** Measured timings for different parts of the query generation process */
timings?: QueryTiming[] | null;
@@ -68394,7 +68459,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative49 {
+ export interface QueryResponseAlternative50 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68422,7 +68487,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative50 {
+ export interface QueryResponseAlternative51 {
columns?: string[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68448,19 +68513,19 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative52CredibleIntervals = {[key: string]: number[]};
+ export type QueryResponseAlternative53CredibleIntervals = {[key: string]: number[]};
- export type QueryResponseAlternative52InsightItemItem = { [key: string]: unknown };
+ export type QueryResponseAlternative53InsightItemItem = { [key: string]: unknown };
- export type QueryResponseAlternative52Probability = {[key: string]: number};
+ export type QueryResponseAlternative53Probability = {[key: string]: number};
- export interface QueryResponseAlternative52 {
- credible_intervals: QueryResponseAlternative52CredibleIntervals;
+ export interface QueryResponseAlternative53 {
+ credible_intervals: QueryResponseAlternative53CredibleIntervals;
expected_loss: number;
funnels_query?: FunnelsQuery | null;
- insight: QueryResponseAlternative52InsightItemItem[][];
+ insight: QueryResponseAlternative53InsightItemItem[][];
kind?: 'ExperimentFunnelsQuery';
- probability: QueryResponseAlternative52Probability;
+ probability: QueryResponseAlternative53Probability;
significance_code: ExperimentSignificanceCode;
significant: boolean;
stats_version?: number | null;
@@ -68469,20 +68534,20 @@ export namespace Schemas {
warnings?: DataWarehouseSyncWarning[] | null;
}
- export type QueryResponseAlternative53CredibleIntervals = {[key: string]: number[]};
+ export type QueryResponseAlternative54CredibleIntervals = {[key: string]: number[]};
- export type QueryResponseAlternative53InsightItem = { [key: string]: unknown };
+ export type QueryResponseAlternative54InsightItem = { [key: string]: unknown };
- export type QueryResponseAlternative53Probability = {[key: string]: number};
+ export type QueryResponseAlternative54Probability = {[key: string]: number};
- export interface QueryResponseAlternative53 {
+ export interface QueryResponseAlternative54 {
count_query?: TrendsQuery | null;
- credible_intervals: QueryResponseAlternative53CredibleIntervals;
+ credible_intervals: QueryResponseAlternative54CredibleIntervals;
exposure_query?: TrendsQuery | null;
- insight: QueryResponseAlternative53InsightItem[];
+ insight: QueryResponseAlternative54InsightItem[];
kind?: 'ExperimentTrendsQuery';
p_value: number;
- probability: QueryResponseAlternative53Probability;
+ probability: QueryResponseAlternative54Probability;
significance_code: ExperimentSignificanceCode;
significant: boolean;
stats_version?: number | null;
@@ -68491,7 +68556,7 @@ export namespace Schemas {
warnings?: DataWarehouseSyncWarning[] | null;
}
- export interface QueryResponseAlternative54 {
+ export interface QueryResponseAlternative55 {
columns?: string[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68517,7 +68582,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative56 {
+ export interface QueryResponseAlternative57 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68544,7 +68609,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative57 {
+ export interface QueryResponseAlternative58 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68574,7 +68639,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative58 {
+ export interface QueryResponseAlternative59 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore: boolean;
@@ -68602,9 +68667,9 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative59ResultsItem = { [key: string]: unknown };
+ export type QueryResponseAlternative60ResultsItem = { [key: string]: unknown };
- export interface QueryResponseAlternative59 {
+ export interface QueryResponseAlternative60 {
boxplot_data?: BoxPlotDatum[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68620,7 +68685,7 @@ export namespace Schemas {
resolved_compare_date_range?: ResolvedDateRangeResponse | null;
/** The date range used for the query */
resolved_date_range?: ResolvedDateRangeResponse | null;
- results: QueryResponseAlternative59ResultsItem[];
+ results: QueryResponseAlternative60ResultsItem[];
/** Measured timings for different parts of the query generation process */
timings?: QueryTiming[] | null;
/** Connector-synced data warehouse sources referenced by this query, if any. */
@@ -68629,7 +68694,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative60 {
+ export interface QueryResponseAlternative61 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -68653,7 +68718,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative61 {
+ export interface QueryResponseAlternative62 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -68675,7 +68740,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative62 {
+ export interface QueryResponseAlternative63 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -68697,7 +68762,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative63 {
+ export interface QueryResponseAlternative64 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -68719,9 +68784,9 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative64ResultsItem = { [key: string]: unknown };
+ export type QueryResponseAlternative65ResultsItem = { [key: string]: unknown };
- export interface QueryResponseAlternative64 {
+ export interface QueryResponseAlternative65 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -68734,7 +68799,7 @@ export namespace Schemas {
resolved_compare_date_range?: ResolvedDateRangeResponse | null;
/** The date range used for the query */
resolved_date_range?: ResolvedDateRangeResponse | null;
- results: QueryResponseAlternative64ResultsItem[];
+ results: QueryResponseAlternative65ResultsItem[];
/** Measured timings for different parts of the query generation process */
timings?: QueryTiming[] | null;
/** Connector-synced data warehouse sources referenced by this query, if any. */
@@ -68743,7 +68808,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative66 {
+ export interface QueryResponseAlternative67 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68770,14 +68835,14 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative67Tables = {[key: string]: DatabaseSchemaPostHogTable | DatabaseSchemaSystemTable | DatabaseSchemaDataWarehouseTable | DatabaseSchemaViewTable | DatabaseSchemaManagedViewTable | DatabaseSchemaBatchExportTable | DatabaseSchemaMaterializedViewTable | DatabaseSchemaEndpointTable};
+ export type QueryResponseAlternative68Tables = {[key: string]: DatabaseSchemaPostHogTable | DatabaseSchemaSystemTable | DatabaseSchemaDataWarehouseTable | DatabaseSchemaViewTable | DatabaseSchemaManagedViewTable | DatabaseSchemaBatchExportTable | DatabaseSchemaMaterializedViewTable | DatabaseSchemaEndpointTable};
- export interface QueryResponseAlternative67 {
+ export interface QueryResponseAlternative68 {
joins: DataWarehouseViewLink[];
- tables: QueryResponseAlternative67Tables;
+ tables: QueryResponseAlternative68Tables;
}
- export interface QueryResponseAlternative68 {
+ export interface QueryResponseAlternative69 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
has_next: boolean;
@@ -68802,7 +68867,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative69 {
+ export interface QueryResponseAlternative70 {
columns?: string[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68830,7 +68895,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative70 {
+ export interface QueryResponseAlternative71 {
count: number;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -68853,7 +68918,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative71 {
+ export interface QueryResponseAlternative72 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -68875,7 +68940,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative72 {
+ export interface QueryResponseAlternative73 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -68897,7 +68962,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative73 {
+ export interface QueryResponseAlternative74 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore?: boolean | null;
@@ -68924,7 +68989,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative74 {
+ export interface QueryResponseAlternative75 {
/** Result rows for the comparison period when `compareFilter.compare` is true. */
compare?: AggregatedSpanRow[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -68948,7 +69013,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative75 {
+ export interface QueryResponseAlternative76 {
/** Result rows for the comparison period when `compareFilter.compare` is true. */
compare?: SpanTreeNode[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -68972,7 +69037,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative76 {
+ export interface QueryResponseAlternative77 {
/** Result rows for the comparison period when `compareFilter.compare` is true. */
compare?: AttributeBreakdownRow[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -68996,13 +69061,13 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative77 {
+ export interface QueryResponseAlternative78 {
questions: string[];
/** Data warehouse sync warnings — see AnalyticsQueryResponseBase.warnings for semantics. */
warnings?: DataWarehouseSyncWarning[] | null;
}
- export interface QueryResponseAlternative78 {
+ export interface QueryResponseAlternative79 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore?: boolean | null;
@@ -69027,7 +69092,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative79 {
+ export interface QueryResponseAlternative80 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore?: boolean | null;
@@ -69052,7 +69117,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative80 {
+ export interface QueryResponseAlternative81 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69074,7 +69139,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative81 {
+ export interface QueryResponseAlternative82 {
columns?: string[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -69100,7 +69165,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative84 {
+ export interface QueryResponseAlternative85 {
/** Timestamp of the newer trace */
newerTimestamp?: string | null;
/** ID of the newer trace (chronologically after current) */
@@ -69115,7 +69180,7 @@ export namespace Schemas {
warnings?: DataWarehouseSyncWarning[] | null;
}
- export interface QueryResponseAlternative85 {
+ export interface QueryResponseAlternative86 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69137,7 +69202,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative86 {
+ export interface QueryResponseAlternative87 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69159,7 +69224,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative87 {
+ export interface QueryResponseAlternative88 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -69189,7 +69254,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative88 {
+ export interface QueryResponseAlternative89 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore: boolean;
@@ -69217,7 +69282,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative89 {
+ export interface QueryResponseAlternative90 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69239,7 +69304,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative90 {
+ export interface QueryResponseAlternative91 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -69266,9 +69331,9 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative91ResultsItem = { [key: string]: unknown };
+ export type QueryResponseAlternative92ResultsItem = { [key: string]: unknown };
- export interface QueryResponseAlternative91 {
+ export interface QueryResponseAlternative92 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69281,7 +69346,7 @@ export namespace Schemas {
resolved_compare_date_range?: ResolvedDateRangeResponse | null;
/** The date range used for the query */
resolved_date_range?: ResolvedDateRangeResponse | null;
- results: QueryResponseAlternative91ResultsItem[];
+ results: QueryResponseAlternative92ResultsItem[];
/** Measured timings for different parts of the query generation process */
timings?: QueryTiming[] | null;
/** Connector-synced data warehouse sources referenced by this query, if any. */
@@ -69290,7 +69355,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative92 {
+ export interface QueryResponseAlternative93 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69312,7 +69377,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative93 {
+ export interface QueryResponseAlternative94 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69334,7 +69399,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative94 {
+ export interface QueryResponseAlternative95 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69356,7 +69421,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative95 {
+ export interface QueryResponseAlternative96 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69378,7 +69443,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative96 {
+ export interface QueryResponseAlternative97 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69400,7 +69465,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative97 {
+ export interface QueryResponseAlternative98 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69422,7 +69487,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative98 {
+ export interface QueryResponseAlternative99 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69445,7 +69510,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative99 {
+ export interface QueryResponseAlternative100 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69467,7 +69532,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative100 {
+ export interface QueryResponseAlternative101 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69489,7 +69554,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative101 {
+ export interface QueryResponseAlternative102 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69511,7 +69576,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative102 {
+ export interface QueryResponseAlternative103 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69533,7 +69598,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative103 {
+ export interface QueryResponseAlternative104 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69555,7 +69620,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative104 {
+ export interface QueryResponseAlternative105 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69577,7 +69642,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative105 {
+ export interface QueryResponseAlternative106 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69599,7 +69664,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative106 {
+ export interface QueryResponseAlternative107 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69621,7 +69686,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative107 {
+ export interface QueryResponseAlternative108 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -69643,18 +69708,18 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative = { [key: string]: unknown } | QueryResponseAlternative1 | QueryResponseAlternative2 | QueryResponseAlternative3 | QueryResponseAlternative4 | QueryResponseAlternative5 | QueryResponseAlternative6 | QueryResponseAlternative7 | QueryResponseAlternative8 | QueryResponseAlternative9 | QueryResponseAlternative10 | QueryResponseAlternative11 | QueryResponseAlternative12 | QueryResponseAlternative13 | QueryResponseAlternative14 | QueryResponseAlternative15 | QueryResponseAlternative16 | QueryResponseAlternative17 | QueryResponseAlternative18 | QueryResponseAlternative19 | QueryResponseAlternative20 | QueryResponseAlternative21 | QueryResponseAlternative22 | QueryResponseAlternative23 | QueryResponseAlternative24 | QueryResponseAlternative25 | QueryResponseAlternative26 | QueryResponseAlternative27 | QueryResponseAlternative28 | QueryResponseAlternative29 | QueryResponseAlternative30 | QueryResponseAlternative31 | QueryResponseAlternative32 | QueryResponseAlternative33 | QueryResponseAlternative34 | unknown | QueryResponseAlternative35 | QueryResponseAlternative36 | QueryResponseAlternative37 | QueryResponseAlternative38 | QueryResponseAlternative39 | QueryResponseAlternative40 | QueryResponseAlternative41 | QueryResponseAlternative42 | QueryResponseAlternative43 | QueryResponseAlternative44 | QueryResponseAlternative45 | QueryResponseAlternative46 | QueryResponseAlternative47 | QueryResponseAlternative48 | QueryResponseAlternative49 | QueryResponseAlternative50 | QueryResponseAlternative52 | QueryResponseAlternative53 | QueryResponseAlternative54 | QueryResponseAlternative56 | QueryResponseAlternative57 | QueryResponseAlternative58 | QueryResponseAlternative59 | QueryResponseAlternative60 | QueryResponseAlternative61 | QueryResponseAlternative62 | QueryResponseAlternative63 | QueryResponseAlternative64 | QueryResponseAlternative66 | QueryResponseAlternative67 | QueryResponseAlternative68 | QueryResponseAlternative69 | QueryResponseAlternative70 | QueryResponseAlternative71 | QueryResponseAlternative72 | QueryResponseAlternative73 | QueryResponseAlternative74 | QueryResponseAlternative75 | QueryResponseAlternative76 | QueryResponseAlternative77 | QueryResponseAlternative78 | QueryResponseAlternative79 | QueryResponseAlternative80 | QueryResponseAlternative81 | QueryResponseAlternative84 | QueryResponseAlternative85 | QueryResponseAlternative86 | QueryResponseAlternative87 | QueryResponseAlternative88 | QueryResponseAlternative89 | QueryResponseAlternative90 | QueryResponseAlternative91 | QueryResponseAlternative92 | QueryResponseAlternative93 | QueryResponseAlternative94 | QueryResponseAlternative95 | QueryResponseAlternative96 | QueryResponseAlternative97 | QueryResponseAlternative98 | QueryResponseAlternative99 | QueryResponseAlternative100 | QueryResponseAlternative101 | QueryResponseAlternative102 | QueryResponseAlternative103 | QueryResponseAlternative104 | QueryResponseAlternative105 | QueryResponseAlternative106 | QueryResponseAlternative107;
+ export type QueryResponseAlternative = { [key: string]: unknown } | QueryResponseAlternative1 | QueryResponseAlternative2 | QueryResponseAlternative3 | QueryResponseAlternative4 | QueryResponseAlternative5 | QueryResponseAlternative6 | QueryResponseAlternative7 | QueryResponseAlternative8 | QueryResponseAlternative9 | QueryResponseAlternative10 | QueryResponseAlternative11 | QueryResponseAlternative12 | QueryResponseAlternative13 | QueryResponseAlternative14 | QueryResponseAlternative15 | QueryResponseAlternative16 | QueryResponseAlternative17 | QueryResponseAlternative18 | QueryResponseAlternative19 | QueryResponseAlternative20 | QueryResponseAlternative21 | QueryResponseAlternative22 | QueryResponseAlternative23 | QueryResponseAlternative24 | QueryResponseAlternative25 | QueryResponseAlternative26 | QueryResponseAlternative27 | QueryResponseAlternative28 | QueryResponseAlternative29 | QueryResponseAlternative30 | QueryResponseAlternative31 | QueryResponseAlternative32 | QueryResponseAlternative33 | QueryResponseAlternative34 | QueryResponseAlternative35 | unknown | QueryResponseAlternative36 | QueryResponseAlternative37 | QueryResponseAlternative38 | QueryResponseAlternative39 | QueryResponseAlternative40 | QueryResponseAlternative41 | QueryResponseAlternative42 | QueryResponseAlternative43 | QueryResponseAlternative44 | QueryResponseAlternative45 | QueryResponseAlternative46 | QueryResponseAlternative47 | QueryResponseAlternative48 | QueryResponseAlternative49 | QueryResponseAlternative50 | QueryResponseAlternative51 | QueryResponseAlternative53 | QueryResponseAlternative54 | QueryResponseAlternative55 | QueryResponseAlternative57 | QueryResponseAlternative58 | QueryResponseAlternative59 | QueryResponseAlternative60 | QueryResponseAlternative61 | QueryResponseAlternative62 | QueryResponseAlternative63 | QueryResponseAlternative64 | QueryResponseAlternative65 | QueryResponseAlternative67 | QueryResponseAlternative68 | QueryResponseAlternative69 | QueryResponseAlternative70 | QueryResponseAlternative71 | QueryResponseAlternative72 | QueryResponseAlternative73 | QueryResponseAlternative74 | QueryResponseAlternative75 | QueryResponseAlternative76 | QueryResponseAlternative77 | QueryResponseAlternative78 | QueryResponseAlternative79 | QueryResponseAlternative80 | QueryResponseAlternative81 | QueryResponseAlternative82 | QueryResponseAlternative85 | QueryResponseAlternative86 | QueryResponseAlternative87 | QueryResponseAlternative88 | QueryResponseAlternative89 | QueryResponseAlternative90 | QueryResponseAlternative91 | QueryResponseAlternative92 | QueryResponseAlternative93 | QueryResponseAlternative94 | QueryResponseAlternative95 | QueryResponseAlternative96 | QueryResponseAlternative97 | QueryResponseAlternative98 | QueryResponseAlternative99 | QueryResponseAlternative100 | QueryResponseAlternative101 | QueryResponseAlternative102 | QueryResponseAlternative103 | QueryResponseAlternative104 | QueryResponseAlternative105 | QueryResponseAlternative106 | QueryResponseAlternative107 | QueryResponseAlternative108;
export interface QueryStatusResponse {
query_status: QueryStatus;
}
export interface QueryUpgradeRequest {
- query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingIssueCorrelationQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | DataVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | FunnelCorrelationQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | PropertyValuesQuery;
+ query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingIssueCorrelationQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | DataVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | FunnelCorrelationQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | PropertyValuesQuery;
}
export interface QueryUpgradeResponse {
- query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingIssueCorrelationQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | DataVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | FunnelCorrelationQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | PropertyValuesQuery;
+ query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingIssueCorrelationQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | DataVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | FunnelCorrelationQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | PropertyValuesQuery;
}
export interface QuotaResourceLimit {