Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(mcp): enable error-tracking-suppression-rules-update tool (#58272)

Catalin Irimie6de1a80468c8
diff --git a/products/error_tracking/backend/api/suppression_rules.py b/products/error_tracking/backend/api/suppression_rules.py
index 2e6ed3bdbe6a..8cd9ae1f9c07 100644
--- a/products/error_tracking/backend/api/suppression_rules.py
+++ b/products/error_tracking/backend/api/suppression_rules.py
@@ -61,7 +61,30 @@ class ErrorTrackingSuppressionRuleCreateRequestSerializer(serializers.Serializer
default=1.0,
min_value=0.0,
max_value=1.0,
- help_text="Fraction of matching events to suppress. Use `1.0` to suppress all matching events.",
+ help_text=(
+ "Probability that a matching event is dropped. `1.0` drops every match (default); `0.0` drops none; "
+ "`0.5` drops half. Higher values suppress more."
+ ),
+ )
+
+
+class ErrorTrackingSuppressionRuleUpdateRequestSerializer(serializers.Serializer):
+ filters = ErrorTrackingSuppressionRuleFiltersField(
+ required=False,
+ help_text=(
+ "Property-group filters that define which incoming error events should be suppressed. "
+ "Provide an empty `values` array to convert the rule into a match-all suppression. "
+ "Omit to preserve the existing filters."
+ ),
+ )
+ sampling_rate = serializers.FloatField(
+ required=False,
+ min_value=0.0,
+ max_value=1.0,
+ help_text=(
+ "Probability that a matching event is dropped. `1.0` drops every match; `0.0` drops none; "
+ "`0.5` drops half. Higher values suppress more. Omit to preserve the existing rate."
+ ),
)
@@ -74,30 +97,20 @@ class ErrorTrackingSuppressionRuleViewSet(TeamAndOrgViewSetMixin, viewsets.Model
def safely_get_queryset(self, queryset):
return queryset.filter(team_id=self.team.id)
- @override
- def update(self, request, *args, **kwargs) -> Response:
+ def _apply_rule_update(self, request: ValidatedRequest) -> Response:
suppression_rule = self.get_object()
- json_filters = request.data.get("filters")
+ json_filters = request.validated_data.get("filters")
if json_filters is not None:
if _has_filter_values(json_filters):
- try:
- parsed_filters = PropertyGroupFilterValue(**json_filters)
- except (PydanticValidationError, TypeError):
- return Response({"error": "Invalid filters"}, status=status.HTTP_400_BAD_REQUEST)
+ parsed_filters = PropertyGroupFilterValue(**json_filters)
suppression_rule.filters = json_filters
suppression_rule.bytecode = generate_byte_code(self.team, parsed_filters)
else:
suppression_rule.filters = json_filters
suppression_rule.bytecode = generate_match_all_bytecode()
- if "sampling_rate" in request.data:
- sampling_rate = request.data["sampling_rate"]
- if not isinstance(sampling_rate, (int, float)) or not (0.0 <= sampling_rate <= 1.0):
- return Response(
- {"error": "sampling_rate must be a number between 0 and 1"},
- status=status.HTTP_400_BAD_REQUEST,
- )
- suppression_rule.sampling_rate = sampling_rate
+ if "sampling_rate" in request.validated_data:
+ suppression_rule.sampling_rate = request.validated_data["sampling_rate"]
suppression_rule.disabled_data = None
suppression_rule.save()
@@ -109,8 +122,20 @@ class ErrorTrackingSuppressionRuleViewSet(TeamAndOrgViewSetMixin, viewsets.Model
return Response({"ok": True}, status=status.HTTP_204_NO_CONTENT)
@override
- def partial_update(self, request, *args, **kwargs) -> Response:
- return self.update(request, *args, **kwargs)
+ @validated_request(
+ request_serializer=ErrorTrackingSuppressionRuleUpdateRequestSerializer,
+ responses={204: None},
+ )
+ def update(self, request: ValidatedRequest, *args, **kwargs) -> Response:
+ return self._apply_rule_update(request)
+
+ @override
+ @validated_request(
+ request_serializer=ErrorTrackingSuppressionRuleUpdateRequestSerializer,
+ responses={204: None},
+ )
+ def partial_update(self, request: ValidatedRequest, *args, **kwargs) -> Response:
+ return self._apply_rule_update(request)
@override
def destroy(self, request, *args, **kwargs) -> Response:
diff --git a/products/error_tracking/backend/api/test/test_suppression_rules.py b/products/error_tracking/backend/api/test/test_suppression_rules.py
index 708a561ee6e5..e28e27cf2038 100644
--- a/products/error_tracking/backend/api/test/test_suppression_rules.py
+++ b/products/error_tracking/backend/api/test/test_suppression_rules.py
@@ -611,3 +611,71 @@ class TestSuppressionRuleAPI(APIBaseTest):
rule = ErrorTrackingSuppressionRule.objects.get(id=rule_id)
assert rule.sampling_rate == 0.25
+
+ def test_update_rejects_invalid_filters_payload(self) -> None:
+ create_response = self.client.post(
+ self._url(),
+ data={"filters": VALID_FILTERS},
+ format="json",
+ )
+ rule_id = create_response.json()["id"]
+
+ response = self.client.patch(
+ self._url(rule_id),
+ data={"filters": {"type": "NOT_VALID", "values": [{"key": "x"}]}},
+ format="json",
+ )
+
+ assert response.status_code == status.HTTP_400_BAD_REQUEST
+ body = response.json()
+ assert body["type"] == "validation_error"
+ assert body["attr"] == "filters"
+ assert body["detail"] == "Invalid filters payload."
+
+ def test_update_rejects_invalid_sampling_rate(self) -> None:
+ create_response = self.client.post(
+ self._url(),
+ data={"filters": VALID_FILTERS},
+ format="json",
+ )
+ rule_id = create_response.json()["id"]
+
+ response = self.client.patch(
+ self._url(rule_id),
+ data={"sampling_rate": 1.5},
+ format="json",
+ )
+
+ assert response.status_code == status.HTTP_400_BAD_REQUEST
+ body = response.json()
+ assert body["type"] == "validation_error"
+ assert body["attr"] == "sampling_rate"
+
+ def test_update_accepts_frontend_payload_shape_with_extra_fields(self) -> None:
+ create_response = self.client.post(
+ self._url(),
+ data={"filters": VALID_FILTERS, "sampling_rate": 1.0},
+ format="json",
+ )
+ rule_id = create_response.json()["id"]
+ rule = ErrorTrackingSuppressionRule.objects.get(id=rule_id)
+
+ response = self.client.patch(
+ self._url(rule_id),
+ data={
+ "sampling_rate": 0.25,
+ "order_key": 456,
+ "disabled_data": {"reason": "frontend-local-state"},
+ "created_at": rule.created_at.isoformat(),
+ "updated_at": rule.updated_at.isoformat(),
+ },
+ format="json",
+ )
+
+ assert response.status_code == status.HTTP_204_NO_CONTENT
+
+ rule.refresh_from_db()
+ assert rule.sampling_rate == 0.25
+ assert rule.order_key == 0
+ assert rule.disabled_data is None
+ assert rule.filters == VALID_FILTERS
diff --git a/products/error_tracking/frontend/generated/api.schemas.ts b/products/error_tracking/frontend/generated/api.schemas.ts
index 1bc4b100c27c..81ca6d40a863 100644
--- a/products/error_tracking/frontend/generated/api.schemas.ts
+++ b/products/error_tracking/frontend/generated/api.schemas.ts
@@ -1416,7 +1416,29 @@ export interface ErrorTrackingSuppressionRuleCreateRequestApi {
/** Optional property-group filters that define which incoming error events should be suppressed. Omit this field or provide an empty `values` array to create a match-all suppression rule. */
filters?: PropertyGroupFilterValueApi
/**
- * Fraction of matching events to suppress. Use `1.0` to suppress all matching events.
+ * Probability that a matching event is dropped. `1.0` drops every match (default); `0.0` drops none; `0.5` drops half. Higher values suppress more.
+ * @minimum 0
+ * @maximum 1
+ */
+ sampling_rate?: number
+}
+
+export interface ErrorTrackingSuppressionRuleUpdateRequestApi {
+ /** Property-group filters that define which incoming error events should be suppressed. Provide an empty `values` array to convert the rule into a match-all suppression. Omit to preserve the existing filters. */
+ filters?: PropertyGroupFilterValueApi
+ /**
+ * Probability that a matching event is dropped. `1.0` drops every match; `0.0` drops none; `0.5` drops half. Higher values suppress more. Omit to preserve the existing rate.
+ * @minimum 0
+ * @maximum 1
+ */
+ sampling_rate?: number
+}
+
+export interface PatchedErrorTrackingSuppressionRuleUpdateRequestApi {
+ /** Property-group filters that define which incoming error events should be suppressed. Provide an empty `values` array to convert the rule into a match-all suppression. Omit to preserve the existing filters. */
+ filters?: PropertyGroupFilterValueApi
+ /**
+ * Probability that a matching event is dropped. `1.0` drops every match; `0.0` drops none; `0.5` drops half. Higher values suppress more. Omit to preserve the existing rate.
* @minimum 0
* @maximum 1
*/
diff --git a/products/error_tracking/frontend/generated/api.ts b/products/error_tracking/frontend/generated/api.ts
index 66a8c95bd540..d424cba73aab 100644
--- a/products/error_tracking/frontend/generated/api.ts
+++ b/products/error_tracking/frontend/generated/api.ts
@@ -46,6 +46,7 @@ import type {
ErrorTrackingStackFramesListParams,
ErrorTrackingSuppressionRuleApi,
ErrorTrackingSuppressionRuleCreateRequestApi,
+ ErrorTrackingSuppressionRuleUpdateRequestApi,
ErrorTrackingSuppressionRulesListParams,
ErrorTrackingSymbolSetApi,
ErrorTrackingSymbolSetBulkDeleteApi,
@@ -73,6 +74,7 @@ import type {
PatchedErrorTrackingSettingsApi,
PatchedErrorTrackingSpikeDetectionConfigApi,
PatchedErrorTrackingSuppressionRuleApi,
+ PatchedErrorTrackingSuppressionRuleUpdateRequestApi,
_SymbolSetDownloadResponseApi,
} from './api.schemas'
@@ -1193,14 +1195,14 @@ export const getErrorTrackingSuppressionRulesUpdateUrl = (projectId: string, id:
export const errorTrackingSuppressionRulesUpdate = async (
projectId: string,
id: string,
- errorTrackingSuppressionRuleApi: NonReadonly<ErrorTrackingSuppressionRuleApi>,
+ errorTrackingSuppressionRuleUpdateRequestApi?: ErrorTrackingSuppressionRuleUpdateRequestApi,
options?: RequestInit
-): Promise<ErrorTrackingSuppressionRuleApi> => {
- return apiMutator<ErrorTrackingSuppressionRuleApi>(getErrorTrackingSuppressionRulesUpdateUrl(projectId, id), {
+): Promise<void> => {
+ return apiMutator<void>(getErrorTrackingSuppressionRulesUpdateUrl(projectId, id), {
...options,
method: 'PUT',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(errorTrackingSuppressionRuleApi),
+ body: JSON.stringify(errorTrackingSuppressionRuleUpdateRequestApi),
})
}
@@ -1211,18 +1213,15 @@ export const getErrorTrackingSuppressionRulesPartialUpdateUrl = (projectId: stri
export const errorTrackingSuppressionRulesPartialUpdate = async (
projectId: string,
id: string,
- patchedErrorTrackingSuppressionRuleApi?: NonReadonly<PatchedErrorTrackingSuppressionRuleApi>,
+ patchedErrorTrackingSuppressionRuleUpdateRequestApi?: PatchedErrorTrackingSuppressionRuleUpdateRequestApi,
options?: RequestInit
-): Promise<ErrorTrackingSuppressionRuleApi> => {
- return apiMutator<ErrorTrackingSuppressionRuleApi>(
- getErrorTrackingSuppressionRulesPartialUpdateUrl(projectId, id),
- {
- ...options,
- method: 'PATCH',
- headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(patchedErrorTrackingSuppressionRuleApi),
- }
- )
+): Promise<void> => {
+ return apiMutator<void>(getErrorTrackingSuppressionRulesPartialUpdateUrl(projectId, id), {
+ ...options,
+ method: 'PATCH',
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
+ body: JSON.stringify(patchedErrorTrackingSuppressionRuleUpdateRequestApi),
+ })
}
export const getErrorTrackingSuppressionRulesDestroyUrl = (projectId: string, id: string) => {
diff --git a/products/error_tracking/frontend/generated/api.zod.ts b/products/error_tracking/frontend/generated/api.zod.ts
index d87154800e82..ecf85ed9b364 100644
--- a/products/error_tracking/frontend/generated/api.zod.ts
+++ b/products/error_tracking/frontend/generated/api.zod.ts
@@ -883,34 +883,51 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
.min(errorTrackingSuppressionRulesCreateBodySamplingRateMin)
.max(errorTrackingSuppressionRulesCreateBodySamplingRateMax)
.default(errorTrackingSuppressionRulesCreateBodySamplingRateDefault)
- .describe('Fraction of matching events to suppress. Use `1.0` to suppress all matching events.'),
+ .describe(
+ 'Probability that a matching event is dropped. `1.0` drops every match (default); `0.0` drops none; `0.5` drops half. Higher values suppress more.'
+ ),
})
-export const errorTrackingSuppressionRulesUpdateBodyOrderKeyMin = -2147483648
-export const errorTrackingSuppressionRulesUpdateBodyOrderKeyMax = 2147483647
+export const errorTrackingSuppressionRulesUpdateBodySamplingRateMin = 0
+export const errorTrackingSuppressionRulesUpdateBodySamplingRateMax = 1
export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.object({
- filters: zod.unknown(),
- order_key: zod
+ filters: zod
+ .record(zod.string(), zod.unknown())
+ .describe('Deep\/recursive schema (opaque in Zod — use TypeScript types for full shape)')
+ .optional()
+ .describe(
+ 'Property-group filters that define which incoming error events should be suppressed. Provide an empty `values` array to convert the rule into a match-all suppression. Omit to preserve the existing filters.'
+ ),
+ sampling_rate: zod
.number()
- .min(errorTrackingSuppressionRulesUpdateBodyOrderKeyMin)
- .max(errorTrackingSuppressionRulesUpdateBodyOrderKeyMax),
- disabled_data: zod.unknown().optional(),
- sampling_rate: zod.number().optional(),
+ .min(errorTrackingSuppressionRulesUpdateBodySamplingRateMin)
+ .max(errorTrackingSuppressionRulesUpdateBodySamplingRateMax)
+ .optional()
+ .describe(
+ 'Probability that a matching event is dropped. `1.0` drops every match; `0.0` drops none; `0.5` drops half. Higher values suppress more. Omit to preserve the existing rate.'
+ ),
})
-export const errorTrackingSuppressionRulesPartialUpdateBodyOrderKeyMin = -2147483648
-export const errorTrackingSuppressionRulesPartialUpdateBodyOrderKeyMax = 2147483647
+export const errorTrackingSuppressionRulesPartialUpdateBodySamplingRateMin = 0
+export const errorTrackingSuppressionRulesPartialUpdateBodySamplingRateMax = 1
export const ErrorTrackingSuppressionRulesPartialUpdateBody = /* @__PURE__ */ zod.object({
- filters: zod.unknown().optional(),
- order_key: zod
+ filters: zod
+ .record(zod.string(), zod.unknown())
+ .describe('Deep\/recursive schema (opaque in Zod — use TypeScript types for full shape)')
+ .optional()
+ .describe(
+ 'Property-group filters that define which incoming error events should be suppressed. Provide an empty `values` array to convert the rule into a match-all suppression. Omit to preserve the existing filters.'
+ ),
+ sampling_rate: zod
.number()
- .min(errorTrackingSuppressionRulesPartialUpdateBodyOrderKeyMin)
- .max(errorTrackingSuppressionRulesPartialUpdateBodyOrderKeyMax)
- .optional(),
- disabled_data: zod.unknown().optional(),
- sampling_rate: zod.number().optional(),
+ .min(errorTrackingSuppressionRulesPartialUpdateBodySamplingRateMin)
+ .max(errorTrackingSuppressionRulesPartialUpdateBodySamplingRateMax)
+ .optional()
+ .describe(
+ 'Probability that a matching event is dropped. `1.0` drops every match; `0.0` drops none; `0.5` drops half. Higher values suppress more. Omit to preserve the existing rate.'
+ ),
})
export const errorTrackingSuppressionRulesReorderPartialUpdateBodyOrderKeyMin = -2147483648
diff --git a/products/error_tracking/mcp/tools.yaml b/products/error_tracking/mcp/tools.yaml
index 69b755d37823..afe4db925583 100644
--- a/products/error_tracking/mcp/tools.yaml
+++ b/products/error_tracking/mcp/tools.yaml
@@ -317,7 +317,7 @@ tools:
- error_tracking:write
annotations:
readOnly: false
- destructive: false
+ destructive: true
idempotent: false
title: Create error tracking suppression rule
description: >
@@ -325,9 +325,9 @@ tools:
indefinitely — dropped at ingestion and will not appear as issues until the rule is disabled or deleted.
Scope `filters` tightly to the exact exception type, message, URL, or properties you want gone. Do NOT
create match-all rules (omitting `filters`) or broad rules — they silently swallow unrelated errors and
- cause data loss that is hard to detect after the fact. Prefer `sampling_rate` to dampen noisy issues rather
- than fully suppressing when uncertain. Confirm with the user before creating any rule that could match more
- than one distinct error.
+ cause data loss that is hard to detect after the fact. If unsure, set `sampling_rate` below `1.0` so only a
+ fraction of matches are dropped (e.g. `0.5` drops half) rather than all of them. Confirm with the user
+ before creating any rule that could match more than one distinct error.
error-tracking-suppression-rules-destroy:
operation: error_tracking_suppression_rules_destroy
enabled: false
@@ -355,7 +355,21 @@ tools:
enabled: false
error-tracking-suppression-rules-update:
operation: error_tracking_suppression_rules_update
- enabled: false
+ enabled: true
+ scopes:
+ - error_tracking:write
+ annotations:
+ readOnly: false
+ destructive: true
+ idempotent: true
+ title: Update error tracking suppression rule
+ description: >
+ Update an error tracking suppression rule by ID. Only the fields you include in the request body are
+ applied; omitted fields keep their existing values. Supports updating `filters` and `sampling_rate`.
+ WARNING: broadening `filters` will start dropping additional events at ingestion silently. Keep filters
+ tightly scoped to the exact errors you want gone. Prefer raising `sampling_rate` to dampen volume over
+ widening the match. Confirm with the user before changing a rule's filters in a way that could match more
+ than one distinct error.
error-tracking-symbol-sets-bulk-delete-create:
operation: error_tracking_symbol_sets_bulk_delete_create
enabled: false
diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.json
index a45b83f3b1f4..30ef7c673d75 100644
--- a/services/mcp/schema/generated-tool-definitions.json
+++ b/services/mcp/schema/generated-tool-definitions.json
@@ -1451,7 +1451,7 @@
}
},
"error-tracking-suppression-rules-create": {
- "description": "Create an error tracking suppression rule for the current project. WARNING: matching errors are suppressed indefinitely — dropped at ingestion and will not appear as issues until the rule is disabled or deleted. Scope `filters` tightly to the exact exception type, message, URL, or properties you want gone. Do NOT create match-all rules (omitting `filters`) or broad rules — they silently swallow unrelated errors and cause data loss that is hard to detect after the fact. Prefer `sampling_rate` to dampen noisy issues rather than fully suppressing when uncertain. Confirm with the user before creating any rule that could match more than one distinct error.",
+ "description": "Create an error tracking suppression rule for the current project. WARNING: matching errors are suppressed indefinitely — dropped at ingestion and will not appear as issues until the rule is disabled or deleted. Scope `filters` tightly to the exact exception type, message, URL, or properties you want gone. Do NOT create match-all rules (omitting `filters`) or broad rules — they silently swallow unrelated errors and cause data loss that is hard to detect after the fact. If unsure, set `sampling_rate` below `1.0` so only a fraction of matches are dropped (e.g. `0.5` drops half) rather than all of them. Confirm with the user before creating any rule that could match more than one distinct error.",
"category": "Error tracking",
"feature": "error_tracking",
"summary": "Create error tracking suppression rule",
@@ -1459,7 +1459,7 @@
"required_scopes": ["error_tracking:write"],
"new_mcp": true,
"annotations": {
- "destructiveHint": false,
+ "destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false
@@ -1480,6 +1480,21 @@
"readOnlyHint": true
}
},
+ "error-tracking-suppression-rules-update": {
+ "description": "Update an error tracking suppression rule by ID. Only the fields you include in the request body are applied; omitted fields keep their existing values. Supports updating `filters` and `sampling_rate`. WARNING: broadening `filters` will start dropping additional events at ingestion silently. Keep filters tightly scoped to the exact errors you want gone. Prefer raising `sampling_rate` to dampen volume over widening the match. Confirm with the user before changing a rule's filters in a way that could match more than one distinct error.",
+ "category": "Error tracking",
+ "feature": "error_tracking",
+ "summary": "Update error tracking suppression rule",
+ "title": "Update error tracking suppression rule",
+ "required_scopes": ["error_tracking:write"],
+ "new_mcp": true,
+ "annotations": {
+ "destructiveHint": true,
+ "idempotentHint": true,
+ "openWorldHint": true,
+ "readOnlyHint": false
+ }
+ },
"error-tracking-symbol-sets-download-retrieve": {
"description": "Get a presigned download URL for a source map symbol set by ID. The URL expires after one hour. Use it immediately, and do not echo it back unless the user explicitly asks. If you only have a symbol set reference, call `error-tracking-symbol-sets-list` with the exact `ref` first.",
"category": "Error tracking",
diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.json
index db76287998fd..2500d7babdc6 100644
--- a/services/mcp/schema/tool-definitions-all.json
+++ b/services/mcp/schema/tool-definitions-all.json
@@ -1497,7 +1497,7 @@
}
},
"error-tracking-suppression-rules-create": {
- "description": "Create an error tracking suppression rule for the current project. WARNING: matching errors are suppressed indefinitely — dropped at ingestion and will not appear as issues until the rule is disabled or deleted. Scope `filters` tightly to the exact exception type, message, URL, or properties you want gone. Do NOT create match-all rules (omitting `filters`) or broad rules — they silently swallow unrelated errors and cause data loss that is hard to detect after the fact. Prefer `sampling_rate` to dampen noisy issues rather than fully suppressing when uncertain. Confirm with the user before creating any rule that could match more than one distinct error.",
+ "description": "Create an error tracking suppression rule for the current project. WARNING: matching errors are suppressed indefinitely — dropped at ingestion and will not appear as issues until the rule is disabled or deleted. Scope `filters` tightly to the exact exception type, message, URL, or properties you want gone. Do NOT create match-all rules (omitting `filters`) or broad rules — they silently swallow unrelated errors and cause data loss that is hard to detect after the fact. If unsure, set `sampling_rate` below `1.0` so only a fraction of matches are dropped (e.g. `0.5` drops half) rather than all of them. Confirm with the user before creating any rule that could match more than one distinct error.",
"category": "Error tracking",
"feature": "error_tracking",
"summary": "Create error tracking suppression rule",
@@ -1505,7 +1505,7 @@
"required_scopes": ["error_tracking:write"],
"new_mcp": true,
"annotations": {
- "destructiveHint": false,
+ "destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false
@@ -1526,6 +1526,21 @@
"readOnlyHint": true
}
},
+ "error-tracking-suppression-rules-update": {
+ "description": "Update an error tracking suppression rule by ID. Only the fields you include in the request body are applied; omitted fields keep their existing values. Supports updating `filters` and `sampling_rate`. WARNING: broadening `filters` will start dropping additional events at ingestion silently. Keep filters tightly scoped to the exact errors you want gone. Prefer raising `sampling_rate` to dampen volume over widening the match. Confirm with the user before changing a rule's filters in a way that could match more than one distinct error.",
+ "category": "Error tracking",
+ "feature": "error_tracking",
+ "summary": "Update error tracking suppression rule",
+ "title": "Update error tracking suppression rule",
+ "required_scopes": ["error_tracking:write"],
+ "new_mcp": true,
+ "annotations": {
+ "destructiveHint": true,
+ "idempotentHint": true,
+ "openWorldHint": true,
+ "readOnlyHint": false
+ }
+ },
"error-tracking-symbol-sets-download-retrieve": {
"description": "Get a presigned download URL for a source map symbol set by ID. The URL expires after one hour. Use it immediately, and do not echo it back unless the user explicitly asks. If you only have a symbol set reference, call `error-tracking-symbol-sets-list` with the exact `ref` first.",
"category": "Error tracking",
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 8f7f6872443d..327c378186ac 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -14647,7 +14647,18 @@ export namespace Schemas {
/** Optional property-group filters that define which incoming error events should be suppressed. Omit this field or provide an empty `values` array to create a match-all suppression rule. */
filters?: PropertyGroupFilterValue;
/**
- * Fraction of matching events to suppress. Use `1.0` to suppress all matching events.
+ * Probability that a matching event is dropped. `1.0` drops every match (default); `0.0` drops none; `0.5` drops half. Higher values suppress more.
+ * @minimum 0
+ * @maximum 1
+ */
+ sampling_rate?: number;
+ }
+
+ export interface ErrorTrackingSuppressionRuleUpdateRequest {
+ /** Property-group filters that define which incoming error events should be suppressed. Provide an empty `values` array to convert the rule into a match-all suppression. Omit to preserve the existing filters. */
+ filters?: PropertyGroupFilterValue;
+ /**
+ * Probability that a matching event is dropped. `1.0` drops every match; `0.0` drops none; `0.5` drops half. Higher values suppress more. Omit to preserve the existing rate.
* @minimum 0
* @maximum 1
*/
@@ -26964,6 +26975,17 @@ export namespace Schemas {
readonly updated_at?: string;
}
+ export interface PatchedErrorTrackingSuppressionRuleUpdateRequest {
+ /** Property-group filters that define which incoming error events should be suppressed. Provide an empty `values` array to convert the rule into a match-all suppression. Omit to preserve the existing filters. */
+ filters?: PropertyGroupFilterValue;
+ /**
+ * Probability that a matching event is dropped. `1.0` drops every match; `0.0` drops none; `0.5` drops half. Higher values suppress more. Omit to preserve the existing rate.
+ * @minimum 0
+ * @maximum 1
+ */
+ sampling_rate?: number;
+ }
+
/**
* Configuration dict. For 'llm_judge': {prompt}. For 'hog': {source}.
*/
diff --git a/services/mcp/src/generated/error_tracking/api.ts b/services/mcp/src/generated/error_tracking/api.ts
index 75e6d1ee3a77..43d97cd526fd 100644
--- a/services/mcp/src/generated/error_tracking/api.ts
+++ b/services/mcp/src/generated/error_tracking/api.ts
@@ -3,7 +3,7 @@
* MCP service uses these Zod schemas for generated tool handlers.
* To regenerate: hogli build:openapi
*
- * PostHog API - MCP 16 enabled ops
+ * PostHog API - MCP 17 enabled ops
* OpenAPI spec version: 1.0.0
*/
import * as zod from 'zod'
@@ -4862,7 +4862,1080 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
.min(errorTrackingSuppressionRulesCreateBodySamplingRateMin)
.max(errorTrackingSuppressionRulesCreateBodySamplingRateMax)
.default(errorTrackingSuppressionRulesCreateBodySamplingRateDefault)
- .describe('Fraction of matching events to suppress. Use `1.0` to suppress all matching events.'),
+ .describe(
+ 'Probability that a matching event is dropped. `1.0` drops every match (default); `0.0` drops none; `0.5` drops half. Higher values suppress more.'
+ ),
+})
+
+export const ErrorTrackingSuppressionRulesUpdateParams = /* @__PURE__ */ zod.object({
+ id: zod.string().describe('A UUID string identifying this error tracking suppression rule.'),
+ project_id: zod
+ .string()
+ .describe(
+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
+ ),
+})
+
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwoLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwoOperatorDefault = `exact`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwoTypeDefault = `event`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwoValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemThreeLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemThreeTypeDefault = `person`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemThreeValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFourLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFourTypeDefault = `element`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFourValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFiveLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFiveTypeDefault = `event_metadata`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFiveValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSixLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSixTypeDefault = `session`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSixValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenCohortNameDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenKeyDefault = `id`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenOperatorDefault = `in`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenTypeDefault = `cohort`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemEightLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemEightTypeDefault = `recording`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemEightValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemNineLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemNineTypeDefault = `log_entry`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemNineValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnezeroGroupKeyNamesDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnezeroGroupTypeIndexDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnezeroLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnezeroTypeDefault = `group`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnezeroValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOneoneLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOneoneTypeDefault = `feature`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOneoneValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnetwoLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnetwoOperatorDefault = `flag_evaluates_to`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnetwoTypeDefault = `flag`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnethreeLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnethreeTypeDefault = `hogql`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnethreeValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnefourTypeDefault = `empty`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnefiveLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnefiveTypeDefault = `data_warehouse`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnefiveValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesixLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesixTypeDefault = `data_warehouse_person_property`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesixValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesevenLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesevenTypeDefault = `error_tracking_issue`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesevenValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOneeightLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOneeightValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnenineLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnenineValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwozeroLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwozeroTypeDefault = `revenue_analytics`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwozeroValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwooneLabelDefault = null
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwooneTypeDefault = `workflow_variable`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwooneValueDefault = null
+export const errorTrackingSuppressionRulesUpdateBodySamplingRateMin = 0
+export const errorTrackingSuppressionRulesUpdateBodySamplingRateMax = 1
+
+export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.object({
+ filters: zod
+ .object({
+ type: zod.enum(['AND', 'OR']),
+ values: zod.array(
+ zod.union([
+ zod.unknown(),
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwoLabelDefault),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwoOperatorDefault),
+ type: zod
+ .literal('event')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwoTypeDefault)
+ .describe('Event properties'),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwoValueDefault),
+ }),
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemThreeLabelDefault),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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: zod
+ .literal('person')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemThreeTypeDefault)
+ .describe('Person properties'),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemThreeValueDefault),
+ }),
+ zod.object({
+ key: zod.enum(['tag_name', 'text', 'href', 'selector']),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFourLabelDefault),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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: zod
+ .literal('element')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFourTypeDefault),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFourValueDefault),
+ }),
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFiveLabelDefault),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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: zod
+ .literal('event_metadata')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFiveTypeDefault),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFiveValueDefault),
+ }),
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSixLabelDefault),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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: zod
+ .literal('session')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSixTypeDefault),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSixValueDefault),
+ }),
+ zod.object({
+ cohort_name: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenCohortNameDefault),
+ key: zod
+ .literal('id')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenKeyDefault),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenLabelDefault),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenOperatorDefault),
+ type: zod
+ .literal('cohort')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenTypeDefault),
+ value: zod.number(),
+ }),
+ zod.object({
+ key: zod.union([zod.enum(['duration', 'active_seconds', 'inactive_seconds']), zod.string()]),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemEightLabelDefault),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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: zod
+ .literal('recording')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemEightTypeDefault),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemEightValueDefault),
+ }),
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemNineLabelDefault),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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: zod
+ .literal('log_entry')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemNineTypeDefault),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemNineValueDefault),
+ }),
+ zod.object({
+ group_key_names: zod
+ .union([zod.record(zod.string(), zod.string()), zod.null()])
+ .default(
+ errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnezeroGroupKeyNamesDefault
+ ),
+ group_type_index: zod
+ .union([zod.number(), zod.null()])
+ .default(
+ errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnezeroGroupTypeIndexDefault
+ ),
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnezeroLabelDefault),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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: zod
+ .literal('group')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnezeroTypeDefault),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnezeroValueDefault),
+ }),
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOneoneLabelDefault),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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: zod
+ .literal('feature')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOneoneTypeDefault)
+ .describe('Event property with "$feature/" prepended'),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOneoneValueDefault),
+ }),
+ zod.object({
+ key: zod.string().describe('The key should be the flag ID'),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnetwoLabelDefault),
+ operator: zod
+ .literal('flag_evaluates_to')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnetwoOperatorDefault)
+ .describe('Only flag_evaluates_to operator is allowed for flag dependencies'),
+ type: zod
+ .literal('flag')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnetwoTypeDefault)
+ .describe('Feature flag dependency'),
+ value: zod
+ .union([zod.boolean(), zod.string()])
+ .describe('The value can be true, false, or a variant name'),
+ }),
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnethreeLabelDefault),
+ type: zod
+ .literal('hogql')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnethreeTypeDefault),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnethreeValueDefault),
+ }),
+ zod.object({
+ type: zod
+ .literal('empty')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnefourTypeDefault),
+ }),
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnefiveLabelDefault),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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: zod
+ .literal('data_warehouse')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnefiveTypeDefault),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnefiveValueDefault),
+ }),
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesixLabelDefault),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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: zod
+ .literal('data_warehouse_person_property')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesixTypeDefault),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesixValueDefault),
+ }),
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesevenLabelDefault),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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: zod
+ .literal('error_tracking_issue')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesevenTypeDefault),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesevenValueDefault),
+ }),
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOneeightLabelDefault),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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: zod.enum(['log', 'log_attribute', 'log_resource_attribute']),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOneeightValueDefault),
+ }),
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnenineLabelDefault),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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: zod.enum(['span', 'span_attribute', 'span_resource_attribute']),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnenineValueDefault),
+ }),
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwozeroLabelDefault),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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: zod
+ .literal('revenue_analytics')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwozeroTypeDefault),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwozeroValueDefault),
+ }),
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwooneLabelDefault),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ '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: zod
+ .literal('workflow_variable')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwooneTypeDefault),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwooneValueDefault),
+ }),
+ ])
+ ),
+ })
+ .optional()
+ .describe(
+ 'Property-group filters that define which incoming error events should be suppressed. Provide an empty `values` array to convert the rule into a match-all suppression. Omit to preserve the existing filters.'
+ ),
+ sampling_rate: zod
+ .number()
+ .min(errorTrackingSuppressionRulesUpdateBodySamplingRateMin)
+ .max(errorTrackingSuppressionRulesUpdateBodySamplingRateMax)
+ .optional()
+ .describe(
+ 'Probability that a matching event is dropped. `1.0` drops every match; `0.0` drops none; `0.5` drops half. Higher values suppress more. Omit to preserve the existing rate.'
+ ),
})
export const ErrorTrackingSymbolSetsListParams = /* @__PURE__ */ zod.object({
diff --git a/services/mcp/src/tools/generated/error_tracking.ts b/services/mcp/src/tools/generated/error_tracking.ts
index d3f0839782c5..076ec3ccd70d 100644
--- a/services/mcp/src/tools/generated/error_tracking.ts
+++ b/services/mcp/src/tools/generated/error_tracking.ts
@@ -19,6 +19,8 @@ import {
ErrorTrackingQueryIssuesListCreateBody,
ErrorTrackingSuppressionRulesCreateBody,
ErrorTrackingSuppressionRulesListQueryParams,
+ ErrorTrackingSuppressionRulesUpdateBody,
+ ErrorTrackingSuppressionRulesUpdateParams,
ErrorTrackingSymbolSetsDownloadRetrieveParams,
ErrorTrackingSymbolSetsListQueryParams,
ErrorTrackingSymbolSetsRetrieveParams,
@@ -284,6 +286,34 @@ const errorTrackingSuppressionRulesList = (): ToolBase<
},
})
+const ErrorTrackingSuppressionRulesUpdateSchema = ErrorTrackingSuppressionRulesUpdateParams.omit({
+ project_id: true,
+}).extend(ErrorTrackingSuppressionRulesUpdateBody.shape)
+
+const errorTrackingSuppressionRulesUpdate = (): ToolBase<
+ typeof ErrorTrackingSuppressionRulesUpdateSchema,
+ unknown
+> => ({
+ name: 'error-tracking-suppression-rules-update',
+ schema: ErrorTrackingSuppressionRulesUpdateSchema,
+ handler: async (context: Context, params: z.infer<typeof ErrorTrackingSuppressionRulesUpdateSchema>) => {
+ const projectId = await context.stateManager.getProjectId()
+ const body: Record<string, unknown> = {}
+ if (params.filters !== undefined) {
+ body['filters'] = params.filters
+ }
+ if (params.sampling_rate !== undefined) {
+ body['sampling_rate'] = params.sampling_rate
+ }
+ const result = await context.api.request<unknown>({
+ method: 'PUT',
+ path: `/api/environments/${encodeURIComponent(String(projectId))}/error_tracking/suppression_rules/${encodeURIComponent(String(params.id))}/`,
+ body,
+ })
+ return result
+ },
+})
+
const ErrorTrackingSymbolSetsDownloadRetrieveSchema = ErrorTrackingSymbolSetsDownloadRetrieveParams.omit({
project_id: true,
})
@@ -571,6 +601,7 @@ export const GENERATED_TOOLS: Record<string, () => ToolBase<ZodObjectAny>> = {
'error-tracking-issues-split-create': errorTrackingIssuesSplitCreate,
'error-tracking-suppression-rules-create': errorTrackingSuppressionRulesCreate,
'error-tracking-suppression-rules-list': errorTrackingSuppressionRulesList,
+ 'error-tracking-suppression-rules-update': errorTrackingSuppressionRulesUpdate,
'error-tracking-symbol-sets-download-retrieve': errorTrackingSymbolSetsDownloadRetrieve,
'error-tracking-symbol-sets-list': errorTrackingSymbolSetsList,
'error-tracking-symbol-sets-retrieve': errorTrackingSymbolSetsRetrieve,
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-suppression-rules-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-suppression-rules-create.json
index 74a7570b6fa0..9c47f57e8edd 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-suppression-rules-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-suppression-rules-create.json
@@ -1820,7 +1820,7 @@
},
"sampling_rate": {
"default": 1,
- "description": "Fraction of matching events to suppress. Use `1.0` to suppress all matching events.",
+ "description": "Probability that a matching event is dropped. `1.0` drops every match (default); `0.0` drops none; `0.5` drops half. Higher values suppress more.",
"maximum": 1,
"minimum": 0,
"type": "number"
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-suppression-rules-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-suppression-rules-update.json
new file mode 100644
index 000000000000..c530f822623b
--- /dev/null
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-suppression-rules-update.json
@@ -0,0 +1,1834 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "properties": {
+ "filters": {
+ "description": "Property-group filters that define which incoming error events should be suppressed. Provide an empty `values` array to convert the rule into a match-all suppression. Omit to preserve the existing filters.",
+ "properties": {
+ "type": {
+ "enum": ["AND", "OR"],
+ "type": "string"
+ },
+ "values": {
+ "items": {
+ "anyOf": [
+ {},
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "enum": ["tag_name", "text", "href", "selector"],
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "cohort_name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "key": {
+ "const": "id",
+ "default": "id",
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "group_key_names": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "group_type_index": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "description": "The key should be the flag ID",
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": 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"
+ }
+ ],
+ "default": 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"
+ }
+ ],
+ "default": 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"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": ["key", "operator", "type"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": ["key", "operator", "type"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "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"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": ["type", "values"],
+ "type": "object"
+ },
+ "id": {
+ "description": "A UUID string identifying this error tracking suppression rule.",
+ "type": "string"
+ },
+ "sampling_rate": {
+ "description": "Probability that a matching event is dropped. `1.0` drops every match; `0.0` drops none; `0.5` drops half. Higher values suppress more. Omit to preserve the existing rate.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": ["id"],
+ "type": "object"
+}