{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/WebVitalsQuery", "title": "WebVitalsQuery", "additionalProperties": false, "properties": { "aggregation_group_type_index": { "default": null, "description": "Groups aggregation - not used in Web Analytics but required for type compatibility", "title": "Aggregation Group Type Index", "type": "integer", "nullable": true }, "compareFilter": { "default": null, "allOf": [ { "$ref": "#/components/schemas/CompareFilter" } ], "nullable": true }, "conversionGoal": { "default": null, "title": "Conversiongoal", "anyOf": [ { "$ref": "#/components/schemas/ActionConversionGoal" }, { "$ref": "#/components/schemas/CustomEventConversionGoal" } ], "nullable": true }, "dataColorTheme": { "default": null, "description": "Colors used in the insight's visualization - not used in Web Analytics but required for type compatibility", "title": "Datacolortheme", "type": "number", "nullable": true }, "dateRange": { "default": null, "allOf": [ { "$ref": "#/components/schemas/DateRange" } ], "nullable": true }, "doPathCleaning": { "default": null, "title": "Dopathcleaning", "type": "boolean", "nullable": true }, "filterTestAccounts": { "default": null, "title": "Filtertestaccounts", "type": "boolean", "nullable": true }, "includeRevenue": { "default": null, "title": "Includerevenue", "type": "boolean", "nullable": true }, "interval": { "default": null, "description": "Interval for date range calculation (affects date_to rounding for hour vs day ranges)", "allOf": [ { "$ref": "#/components/schemas/IntervalType" } ], "nullable": true }, "kind": { "default": "WebVitalsQuery", "title": "Kind", "type": "string", "enum": [ "WebVitalsQuery" ] }, "modifiers": { "default": null, "description": "Modifiers used when performing the query", "allOf": [ { "$ref": "#/components/schemas/HogQLQueryModifiers" } ], "nullable": true }, "orderBy": { "default": null, "title": "Orderby", "items": { "anyOf": [ { "$ref": "#/components/schemas/WebAnalyticsOrderByFields" }, { "$ref": "#/components/schemas/WebAnalyticsOrderByDirection" } ] }, "type": "array", "nullable": true }, "properties": { "type": "array", "items": { "anyOf": [ { "$ref": "#/components/schemas/EventPropertyFilter" }, { "$ref": "#/components/schemas/PersonPropertyFilter" }, { "$ref": "#/components/schemas/SessionPropertyFilter" }, { "$ref": "#/components/schemas/CohortPropertyFilter" } ] }, "title": "Properties" }, "response": { "default": null, "allOf": [ { "$ref": "#/components/schemas/WebGoalsQueryResponse" } ], "nullable": true }, "sampling": { "default": null, "allOf": [ { "$ref": "#/components/schemas/WebAnalyticsSampling" } ], "nullable": true }, "samplingFactor": { "default": null, "description": "Sampling rate", "title": "Samplingfactor", "type": "number", "nullable": true }, "source": { "discriminator": { "mapping": { "FunnelsQuery": "#/components/schemas/FunnelsQuery", "LifecycleQuery": "#/components/schemas/LifecycleQuery", "PathsQuery": "#/components/schemas/PathsQuery", "RetentionQuery": "#/components/schemas/RetentionQuery", "StickinessQuery": "#/components/schemas/StickinessQuery", "TrendsQuery": "#/components/schemas/TrendsQuery", "WebOverviewQuery": "#/components/schemas/WebOverviewQuery", "WebStatsTableQuery": "#/components/schemas/WebStatsTableQuery" }, "propertyName": "kind" }, "oneOf": [ { "$ref": "#/components/schemas/TrendsQuery" }, { "$ref": "#/components/schemas/FunnelsQuery" }, { "$ref": "#/components/schemas/RetentionQuery" }, { "$ref": "#/components/schemas/PathsQuery" }, { "$ref": "#/components/schemas/StickinessQuery" }, { "$ref": "#/components/schemas/LifecycleQuery" }, { "$ref": "#/components/schemas/WebStatsTableQuery" }, { "$ref": "#/components/schemas/WebOverviewQuery" } ], "title": "Source" }, "tags": { "default": null, "allOf": [ { "$ref": "#/components/schemas/QueryLogTags" } ], "nullable": true }, "useSessionsTable": { "default": null, "title": "Usesessionstable", "type": "boolean", "nullable": true }, "version": { "default": null, "description": "version of the node, used for schema migrations", "title": "Version", "type": "number", "nullable": true } }, "required": [ "properties", "source" ], "type": "object" }