mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-11 03:06:54 +00:00
feat: stack glob patterns and route severity levels (#1651)
* feat: add stack glob patterns and route severity levels Operators can filter notification routes and mute rules with anchored * globs, and routes can target info, warning, or error. Matching is fail-closed for unsafe stored patterns; write paths keep partial-PUT semantics and ReDoS caps. * test: split mute and routing chip tests to avoid dialog race * fix: move stack pattern client validator out of PatternChips * fix: bound stack glob matching and atomic pattern chip saves
This commit is contained in:
@@ -408,9 +408,10 @@ Create routing rules that direct specific alert types to specific notification c
|
||||
|-------|-------------|
|
||||
| **Name** | Operator-facing label for the rule. |
|
||||
| **Node** | Specific node, or all nodes if left empty. |
|
||||
| **Stack patterns** | Glob patterns to match stack names (multi-select). |
|
||||
| **Stack patterns** | Glob patterns with `*` (for example `prod-*`) matching stack names. |
|
||||
| **Labels** | Apply this rule to stacks that carry any of the selected labels. |
|
||||
| **Categories** | Event categories that trigger the rule (crash, deploy, vulnerability, etc.). |
|
||||
| **Severity** | Info, warning, and/or error levels. Empty matches any severity. |
|
||||
| **Channel type** | `discord`, `slack`, `webhook`, or `apprise`. |
|
||||
| **Channel URL** | The destination endpoint for this rule. |
|
||||
| **Priority** | Sort order among matching rules. Every matching route fires; priority does not stop later matches. |
|
||||
@@ -436,7 +437,7 @@ Create notification suppression rules that mute or drop matching alerts from the
|
||||
|-------|-------------|
|
||||
| **Name** | Operator-facing label for the rule. |
|
||||
| **Node** | Specific node, or all nodes if left empty. |
|
||||
| **Stack patterns** | Stack names to match (multi-select). |
|
||||
| **Stack patterns** | Glob patterns with `*` matching stack names (for example `prod-*`). |
|
||||
| **Labels** | Match stacks that carry any selected label. |
|
||||
| **Categories** | Notification categories to suppress. |
|
||||
| **Severity** | Info, warning, and/or error levels to suppress. |
|
||||
|
||||
Reference in New Issue
Block a user