Skip to content

Commit

Permalink
Add application escalations schema (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfchevrette authored Mar 5, 2019
1 parent d6060fc commit 820599d
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
16 changes: 16 additions & 0 deletions assets/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'
Expand Down
29 changes: 29 additions & 0 deletions assets/schemas/app-sre/app-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 820599d

Please sign in to comment.