Skip to content

Commit

Permalink
Add escalation_path attribute example to simple catalog.jsonnet (#144)
Browse files Browse the repository at this point in the history
Give an example of how you can add an escalation path as a team
attribute if you use the catalog importer.
  • Loading branch information
leonore authored Oct 22, 2024
1 parent c3d004c commit b9daa92
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 6 deletions.
43 changes: 37 additions & 6 deletions docs/simple/catalog.jsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
escalationPaths: {
RSP_PINC_SP: '01JAAJH5RE685WFRSZ2VFDEKS9',
ONC: '01J5B8JGEFK7DHNW00GZX1R17V',
},

// All product development teams are defined here.
teams: [
{
Expand All @@ -19,6 +24,7 @@
linear_team: error 'linear_team is required',
members: error 'members is required',
auxiliary_members: error 'auxiliary_members is required',
escalation_path: error 'escalation_path is required',
} + team
for team in [
{
Expand Down Expand Up @@ -46,13 +52,12 @@
'megan.mcdonald',
'milly',
'rob',
'rory',
],
auxiliary_members: [
'pete',
'lawrence',
'ben',
],
escalation_path: $.escalationPaths.RSP_PINC_SP,
},
{
external_id: 'response',
Expand All @@ -75,17 +80,16 @@
'benji',
'james.shedden',
'kelsey',
'leo.papaloizos',
'lisa',
'megan.mcdonald',
'sam',
'walt',
],
auxiliary_members: [
'pete',
'lawrence',
'ben',
],
escalation_path: $.escalationPaths.RSP_PINC_SP,
},
{
external_id: 'status-pages',
Expand All @@ -108,14 +112,41 @@
'dimitra',
'isaac',
'james.shedden',
'martha',
'megan.mcdonald',
],
auxiliary_members: [
'pete',
'lawrence',
'ben',
],
escalation_path: $.escalationPaths.RSP_PINC_SP,
},
{
external_id: 'on-call',
name: 'On-call',
description: 'Building a delightful on-call product.',
goal: 'Responsible for the reliability and experience of the On-call product',
homepage: 'https://www.notion.so/incidentio/On-call-Team-4d360ade77624b879e0d1f197f300616',
group: std.format('%[email protected]', self.external_id),
tech_lead: 'leo.sjoberg',
engineering_manager: 'chris.class',
product_manager: 'miia.paavola',
sentry_team: 'on-call',
slack_user_group: 'team-on-callz',
slack_channel: 'team-on-call',
alert_channel: '#alerts-on-call-pulse',
alert_staging_channel: '#alerts-on-call-staging-pulse',
linear_team: 'ONC',
members: [
'lawrence',
'leo.papaloizos',
'martha',
'rory',
'rory.malcolm',
],
auxiliary_members: [
'sam.willis',
],
escalation_path: $.escalationPaths.ONC,
},
]
],
Expand Down
5 changes: 5 additions & 0 deletions docs/simple/importer.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ local catalog = import 'catalog.jsonnet';
array: true,
source: '$.members',
},
{
id: 'escalation_path',
name: 'Escalation path',
type: 'EscalationPath',
},
],
},
],
Expand Down

0 comments on commit b9daa92

Please sign in to comment.