Skip to main content
Read and replace the alert rules in your account. Alert rules decide what happens to each alert: who is paged, where it is posted, and whether an incident is created. They are stored as sets: the organisation’s required rules, its default rules, and one set per team. Each set is a list of blocks, and each block holds branches of conditions and actions.

The alert rule object

One set of alert rules: the organisation's required rules, its default rules, or one team's rules

blocks
object[]
required

The blocks of rules, in order. Every block runs for an alert.

Example:
created_at
string<date-time>
required

When this set of rules was created

Example:

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

expressions
object[]
required

Expressions the blocks' conditions and actions reference, such as a walk from the alert's team to its escalation path

Example:
id
string
required

Unique identifier for this set of rules

Example:

"01FCNDV6P870EA6S7TK1DSYDG0"

kind
enum<string>
required

Which set this is. Required rules run for every alert. Team rules run for the alert's team. Default rules run when no team's rules ran.

Available options:
required,
team,
default
Example:

"team"

updated_at
string<date-time>
required

When the current version was written

Example:

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

version
integer<int64>
required

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

Example:

3

message_template
object
Example:
team_id
string

The catalog entry ID of the team, set only for team rules

Example:

"01G0J1EXE7AXZ2C93K61WBPYEH"