:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(logs): remove fully rolled-out logs-alerting flag (#82679)
Frank Hamandefd7780aba1c
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex f6a73af52bbe..414c7da45b9c 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -364,7 +364,6 @@ export const FEATURE_FLAGS = {LLM_ANALYTICS_TRACE_NAVIGATION: 'llm-analytics-trace-navigation', // owner: #team-ai-observabilityLLM_OBSERVABILITY_TRACE_SEARCH: 'llm-observability-trace-search', // owner: #team-ai-observabilityLOGS: 'logs', // owner: #team-logs- LOGS_ALERTING: 'logs-alerting', // owner: #team-logsLOGS_ANOMALIES: 'logs-anomalies', // owner: @jonmcwest #team-logsLOGS_IN_ERROR_TRACKING: 'logs-in-error-tracking', // owner: @jonmcwest #team-logsLOGS_METRIC_RULES: 'logs-metric-rules', // owner: #team-logsdiff --git a/frontend/src/scenes/hog-functions/sub-templates/sub-templates.ts b/frontend/src/scenes/hog-functions/sub-templates/sub-templates.tsindex ddeba817b11b..0c25275edfcd 100644--- a/frontend/src/scenes/hog-functions/sub-templates/sub-templates.ts+++ b/frontend/src/scenes/hog-functions/sub-templates/sub-templates.ts@@ -200,28 +200,24 @@ export const HOG_FUNCTION_SUB_TEMPLATE_COMMON_PROPERTIES: Record<type: 'internal_destination',context_id: 'logs-alerting',filters: { events: [{ id: '$logs_alert_firing', type: 'events' }] },- flag: FEATURE_FLAGS.LOGS_ALERTING,},'logs-alert-resolved': {sub_template_id: 'logs-alert-resolved',type: 'internal_destination',context_id: 'logs-alerting',filters: { events: [{ id: '$logs_alert_resolved', type: 'events' }] },- flag: FEATURE_FLAGS.LOGS_ALERTING,},'logs-alert-auto-disabled': {sub_template_id: 'logs-alert-auto-disabled',type: 'internal_destination',context_id: 'logs-alerting',filters: { events: [{ id: '$logs_alert_auto_disabled', type: 'events' }] },- flag: FEATURE_FLAGS.LOGS_ALERTING,},'logs-alert-errored': {sub_template_id: 'logs-alert-errored',type: 'internal_destination',context_id: 'logs-alerting',filters: { events: [{ id: '$logs_alert_errored', type: 'events' }] },- flag: FEATURE_FLAGS.LOGS_ALERTING,},'health-check-firing': {sub_template_id: 'health-check-firing',diff --git a/frontend/src/scenes/settings/SettingsMap.tsx b/frontend/src/scenes/settings/SettingsMap.tsxindex e565879e0d81..dd8170faad28 100644--- a/frontend/src/scenes/settings/SettingsMap.tsx+++ b/frontend/src/scenes/settings/SettingsMap.tsx@@ -908,7 +908,6 @@ export const SETTINGS_MAP: SettingSection[] = [title: 'Alerting',description: 'Configure alerts to get notified when log volumes breach thresholds.',component: <LogsAlertingSection />,- flag: 'LOGS_ALERTING',keywords: ['notification', 'alert', 'threshold', 'logs'],},],diff --git a/products/alerts/frontend/AlertsScene.stories.tsx b/products/alerts/frontend/AlertsScene.stories.tsxindex 7fc5073fa2cf..74a2ac126096 100644--- a/products/alerts/frontend/AlertsScene.stories.tsx+++ b/products/alerts/frontend/AlertsScene.stories.tsx@@ -1,6 +1,5 @@import { Meta, StoryObj } from '@storybook/react'-import { FEATURE_FLAGS } from 'lib/constants'import { App } from 'scenes/App'import { urls } from 'scenes/urls'@@ -172,7 +171,6 @@ const meta: Meta = {viewMode: 'story',mockDate: '2026-07-16',pageUrl: `${urls.alerts()}?alert_type=insights`,- featureFlags: [FEATURE_FLAGS.LOGS_ALERTING],testOptions: { viewport: { width: 1300, height: 900 } },},decorators: [diff --git a/products/alerts/frontend/views/Alerts.tsx b/products/alerts/frontend/views/Alerts.tsxindex 1d9266e909c9..5cf3cd141c5e 100644--- a/products/alerts/frontend/views/Alerts.tsx+++ b/products/alerts/frontend/views/Alerts.tsx@@ -5,7 +5,6 @@ import { Suspense, useEffect } from 'react'import { LemonSkeleton, LemonTabs } from '@posthog/lemon-ui'import { AccessDenied } from 'lib/components/AccessDenied'-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { getAppContext } from 'lib/utils/getAppContext'import { lazyWithRetry } from 'lib/utils/retryImport'import { urls } from 'scenes/urls'@@ -54,9 +53,8 @@ function AlertsPanelSkeleton(): JSX.Element {export function Alerts({ alertId }: AlertsProps): JSX.Element {const { push } = useActions(router)const { searchParams } = useValues(router)- const showLogAlerts = useFeatureFlag('LOGS_ALERTING')const canViewInsightAlerts = hasEffectiveResourceAccess(AccessControlResourceType.Insight)- const canViewLogAlerts = showLogAlerts && hasEffectiveResourceAccess(AccessControlResourceType.Logs)+ const canViewLogAlerts = hasEffectiveResourceAccess(AccessControlResourceType.Logs)useEffect(() => {void loadInsightAlerts()diff --git a/products/logs/backend/presentation/views/alerts_api.py b/products/logs/backend/presentation/views/alerts_api.pyindex b229da1c499d..0472efc3126b 100644--- a/products/logs/backend/presentation/views/alerts_api.py+++ b/products/logs/backend/presentation/views/alerts_api.py@@ -26,7 +26,6 @@ from posthog.helpers.impersonation import is_impersonatedfrom posthog.models.activity_logging.activity_log import Change, Detail, log_activityfrom posthog.models.team.team import Teamfrom posthog.models.user import User-from posthog.permissions import PostHogFeatureFlagPermissionfrom posthog.utils import relative_date_parsefrom products.alerts.backend.facade.api import (@@ -862,8 +861,6 @@ class LogsAlertViewSet(TeamAndOrgViewSetMixin, viewsets.ModelViewSet):queryset = LogsAlertConfiguration.objects.all().order_by("-created_at")serializer_class = LogsAlertConfigurationSerializerlookup_field = "id"- posthog_feature_flag = "logs-alerting"- permission_classes = [PostHogFeatureFlagPermission]def safely_get_queryset(self, queryset: QuerySet) -> QuerySet:if self.action == "list":diff --git a/products/logs/frontend/LogsScene.tsx b/products/logs/frontend/LogsScene.tsxindex 157fd7fb822a..d3ef86e54a8b 100644--- a/products/logs/frontend/LogsScene.tsx+++ b/products/logs/frontend/LogsScene.tsx@@ -50,14 +50,13 @@ const LogsSceneTabbedContent = (): JSX.Element => {const showServicesView = useFeatureFlag('LOGS_SERVICES_VIEW')const showServicesV2 = useFeatureFlag('LOGS_SERVICES_VIEW_V2')const showServices = activeTab === 'services' && showServicesView- const showAlerting = useFeatureFlag('LOGS_ALERTING')const showTransformations = useFeatureFlag('LOGS_TRANSFORMATIONS')const showAnomalies = useFeatureFlag('LOGS_ANOMALIES')const tabs: { key: LogsSceneActiveTab; label: string }[] = [{ key: 'viewer', label: 'Viewer' },...(showServicesView ? [{ key: 'services' as const, label: 'Services' }] : []),- ...(showAlerting ? [{ key: 'alerts' as const, label: 'Alerts' }] : []),+ { key: 'alerts', label: 'Alerts' },...(showAnomalies ? [{ key: 'anomalies' as const, label: 'Anomalies' }] : []),{ key: 'sql', label: 'SQL' },...(showTransformations ? [{ key: 'transformations' as const, label: 'Transformations' }] : []),@@ -114,7 +113,7 @@ const LogsSceneTabbedContent = (): JSX.Element => {<LogsViewerModal /></>)}- {activeTab === 'alerts' && showAlerting && <LogsAlertingSection />}+ {activeTab === 'alerts' && <LogsAlertingSection />}{activeTab === 'anomalies' && showAnomalies && <LogsAnomalies />}{activeTab === 'sql' && <LogsSqlEditor id={LOGS_SCENE_VIEWER_ID} />}{activeTab === 'transformations' && showTransformations && <LogsTransformations />}diff --git a/products/logs/mcp/tools.yaml b/products/logs/mcp/tools.yamlindex 5f209dd8d6ab..ca59b4641526 100644--- a/products/logs/mcp/tools.yaml+++ b/products/logs/mcp/tools.yaml@@ -33,7 +33,6 @@ tools:- created_at- created_by- updated_at- feature_flag: logs-alertingresponse:include:- id@@ -84,7 +83,6 @@ tools:description: Optional Slack channel name used for display.webhook_url:description: Required when type is webhook or teams.- feature_flag: logs-alertingresponse:include:- hog_function_ids@@ -102,7 +100,6 @@ tools:Remove a notification destination from a log alert by passing the hog_function_ids returned fromlogs-alerts-destinations-create. Destinations are deleted as one atomic group — partial deletion fails thecall.- feature_flag: logs-alertinglogs-alerts-destroy:operation: logs_alerts_destroyenabled: true@@ -115,7 +112,6 @@ tools:title: Delete log alertdescription: |Permanently delete a log alert configuration by ID.- feature_flag: logs-alertinglogs-alerts-events-list:operation: logs_alerts_events_listenabled: true@@ -132,7 +128,6 @@ tools:Use to evaluate how an existing alert has behaved (firing cadence, error rate, flap pattern) before tuningthresholds. Quiet no-op check rows are filtered out server-side. Optional `kind` query param narrows to asingle event kind.- feature_flag: logs-alertingresponse:include:- id@@ -158,7 +153,6 @@ tools:description: >List log alert configurations in the current project, newest first. Returns alert name, state, threshold,filters, and scheduling details. Use this to review existing alerts before creating or modifying them.- feature_flag: logs-alertingresponse:include:- id@@ -195,7 +189,6 @@ tools:- created_at- created_by- updated_at- feature_flag: logs-alertingresponse:include:- id@@ -235,7 +228,6 @@ tools:description: >Get a log alert configuration by ID. Returns full details including current state, threshold settings,filters, and scheduling information.- feature_flag: logs-alertingresponse:include:- id@@ -274,7 +266,6 @@ tools:machine — count, threshold_breached, state, notification (none/fire/resolve), reason. Use to validatethreshold + N-of-M settings before creating an alert. Read-only; no alert records are written. Aim forfire_count between 0 and 3 over a `-7d` lookback for a healthy threshold.- feature_flag: logs-alertingresponse:include:- bucketsdiff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex 97ded5ec6180..e505ed4b1a84 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -6499,8 +6499,7 @@"idempotentHint": false,"openWorldHint": true,"readOnlyHint": false- },- "feature_flag": "logs-alerting"+ }},"logs-alerts-destinations-create": {"description": "Attach a Slack, webhook, or Microsoft Teams notification destination to a log alert. Without a destination an alert evaluates silently and never notifies. One HogFunction is created per event kind (firing, resolved, broken, errored) atomically. The returned hog_function_ids identify the destination group.",@@ -6514,8 +6513,7 @@"idempotentHint": false,"openWorldHint": true,"readOnlyHint": false- },- "feature_flag": "logs-alerting"+ }},"logs-alerts-destinations-delete-create": {"description": "Remove a notification destination from a log alert by passing the hog_function_ids returned from logs-alerts-destinations-create. Destinations are deleted as one atomic group — partial deletion fails the call.",@@ -6529,8 +6527,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": false- },- "feature_flag": "logs-alerting"+ }},"logs-alerts-destroy": {"description": "Permanently delete a log alert configuration by ID.",@@ -6544,8 +6541,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": false- },- "feature_flag": "logs-alerting"+ }},"logs-alerts-events-list": {"description": "List historical events for a log alert — fires, resolves, errors, enable/disable toggles, threshold changes. Use to evaluate how an existing alert has behaved (firing cadence, error rate, flap pattern) before tuning thresholds. Quiet no-op check rows are filtered out server-side. Optional `kind` query param narrows to a single event kind.",@@ -6559,8 +6555,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": true- },- "feature_flag": "logs-alerting"+ }},"logs-alerts-list": {"description": "List log alert configurations in the current project, newest first. Returns alert name, state, threshold, filters, and scheduling details. Use this to review existing alerts before creating or modifying them.",@@ -6574,8 +6569,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": true- },- "feature_flag": "logs-alerting"+ }},"logs-alerts-partial-update": {"description": "Update a log alert configuration by ID. Only the fields you provide are changed. Use this to adjust thresholds, filters, quiet hours, enable/disable alerts, or snooze them.",@@ -6589,8 +6583,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": false- },- "feature_flag": "logs-alerting"+ }},"logs-alerts-retrieve": {"description": "Get a log alert configuration by ID. Returns full details including current state, threshold settings, filters, and scheduling information.",@@ -6604,8 +6597,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": true- },- "feature_flag": "logs-alerting"+ }},"logs-alerts-simulate-create": {"description": "Run a draft alert configuration against historical logs and return per-bucket results from the full state machine — count, threshold_breached, state, notification (none/fire/resolve), reason. Use to validate threshold + N-of-M settings before creating an alert. Read-only; no alert records are written. Aim for fire_count between 0 and 3 over a `-7d` lookback for a healthy threshold.",@@ -6619,8 +6611,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": true- },- "feature_flag": "logs-alerting"+ }},"logs-anomalies-scan": {"description": "Run anomaly detection on demand over one service's log volume for a time window of up to 7 days. Learns per-severity baselines from up to 6 weeks of history and returns spike, drop, and silence issues plus per-severity learning status. Requires a serviceName (use logs-services-list or the resource attribute values tool to discover services). Experimental; synchronous and read only, so prefer windows of a few hours to a day. Per-bucket band evidence is omitted from the tool response to save tokens; the API endpoint returns it for charts.",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 62bf7c9e6fd2..31e781f67dce 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -6864,8 +6864,7 @@"idempotentHint": false,"openWorldHint": true,"readOnlyHint": false- },- "feature_flag": "logs-alerting"+ }},"logs-alerts-destinations-create": {"description": "Attach a Slack, webhook, or Microsoft Teams notification destination to a log alert. Without a destination an alert evaluates silently and never notifies. One HogFunction is created per event kind (firing, resolved, broken, errored) atomically. The returned hog_function_ids identify the destination group.",@@ -6879,8 +6878,7 @@"idempotentHint": false,"openWorldHint": true,"readOnlyHint": false- },- "feature_flag": "logs-alerting"+ }},"logs-alerts-destinations-delete-create": {"description": "Remove a notification destination from a log alert by passing the hog_function_ids returned from logs-alerts-destinations-create. Destinations are deleted as one atomic group — partial deletion fails the call.",@@ -6894,8 +6892,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": false- },- "feature_flag": "logs-alerting"+ }},"logs-alerts-destroy": {"description": "Permanently delete a log alert configuration by ID.",@@ -6909,8 +6906,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": false- },- "feature_flag": "logs-alerting"+ }},"logs-alerts-events-list": {"description": "List historical events for a log alert — fires, resolves, errors, enable/disable toggles, threshold changes. Use to evaluate how an existing alert has behaved (firing cadence, error rate, flap pattern) before tuning thresholds. Quiet no-op check rows are filtered out server-side. Optional `kind` query param narrows to a single event kind.",@@ -6924,8 +6920,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": true- },- "feature_flag": "logs-alerting"+ }},"logs-alerts-list": {"description": "List log alert configurations in the current project, newest first. Returns alert name, state, threshold, filters, and scheduling details. Use this to review existing alerts before creating or modifying them.",@@ -6939,8 +6934,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": true- },- "feature_flag": "logs-alerting"+ }},"logs-alerts-partial-update": {"description": "Update a log alert configuration by ID. Only the fields you provide are changed. Use this to adjust thresholds, filters, quiet hours, enable/disable alerts, or snooze them.",@@ -6954,8 +6948,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": false- },- "feature_flag": "logs-alerting"+ }},"logs-alerts-retrieve": {"description": "Get a log alert configuration by ID. Returns full details including current state, threshold settings, filters, and scheduling information.",@@ -6969,8 +6962,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": true- },- "feature_flag": "logs-alerting"+ }},"logs-alerts-simulate-create": {"description": "Run a draft alert configuration against historical logs and return per-bucket results from the full state machine — count, threshold_breached, state, notification (none/fire/resolve), reason. Use to validate threshold + N-of-M settings before creating an alert. Read-only; no alert records are written. Aim for fire_count between 0 and 3 over a `-7d` lookback for a healthy threshold.",@@ -6984,8 +6976,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": true- },- "feature_flag": "logs-alerting"+ }},"logs-anomalies-scan": {"description": "Run anomaly detection on demand over one service's log volume for a time window of up to 7 days. Learns per-severity baselines from up to 6 weeks of history and returns spike, drop, and silence issues plus per-severity learning status. Requires a serviceName (use logs-services-list or the resource attribute values tool to discover services). Experimental; synchronous and read only, so prefer windows of a few hours to a day. Per-bucket band evidence is omitted from the tool response to save tokens; the API endpoint returns it for charts.",diff --git a/services/mcp/tests/tools/logsAlerts.integration.test.ts b/services/mcp/tests/tools/logsAlerts.integration.test.tsindex 2f4803d367d5..b3552633a642 100644--- a/services/mcp/tests/tools/logsAlerts.integration.test.ts+++ b/services/mcp/tests/tools/logsAlerts.integration.test.ts@@ -11,7 +11,6 @@ import {setActiveProjectAndOrg,validateEnvironmentVariables,} from '@/shared/test-utils'-import { GENERATED_TOOLS as FF_TOOLS } from '@/tools/generated/feature_flags'import { GENERATED_TOOLS } from '@/tools/generated/logs'import type { Context } from '@/tools/types'@@ -41,34 +40,6 @@ describe('Logs Alerts', { concurrent: false }, () => {const client = createTestClient()context = createTestContext(client)await setActiveProjectAndOrg(context, TEST_PROJECT_ID!, TEST_ORG_ID!)-- // Ensure the logs-alerting feature flag is active — the API is gated behind it- const listFlags = FF_TOOLS['feature-flag-get-all']!()- const updateFlag = FF_TOOLS['update-feature-flag']!()- const createFlag = FF_TOOLS['create-feature-flag']!()-- const flagsResult = await listFlags.handler(context, { search: 'logs-alerting' })- const flags = (flagsResult as any).results ?? []- const flag = flags.find((f: any) => f.key === 'logs-alerting')- // eslint-disable-next-line no-console -- Intentionally preserved for debugging feature flag state in integration test- console.log('flag', flag)-- if (flag && !flag.active) {- const updateResult = await updateFlag.handler(context, { id: flag.id, active: true })- // eslint-disable-next-line no-console -- Preserve output for test visibility- console.log('updateResult', updateResult)- } else if (!flag) {- const createResult = await createFlag.handler(context, {- key: 'logs-alerting',- name: 'Logs alerting',- active: true,- filters: {- groups: [{ properties: [], rollout_percentage: 100 }],- },- })- // eslint-disable-next-line no-console -- Preserve output for test visibility- console.log('createResult', createResult)- }})afterEach(async () => {diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-create.jsonnew file mode 100644index 000000000000..364ba74b9832--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-create.json@@ -0,0 +1,2307 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "cooldown_minutes": {+ "default": 0,+ "description": "Minimum minutes between repeated notifications after the alert fires. 0 means no cooldown.",+ "minimum": 0,+ "type": "number"+ },+ "datapoints_to_alarm": {+ "default": 1,+ "description": "How many periods within the evaluation window must breach the threshold to fire (N in N-of-M).",+ "maximum": 10,+ "minimum": 1,+ "type": "number"+ },+ "enabled": {+ "default": true,+ "description": "Whether the alert is actively being evaluated. Disabling resets the state to not_firing.",+ "type": "boolean"+ },+ "evaluation_periods": {+ "default": 1,+ "description": "Total number of check periods in the sliding evaluation window for firing (M in N-of-M).",+ "maximum": 10,+ "minimum": 1,+ "type": "number"+ },+ "filters": {+ "description": "Filter criteria — subset of LogsViewerFilters. Must contain at least one of: severityLevels (list of severity strings), serviceNames (list of service name strings), or filterGroup (property filter group object). May be empty on draft alerts (enabled=false).",+ "properties": {+ "filterGroup": {+ "anyOf": [+ {+ "properties": {+ "type": {+ "enum": ["AND", "OR"],+ "type": "string"+ },+ "values": {+ "items": {+ "properties": {+ "type": {+ "enum": ["AND", "OR"],+ "type": "string"+ },+ "values": {+ "items": {+ "anyOf": [+ {},+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "anyOf": [+ {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "default": "exact"+ },+ "type": {+ "const": "event",+ "default": "event",+ "description": "Event properties",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "person",+ "default": "person",+ "description": "Person properties",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "person_metadata",+ "default": "person_metadata",+ "description": "Top-level columns on the persons table (e.g. created_at), not properties JSON",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "enum": ["tag_name", "text", "href", "selector"],+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "element",+ "default": "element",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "event_metadata",+ "default": "event_metadata",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "session",+ "default": "session",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "cohort_name": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "key": {+ "const": "id",+ "default": "id",+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "anyOf": [+ {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "default": "in"+ },+ "type": {+ "const": "cohort",+ "default": "cohort",+ "type": "string"+ },+ "value": {+ "type": "number"+ }+ },+ "required": ["value"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "anyOf": [+ {+ "enum": [+ "duration",+ "active_seconds",+ "inactive_seconds"+ ],+ "type": "string"+ },+ {+ "type": "string"+ }+ ]+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "recording",+ "default": "recording",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "log_entry",+ "default": "log_entry",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "group_key_names": {+ "anyOf": [+ {+ "additionalProperties": {+ "type": "string"+ },+ "propertyNames": {+ "type": "string"+ },+ "type": "object"+ },+ {+ "type": "null"+ }+ ]+ },+ "group_type_index": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]+ },+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "group",+ "default": "group",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "feature",+ "default": "feature",+ "description": "Event property with \"$feature/\" prepended",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "description": "The key should be the flag ID",+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "const": "flag_evaluates_to",+ "default": "flag_evaluates_to",+ "description": "Only flag_evaluates_to operator is allowed for flag dependencies",+ "type": "string"+ },+ "type": {+ "const": "flag",+ "default": "flag",+ "description": "Feature flag dependency",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "string"+ }+ ],+ "description": "The value can be true, false, or a variant name"+ }+ },+ "required": ["key", "value"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "type": {+ "const": "hogql",+ "default": "hogql",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key"],+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "const": "empty",+ "default": "empty",+ "type": "string"+ }+ },+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "data_warehouse",+ "default": "data_warehouse",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "data_warehouse_person_property",+ "default": "data_warehouse_person_property",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "error_tracking_issue",+ "default": "error_tracking_issue",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "enum": [+ "log",+ "log_attribute",+ "log_resource_attribute"+ ],+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator", "type"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "metric_attribute",+ "default": "metric_attribute",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "enum": [+ "span",+ "span_attribute",+ "span_resource_attribute"+ ],+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator", "type"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "revenue_analytics",+ "default": "revenue_analytics",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "account_custom_property",+ "default": "account_custom_property",+ "description": "Customer analytics account custom property — the key is the property definition id",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "workflow_variable",+ "default": "workflow_variable",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ }+ ]+ },+ "type": "array"+ }+ },+ "required": ["type", "values"],+ "type": "object"+ },+ "type": "array"+ }+ },+ "required": ["type", "values"],+ "type": "object"+ },+ {+ "type": "null"+ }+ ]+ },+ "serviceNames": {+ "anyOf": [+ {+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ {+ "type": "null"+ }+ ]+ },+ "severityLevels": {+ "anyOf": [+ {+ "items": {+ "enum": ["trace", "debug", "info", "warn", "error", "fatal"],+ "type": "string"+ },+ "type": "array"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "name": {+ "description": "Human-readable name for this alert. Defaults to 'Untitled alert' on create when omitted.",+ "maxLength": 255,+ "type": "string"+ },+ "schedule_restriction": {+ "anyOf": [+ {+ "properties": {+ "blocked_windows": {+ "description": "Blocked local time windows when the alert must not run. Overlapping or identical windows are merged when saved. At most five windows before normalization; empty array clears quiet hours.",+ "items": {+ "properties": {+ "end": {+ "description": "End time HH:MM (24-hour). Exclusive (half-open interval). Each window must span ≥ 30 minutes locally.",+ "type": "string"+ },+ "start": {+ "description": "Start time HH:MM (24-hour, project timezone). Inclusive. Each window must span ≥ 30 minutes on the local daily timeline (half-open [start, end)).",+ "type": "string"+ }+ },+ "required": ["start", "end"],+ "type": "object"+ },+ "type": "array"+ }+ },+ "required": ["blocked_windows"],+ "type": "object"+ },+ {+ "type": "null"+ }+ ],+ "description": "Blocked local time windows when the alert must not run. Times use the project timezone. Null disables quiet hours."+ },+ "snooze_until": {+ "anyOf": [+ {+ "format": "date-time",+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "description": "ISO 8601 timestamp until which the alert is snoozed. Set to null to unsnooze."+ },+ "threshold_count": {+ "default": 100,+ "description": "Number of matching log entries that constitutes a threshold breach within the evaluation window. Defaults to 100. Use 0 with the 'above' operator to fire on any matching log.",+ "minimum": 0,+ "type": "number"+ },+ "threshold_operator": {+ "default": "above",+ "description": "Whether the alert fires when the count is above or below the threshold.\n\n* `above` - Above\n* `below` - Below",+ "enum": ["above", "below"],+ "type": "string"+ },+ "window_minutes": {+ "default": 5,+ "description": "Time window in minutes over which log entries are counted. Allowed values: 5, 10, 15, 30, 60.",+ "type": "number"+ }+ },+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-destinations-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-destinations-create.jsonnew file mode 100644index 000000000000..238878f23980--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-destinations-create.json@@ -0,0 +1,33 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "id": {+ "description": "A UUID string identifying this logs alert configuration.",+ "type": "string"+ },+ "slack_channel_id": {+ "description": "Slack channel ID. Required when type is slack.",+ "type": "string"+ },+ "slack_channel_name": {+ "description": "Optional Slack channel name used for display.",+ "type": "string"+ },+ "slack_workspace_id": {+ "description": "Slack workspace integration ID. Required when type is slack.",+ "type": "number"+ },+ "type": {+ "description": "Destination type. Use slack, webhook, or teams. Slack requires slack_workspace_id and slack_channel_id. Webhook and teams require webhook_url.",+ "enum": ["slack", "webhook", "teams"],+ "type": "string"+ },+ "webhook_url": {+ "description": "Required when type is webhook or teams.",+ "format": "uri",+ "type": "string"+ }+ },+ "required": ["id", "type"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-destinations-delete-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-destinations-delete-create.jsonnew file mode 100644index 000000000000..0b0c28ea9454--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-destinations-delete-create.json@@ -0,0 +1,20 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "hog_function_ids": {+ "description": "HogFunction IDs to delete as one atomic destination group.",+ "items": {+ "type": "string"+ },+ "maxItems": 4,+ "minItems": 1,+ "type": "array"+ },+ "id": {+ "description": "A UUID string identifying this logs alert configuration.",+ "type": "string"+ }+ },+ "required": ["id", "hog_function_ids"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-destroy.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-destroy.jsonnew file mode 100644index 000000000000..6f211ccbedb3--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-destroy.json@@ -0,0 +1,11 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "id": {+ "description": "A UUID string identifying this logs alert configuration.",+ "type": "string"+ }+ },+ "required": ["id"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-events-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-events-list.jsonnew file mode 100644index 000000000000..a9c2722e004d--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-events-list.json@@ -0,0 +1,19 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "id": {+ "description": "A UUID string identifying this logs alert configuration.",+ "type": "string"+ },+ "limit": {+ "description": "Number of results to return per page.",+ "type": "number"+ },+ "offset": {+ "description": "The initial index from which to return the results.",+ "type": "number"+ }+ },+ "required": ["id"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-list.jsonnew file mode 100644index 000000000000..99fab871e033--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-list.json@@ -0,0 +1,18 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "created_by": {+ "description": "Only return log alerts created by the user with this UUID.",+ "type": "string"+ },+ "limit": {+ "description": "Number of results to return per page.",+ "type": "number"+ },+ "offset": {+ "description": "The initial index from which to return the results.",+ "type": "number"+ }+ },+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-partial-update.jsonnew file mode 100644index 000000000000..38ac4225e724--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-partial-update.json@@ -0,0 +1,2305 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "cooldown_minutes": {+ "description": "Minimum minutes between repeated notifications after the alert fires. 0 means no cooldown.",+ "minimum": 0,+ "type": "number"+ },+ "datapoints_to_alarm": {+ "description": "How many periods within the evaluation window must breach the threshold to fire (N in N-of-M).",+ "maximum": 10,+ "minimum": 1,+ "type": "number"+ },+ "enabled": {+ "description": "Whether the alert is actively being evaluated. Disabling resets the state to not_firing.",+ "type": "boolean"+ },+ "evaluation_periods": {+ "description": "Total number of check periods in the sliding evaluation window for firing (M in N-of-M).",+ "maximum": 10,+ "minimum": 1,+ "type": "number"+ },+ "filters": {+ "description": "Filter criteria — subset of LogsViewerFilters. Must contain at least one of: severityLevels (list of severity strings), serviceNames (list of service name strings), or filterGroup (property filter group object). May be empty on draft alerts (enabled=false).",+ "properties": {+ "filterGroup": {+ "anyOf": [+ {+ "properties": {+ "type": {+ "enum": ["AND", "OR"],+ "type": "string"+ },+ "values": {+ "items": {+ "properties": {+ "type": {+ "enum": ["AND", "OR"],+ "type": "string"+ },+ "values": {+ "items": {+ "anyOf": [+ {},+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "anyOf": [+ {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "default": "exact"+ },+ "type": {+ "const": "event",+ "default": "event",+ "description": "Event properties",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "person",+ "default": "person",+ "description": "Person properties",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "person_metadata",+ "default": "person_metadata",+ "description": "Top-level columns on the persons table (e.g. created_at), not properties JSON",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "enum": ["tag_name", "text", "href", "selector"],+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "element",+ "default": "element",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "event_metadata",+ "default": "event_metadata",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "session",+ "default": "session",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "cohort_name": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "key": {+ "const": "id",+ "default": "id",+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "anyOf": [+ {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "default": "in"+ },+ "type": {+ "const": "cohort",+ "default": "cohort",+ "type": "string"+ },+ "value": {+ "type": "number"+ }+ },+ "required": ["value"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "anyOf": [+ {+ "enum": [+ "duration",+ "active_seconds",+ "inactive_seconds"+ ],+ "type": "string"+ },+ {+ "type": "string"+ }+ ]+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "recording",+ "default": "recording",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "log_entry",+ "default": "log_entry",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "group_key_names": {+ "anyOf": [+ {+ "additionalProperties": {+ "type": "string"+ },+ "propertyNames": {+ "type": "string"+ },+ "type": "object"+ },+ {+ "type": "null"+ }+ ]+ },+ "group_type_index": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]+ },+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "group",+ "default": "group",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "feature",+ "default": "feature",+ "description": "Event property with \"$feature/\" prepended",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "description": "The key should be the flag ID",+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "const": "flag_evaluates_to",+ "default": "flag_evaluates_to",+ "description": "Only flag_evaluates_to operator is allowed for flag dependencies",+ "type": "string"+ },+ "type": {+ "const": "flag",+ "default": "flag",+ "description": "Feature flag dependency",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "string"+ }+ ],+ "description": "The value can be true, false, or a variant name"+ }+ },+ "required": ["key", "value"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "type": {+ "const": "hogql",+ "default": "hogql",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key"],+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "const": "empty",+ "default": "empty",+ "type": "string"+ }+ },+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "data_warehouse",+ "default": "data_warehouse",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "data_warehouse_person_property",+ "default": "data_warehouse_person_property",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "error_tracking_issue",+ "default": "error_tracking_issue",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "enum": [+ "log",+ "log_attribute",+ "log_resource_attribute"+ ],+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator", "type"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "metric_attribute",+ "default": "metric_attribute",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "enum": [+ "span",+ "span_attribute",+ "span_resource_attribute"+ ],+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator", "type"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "revenue_analytics",+ "default": "revenue_analytics",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "account_custom_property",+ "default": "account_custom_property",+ "description": "Customer analytics account custom property — the key is the property definition id",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "workflow_variable",+ "default": "workflow_variable",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ }+ ]+ },+ "type": "array"+ }+ },+ "required": ["type", "values"],+ "type": "object"+ },+ "type": "array"+ }+ },+ "required": ["type", "values"],+ "type": "object"+ },+ {+ "type": "null"+ }+ ]+ },+ "serviceNames": {+ "anyOf": [+ {+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ {+ "type": "null"+ }+ ]+ },+ "severityLevels": {+ "anyOf": [+ {+ "items": {+ "enum": ["trace", "debug", "info", "warn", "error", "fatal"],+ "type": "string"+ },+ "type": "array"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "id": {+ "description": "A UUID string identifying this logs alert configuration.",+ "type": "string"+ },+ "name": {+ "description": "Human-readable name for this alert. Defaults to 'Untitled alert' on create when omitted.",+ "maxLength": 255,+ "type": "string"+ },+ "schedule_restriction": {+ "anyOf": [+ {+ "properties": {+ "blocked_windows": {+ "description": "Blocked local time windows when the alert must not run. Overlapping or identical windows are merged when saved. At most five windows before normalization; empty array clears quiet hours.",+ "items": {+ "properties": {+ "end": {+ "description": "End time HH:MM (24-hour). Exclusive (half-open interval). Each window must span ≥ 30 minutes locally.",+ "type": "string"+ },+ "start": {+ "description": "Start time HH:MM (24-hour, project timezone). Inclusive. Each window must span ≥ 30 minutes on the local daily timeline (half-open [start, end)).",+ "type": "string"+ }+ },+ "required": ["start", "end"],+ "type": "object"+ },+ "type": "array"+ }+ },+ "required": ["blocked_windows"],+ "type": "object"+ },+ {+ "type": "null"+ }+ ],+ "description": "Blocked local time windows when the alert must not run. Times use the project timezone. Null disables quiet hours."+ },+ "snooze_until": {+ "anyOf": [+ {+ "format": "date-time",+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "description": "ISO 8601 timestamp until which the alert is snoozed. Set to null to unsnooze."+ },+ "threshold_count": {+ "description": "Number of matching log entries that constitutes a threshold breach within the evaluation window. Defaults to 100. Use 0 with the 'above' operator to fire on any matching log.",+ "minimum": 0,+ "type": "number"+ },+ "threshold_operator": {+ "description": "Whether the alert fires when the count is above or below the threshold.\n\n* `above` - Above\n* `below` - Below",+ "enum": ["above", "below"],+ "type": "string"+ },+ "window_minutes": {+ "description": "Time window in minutes over which log entries are counted. Allowed values: 5, 10, 15, 30, 60.",+ "type": "number"+ }+ },+ "required": ["id"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-retrieve.jsonnew file mode 100644index 000000000000..6f211ccbedb3--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-retrieve.json@@ -0,0 +1,11 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "id": {+ "description": "A UUID string identifying this logs alert configuration.",+ "type": "string"+ }+ },+ "required": ["id"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-simulate-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-simulate-create.jsonnew file mode 100644index 000000000000..85272190f529--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-simulate-create.json@@ -0,0 +1,2261 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "check_interval_minutes": {+ "default": 5,+ "description": "How often the alert is evaluated, in minutes.",+ "maximum": 60,+ "minimum": 1,+ "type": "number"+ },+ "cooldown_minutes": {+ "default": 0,+ "description": "Minutes to wait after firing before sending another notification.",+ "minimum": 0,+ "type": "number"+ },+ "datapoints_to_alarm": {+ "default": 1,+ "description": "How many periods must breach to fire (N in N-of-M).",+ "maximum": 10,+ "minimum": 1,+ "type": "number"+ },+ "date_from": {+ "description": "Relative date string for how far back to simulate (e.g. '-24h', '-7d', '-30d').",+ "type": "string"+ },+ "evaluation_periods": {+ "default": 1,+ "description": "Total check periods in the N-of-M evaluation window (M).",+ "maximum": 10,+ "minimum": 1,+ "type": "number"+ },+ "filters": {+ "description": "Filter criteria — same format as LogsAlertConfiguration.filters.",+ "properties": {+ "filterGroup": {+ "anyOf": [+ {+ "properties": {+ "type": {+ "enum": ["AND", "OR"],+ "type": "string"+ },+ "values": {+ "items": {+ "properties": {+ "type": {+ "enum": ["AND", "OR"],+ "type": "string"+ },+ "values": {+ "items": {+ "anyOf": [+ {},+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "anyOf": [+ {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "default": "exact"+ },+ "type": {+ "const": "event",+ "default": "event",+ "description": "Event properties",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "person",+ "default": "person",+ "description": "Person properties",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "person_metadata",+ "default": "person_metadata",+ "description": "Top-level columns on the persons table (e.g. created_at), not properties JSON",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "enum": ["tag_name", "text", "href", "selector"],+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "element",+ "default": "element",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "event_metadata",+ "default": "event_metadata",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "session",+ "default": "session",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "cohort_name": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "key": {+ "const": "id",+ "default": "id",+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "anyOf": [+ {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "default": "in"+ },+ "type": {+ "const": "cohort",+ "default": "cohort",+ "type": "string"+ },+ "value": {+ "type": "number"+ }+ },+ "required": ["value"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "anyOf": [+ {+ "enum": [+ "duration",+ "active_seconds",+ "inactive_seconds"+ ],+ "type": "string"+ },+ {+ "type": "string"+ }+ ]+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "recording",+ "default": "recording",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "log_entry",+ "default": "log_entry",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "group_key_names": {+ "anyOf": [+ {+ "additionalProperties": {+ "type": "string"+ },+ "propertyNames": {+ "type": "string"+ },+ "type": "object"+ },+ {+ "type": "null"+ }+ ]+ },+ "group_type_index": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]+ },+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "group",+ "default": "group",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "feature",+ "default": "feature",+ "description": "Event property with \"$feature/\" prepended",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "description": "The key should be the flag ID",+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "const": "flag_evaluates_to",+ "default": "flag_evaluates_to",+ "description": "Only flag_evaluates_to operator is allowed for flag dependencies",+ "type": "string"+ },+ "type": {+ "const": "flag",+ "default": "flag",+ "description": "Feature flag dependency",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "string"+ }+ ],+ "description": "The value can be true, false, or a variant name"+ }+ },+ "required": ["key", "value"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "type": {+ "const": "hogql",+ "default": "hogql",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key"],+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "const": "empty",+ "default": "empty",+ "type": "string"+ }+ },+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "data_warehouse",+ "default": "data_warehouse",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "data_warehouse_person_property",+ "default": "data_warehouse_person_property",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "error_tracking_issue",+ "default": "error_tracking_issue",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "enum": [+ "log",+ "log_attribute",+ "log_resource_attribute"+ ],+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator", "type"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "metric_attribute",+ "default": "metric_attribute",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "enum": [+ "span",+ "span_attribute",+ "span_resource_attribute"+ ],+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator", "type"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "revenue_analytics",+ "default": "revenue_analytics",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "account_custom_property",+ "default": "account_custom_property",+ "description": "Customer analytics account custom property — the key is the property definition id",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ },+ {+ "properties": {+ "key": {+ "type": "string"+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "operator": {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_before",+ "is_date_after",+ "between",+ "not_between",+ "min",+ "max",+ "in",+ "not_in",+ "is_cleaned_path_exact",+ "flag_evaluates_to",+ "semver_eq",+ "semver_neq",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "icontains_multi",+ "not_icontains_multi"+ ],+ "type": "string"+ },+ "type": {+ "const": "workflow_variable",+ "default": "workflow_variable",+ "type": "string"+ },+ "value": {+ "anyOf": [+ {+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ },+ "type": "array"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": ["key", "operator"],+ "type": "object"+ }+ ]+ },+ "type": "array"+ }+ },+ "required": ["type", "values"],+ "type": "object"+ },+ "type": "array"+ }+ },+ "required": ["type", "values"],+ "type": "object"+ },+ {+ "type": "null"+ }+ ]+ },+ "serviceNames": {+ "anyOf": [+ {+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ {+ "type": "null"+ }+ ]+ },+ "severityLevels": {+ "anyOf": [+ {+ "items": {+ "enum": ["trace", "debug", "info", "warn", "error", "fatal"],+ "type": "string"+ },+ "type": "array"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "threshold_count": {+ "description": "Threshold count to evaluate against.",+ "minimum": 0,+ "type": "number"+ },+ "threshold_operator": {+ "description": "Whether the alert fires when the count is above or below the threshold.\n\n* `above` - Above\n* `below` - Below",+ "enum": ["above", "below"],+ "type": "string"+ },+ "window_minutes": {+ "description": "Window size in minutes — determines bucket interval.",+ "type": "number"+ }+ },+ "required": ["filters", "threshold_count", "threshold_operator", "window_minutes", "date_from"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/tool-filtering.test.ts b/services/mcp/tests/unit/tool-filtering.test.tsindex cc8466ae9d0e..c152ed7d7a95 100644--- a/services/mcp/tests/unit/tool-filtering.test.ts+++ b/services/mcp/tests/unit/tool-filtering.test.ts@@ -849,7 +849,6 @@ describe('Tool Filtering - Feature Flags', () => {const flags = getRequiredFeatureFlags()expect(flags).toEqual(expect.arrayContaining([- 'logs-alerting','logs-anomalies','llm-analytics-datasets','tracing',@@ -883,7 +882,7 @@ describe('Tool Filtering - Feature Flags', () => {'data-quality-checks',]))- expect(flags).toHaveLength(32)+ expect(flags).toHaveLength(31)})it('every loops tool is gated on the loops flag', () => {