From af0239f5a395eacf681cdc5fc7df7239ab511892 Mon Sep 17 00:00:00 2001 From: Bharath Date: Tue, 14 May 2024 11:23:46 +1200 Subject: [PATCH] feat: change the criticality tag to impact tag (#25) some doco on the impact ratings and how to rate the resourses: https://toitutewhenua.atlassian.net/wiki/spaces/STEP/pages/524059414/OpsGenie+Incident+Priority+Matrix https://toitutewhenua.atlassian.net/wiki/spaces/STEP/pages/513579421/Tagging+scheme+for+Prod+readiness --- .gitignore | 3 ++- src/tags.ts | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index b7dab5e..d31e1cc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules -build \ No newline at end of file +build +.idea diff --git a/src/tags.ts b/src/tags.ts index 1c4c41c..ec85667 100644 --- a/src/tags.ts +++ b/src/tags.ts @@ -52,9 +52,10 @@ export interface TagsBase { classification: SecurityClassification; /** - * Criticality of the resources + * Operational impact of the resources on runtime overall system + * @see https://toitutewhenua.atlassian.net/wiki/spaces/STEP/pages/524059414/OpsGenie+Incident+Priority+Matrix */ - criticality: 'critical' | 'high' | 'medium' | 'low'; + impact: 'high' | 'medium' | 'low'; /** * THe responder team listed in OpsGenie. @@ -95,7 +96,7 @@ export function applyTags(construct: IConstruct, ctx: TagsBase): void { // Ownership tags tag(construct, 'linz.group', ctx.group); tag(construct, 'linz.responder.team', ctx.responderTeam ?? 'NotSet'); - tag(construct, 'linz.app.criticality', ctx.criticality); + tag(construct, 'linz.app.impact', ctx.impact); // Git Tags if (buildInfo) tag(construct, 'linz.git.hash', buildInfo.hash);