diff --git a/assets/schema.yml b/assets/schema.yml index 9e2a15c..c921d44 100644 --- a/assets/schema.yml +++ b/assets/schema.yml @@ -240,6 +240,21 @@ - { name: org, type: QuayOrg, isRequired: true } - { name: items, type: AppQuayReposItems, isRequired: true, isList: true } +- name: AppEscalationsEscalation + version: '1' + fields: + - { name: labels, type: json } + - { name: slackRecipients, type: string, isList: true } + - { name: emailRecipients, type: string, isList: true } + - { name: mattermostRecipients, type: string, isList: true } + +- name: AppEscalations + version: '1' + fields: + - { name: default, type: AppEscalationsEscalation } + - { name: warning, type: AppEscalationsEscalation } + - { name: critical, type: AppEscalationsEscalation } + - name: App version: '1' fields: @@ -250,6 +265,7 @@ - { name: serviceOwner, type: AppServiceOwner, isRequired: true } - { name: dependencies, type: AppDependencies, isList: true } - { name: quayRepos, type: AppQuayRepos, isList: true } + - { name: escalations, type: AppEscalations, isList: true } - name: Permission version: '1' diff --git a/assets/schemas/app-sre/app-1.yml b/assets/schemas/app-sre/app-1.yml index 2e4e604..070f67c 100644 --- a/assets/schemas/app-sre/app-1.yml +++ b/assets/schemas/app-sre/app-1.yml @@ -109,6 +109,35 @@ properties: required: - org - items + escalations: + type: object + additionalProperties: false + properties: + default: &escalations_default + type: object + additionalProperties: false + properties: + labels: + type: array + items: + type: string + slackRecipients: + type: array + items: + type: string + emailRecipients: + type: array + items: + type: string + mattermostRecipients: + type: array + items: + type: string + warning: *escalations_default + critical: *escalations_default + required: + - warning + - critical required: - title