: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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"cooldown_minutes": {
"description": "Minimum minutes between notifications. The alert notifies once when it starts firing and once when it resolves. It does not notify again on each check while it stays firing. A fire or resolve notification inside the cooldown is skipped. Cooldown does not apply to PagerDuty incidents. 0 means no minimum.",
"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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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_deleted": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Set by the feature flag API when the cohort is deleted or does not exist."
},
"cohort_missing": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Set by the feature flag API when the cohort does not exist, so it cannot be restored."
},
"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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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"
},
{
"properties": {
"event_filters": {
"anyOf": [
{
"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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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": {
"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",
"is_cleaned_path_not_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",
"is_cleaned_path_not_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": {
"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"
}
]
},
"type": "array"
},
{
"type": "null"
}
],
"description": "Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups"
},
"event_type": {
"enum": ["events", "actions"],
"type": "string"
},
"explicit_datetime": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval"
},
"explicit_datetime_to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"key": {
"description": "Event name, or action id when event_type is 'actions'",
"type": "string"
},
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"negation": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators"
},
"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",
"is_cleaned_path_not_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"
}
],
"description": "Count comparison for performed_event_multiple, defaults to exact"
},
"operator_value": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Count threshold for performed_event_multiple"
},
"time_interval": {
"anyOf": [
{
"enum": ["day", "week", "month", "year"],
"type": "string"
},
{
"type": "null"
}
]
},
"time_value": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Relative time window size, paired with time_interval"
},
"type": {
"const": "behavioral",
"default": "behavioral",
"description": "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
"type": "string"
},
"value": {
"enum": [
"performed_event",
"performed_event_multiple"
],
"type": "string"
}
},
"required": ["event_type", "key", "value"],
"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"
},
"grouping": {
"description": "How the alert splits its results into instances. Mode single keeps one instance for the whole alert. Mode by_result_labels with keys service_name and/or severity_text keeps one instance per service or severity, each firing and resolving on its own, and needs threshold_operator above. Only an alert the alerts platform evaluates can group. Any other alert reads as single and rejects a different value. Omit it on update to keep the current grouping. Changing the keys deletes the existing instances and closes their notification threads without a message.",
"properties": {
"keys": {
"description": "Result labels whose values make a group, such as service_name. Empty for mode single, required for by_result_labels. Changing them deletes the existing instances and closes their notification threads without a message.",
"items": {
"type": "string"
},
"type": "array"
},
"max_instances": {
"default": 100,
"description": "Most instances the alert keeps at once. Groups past it are not tracked, and the last message says how many were left out.",
"maximum": 100,
"minimum": 1,
"type": "number"
},
"mode": {
"description": "single keeps one instance for the whole alert. by_result_labels keeps one instance per distinct value of the labels in keys, so each group fires and resolves on its own.\n\n* `single` - Single\n* `by_result_labels` - By result labels",
"enum": ["single", "by_result_labels"],
"type": "string"
},
"on_overflow": {
"default": "degrade_visible",
"description": "What happens to groups past max_instances. degrade_visible names how many were left out.\n\n* `degrade_visible` - Degrade visible",
"enum": ["degrade_visible"],
"type": "string"
}
},
"required": ["mode"],
"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"
}