Skip to content

Commit f643bae

Browse files
authored
Merge pull request #164 from flashcatcloud/fix/group-equals-card
fix(skills): grouping `equals` needs the `labels.` prefix
2 parents 0984acb + 2549287 commit f643bae

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

skills/flashduty/reference/channel.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,19 @@ Update channel
103103
## Key concepts
104104

105105
- **`--auto-resolve-mode`** enum: `trigger` (timer resets on each new alert trigger) | `update` (timer resets on any alert update).
106-
- **Alert grouping `group.method`**: `i` = intelligent (embedding similarity), `p` = pattern (label equality), `n` = none. **`group.time_window` is in minutes** (default cap 1440 = 24h; extended accounts may allow up to 43200 = 30 days). Set via `--data '{"group":{"method":"p","equals":[["service","env"]],"time_window":30}}'` on `create`/`update`.
106+
- **Alert grouping `group.method`**: `i` = intelligent (embedding similarity), `p` = pattern (label equality), `n` = none. **`group.time_window` is in minutes** (default cap 1440 = 24h; extended accounts may allow up to 43200 = 30 days). Set via `--data` on `create`/`update`:
107+
108+
```bash
109+
--data '{"group":{"method":"p","equals":[["labels.service","labels.env"]],"time_window":30}}'
110+
```
111+
112+
**Every entry in `equals` (and in `i_keys`, and in each `cases[].equals`) must
113+
be either one of the three built-in fields — `title`, `description`,
114+
`severity` — or a label written with its `labels.` prefix.** A bare label name
115+
is rejected: `equals: [["service"]]` returns `equal service is not supported`
116+
(400). This is the most common way a grouping update fails, and it bites
117+
hardest right after `fduty enrichment upsert` creates a new label — the label
118+
exists, but it is `labels.<name>` here, never the bare name.
107119

108120
Escalation, silence, inhibit and unsubscribe rules live on their own cards: `reference/escalation.md` and `reference/noise.md`.
109121

0 commit comments

Comments
 (0)