Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions generated_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -7698,6 +7698,38 @@
"maxItems": 20,
"description": "Project-wide Slack, webhook, and PagerDuty destinations for new and reactivated Pattern alerts. An empty array disables alerts."
},
"pattern_alert_min_severity": {
"type": [
"string",
"null"
],
"enum": [
"high",
"medium",
"low"
],
"description": "Lowest severity that sends Pattern alerts: `low`, `medium`, or `high`. New and reactivated Patterns below it don't send alerts, and raising an active Pattern's severity to it or above sends one. Patterns without a severity count as low. Informational Patterns follow `pattern_alert_informational` instead. Unset or null uses medium."
},
"pattern_alert_informational": {
"type": [
"boolean",
"null"
],
"description": "Whether new and reactivated informational Patterns send alerts, independent of `pattern_alert_min_severity`. Unset or null sends them."
},
"pattern_excluded_categories": {
"type": [
"array",
"null"
],
"items": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"maxItems": 64,
"description": "Patterns rubric categories this project turned off. Patterns doesn't look for or assign them."
},
"session_id_fields": {
"type": [
"array",
Expand Down
17 changes: 17 additions & 0 deletions py/src/braintrust/_generated_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2380,6 +2380,9 @@ class ProjectSettingsPatternAlertDestinations2(TypedDict):
"""


ProjectSettingsPatternExcludedCategory: TypeAlias = str


ProjectSettingsSessionIdField: TypeAlias = str


Expand Down Expand Up @@ -2435,6 +2438,20 @@ class ProjectSettings(TypedDict):
"""
Project-wide Slack, webhook, and PagerDuty destinations for new and reactivated Pattern alerts. An empty array disables alerts.
"""
pattern_alert_min_severity: NotRequired[Literal['high', 'medium', 'low'] | None]
"""
Lowest severity that sends Pattern alerts: `low`, `medium`, or `high`. New and reactivated Patterns below it don't send alerts, and raising an active Pattern's severity to it or above sends one. Patterns without a severity count as low. Informational Patterns follow `pattern_alert_informational` instead. Unset or null uses medium.
"""
pattern_alert_informational: NotRequired[bool | None]
"""
Whether new and reactivated informational Patterns send alerts, independent of `pattern_alert_min_severity`. Unset or null sends them.
"""
pattern_excluded_categories: NotRequired[
Sequence[ProjectSettingsPatternExcludedCategory]
]
"""
Patterns rubric categories this project turned off. Patterns doesn't look for or assign them.
"""
session_id_fields: NotRequired[Sequence[Sequence[ProjectSettingsSessionIdField]] | None]
default_preprocessor: NotRequired[NullableSavedFunctionId | None]

Expand Down
2 changes: 1 addition & 1 deletion py/src/braintrust/generated_types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Auto-generated file (content hash bb32e608f908b891) -- do not modify"""
"""Auto-generated file (content hash 5cd6088ac6015c5f) -- do not modify"""

from ._generated_types import (
Acl,
Expand Down
Loading