Skip to main content
Manage how alerts are grouped: each team’s grouping preference, and the organisation’s default. A team’s preference takes priority over the default grouping of every alert route its alerts match. The organisation’s default is used only by alert rules, for alerts no team’s preference groups, so it can only be changed once the organisation has moved to alert rules. So can a team preference’s branches: alert routes only use its default.

The alert grouping preference object

An alert grouping preference: one team's, or the organisation's default

branches
object[]
required

Grouping branches in order. Alert rules group an alert by the first branch whose conditions hold, else by the default. Alert routes only use the default.

Example:
created_at
string<date-time>
required

When this preference was created

Example:

"2021-08-17T13:28:57.801578Z"

default
object
required

The fallback branch: how to group the alerts that no conditional branch matches

Example:
expressions
object[]
required

Expressions the branches' conditions test or compare against, as expressions["reference"]

Example:
id
string
required

Unique identifier for this preference

Example:

"01FCNDV6P870EA6S7TK1DSYDG0"

kind
enum<string>
required

Which preference this is. A team's preference groups the alerts of its team. The organisation's default groups alerts that no team's preference groups, and is used only by alert rules.

Available options:
default,
team
Example:

"team"

updated_at
string<date-time>
required

When this preference was last updated

Example:

"2021-08-17T13:28:57.801578Z"

version
integer<int64>
required

The current version number. Every update writes the next version.

Example:

3

team_id
string

The catalog entry ID of the team, set only for a team's preference

Example:

"01G0J1EXE7AXZ2C93K61WBPYEH"