Operations
List the rules
position is the evaluation order, 0 first. limit is the most rules the project can have. For a
merge_into rule, merge_into has the issue_id, the short_id, and the fingerprint of the
target issue.
Add a rule
201 and the new rule in rule. The rule applies to new error events
within about a minute.
Change a rule
Send only the fields that change. Fields ofmatch merge with the saved conditions. To remove a
condition, set it to null.
rule.
Remove a rule
{ "deleted": true }. New events then group by the next matching rule, or by the
default fingerprint.
Preview rules
The preview groups recent error events again and writes nothing. Withoutrules, it uses the saved
rules. With rules, it uses those drafts, in order, instead of the saved rules.
id is named draft-<index>. changed_events counts the events whose fingerprint
would differ from the one they have. current_fingerprints lists the fingerprints that the events
of a group have today. existing_issue is the issue that already has the group’s fingerprint, or
null when the rule would start a new issue. A group with rule_id: null uses the default
fingerprint.
Errors
TypeScript client and CLI
squasher grouping-rules create, update, and delete. For their flags, see the
CLI reference.