From b9daa929773a25dc5c27669ff78a23c928639b81 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 22 Oct 2024 09:36:10 +0100 Subject: [PATCH] Add escalation_path attribute example to simple catalog.jsonnet (#144) Give an example of how you can add an escalation path as a team attribute if you use the catalog importer. --- docs/simple/catalog.jsonnet | 43 +++++++++++++++++++++++++++++++----- docs/simple/importer.jsonnet | 5 +++++ 2 files changed, 42 insertions(+), 6 deletions(-) diff --git a/docs/simple/catalog.jsonnet b/docs/simple/catalog.jsonnet index d90af13..25b38e4 100644 --- a/docs/simple/catalog.jsonnet +++ b/docs/simple/catalog.jsonnet @@ -1,4 +1,9 @@ { + escalationPaths: { + RSP_PINC_SP: '01JAAJH5RE685WFRSZ2VFDEKS9', + ONC: '01J5B8JGEFK7DHNW00GZX1R17V', + }, + // All product development teams are defined here. teams: [ { @@ -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 [ { @@ -46,13 +52,12 @@ 'megan.mcdonald', 'milly', 'rob', - 'rory', ], auxiliary_members: [ 'pete', - 'lawrence', 'ben', ], + escalation_path: $.escalationPaths.RSP_PINC_SP, }, { external_id: 'response', @@ -75,7 +80,6 @@ 'benji', 'james.shedden', 'kelsey', - 'leo.papaloizos', 'lisa', 'megan.mcdonald', 'sam', @@ -83,9 +87,9 @@ ], auxiliary_members: [ 'pete', - 'lawrence', 'ben', ], + escalation_path: $.escalationPaths.RSP_PINC_SP, }, { external_id: 'status-pages', @@ -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('%s-team@incident.io', 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, }, ] ], diff --git a/docs/simple/importer.jsonnet b/docs/simple/importer.jsonnet index 56c03d9..1f54d15 100644 --- a/docs/simple/importer.jsonnet +++ b/docs/simple/importer.jsonnet @@ -86,6 +86,11 @@ local catalog = import 'catalog.jsonnet'; array: true, source: '$.members', }, + { + id: 'escalation_path', + name: 'Escalation path', + type: 'EscalationPath', + }, ], }, ],