Skip to content

Commit

Permalink
Update escalation api for repeat
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceren Dikmen committed Dec 4, 2017
1 parent e971d93 commit 0e0e7a0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
26 changes: 25 additions & 1 deletion definitions/escalation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ CreateEscalationPayload:
ownerTeam:
description: Owner team of escalation.
$ref: '#/definitions/TeamMeta'
repeat:
description: Repeat preferences of escalation
$ref: '#/definitions/EscalationRepeat'

UpdateEscalationPayload:
type: object
Expand All @@ -39,6 +42,9 @@ UpdateEscalationPayload:
ownerTeam:
description: Owner team of escalation.
$ref: '#/definitions/TeamMeta'
repeat:
description: Repeat preferences of escalation
$ref: '#/definitions/EscalationRepeat'

##################
# RESPONSE #
Expand Down Expand Up @@ -79,6 +85,8 @@ Escalation:
type: array
items:
$ref: '#/definitions/EscalationRule'
repeat:
$ref: '#/definitions/EscalationRepeat'

EscalationRule:
type: object
Expand Down Expand Up @@ -107,4 +115,20 @@ EscalationRule:
delay:
$ref: '#/definitions/Duration'
recipient:
$ref: '#/definitions/Recipient'
$ref: '#/definitions/Recipient'

EscalationRepeat:
type: object
properties:
waitInterval:
type: integer
nullable: true
count:
type: integer
nullable: true
resetRecipientStates:
type: boolean
nullable: true
closeAlertAfterAll:
type: boolean
nullable: true
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.opsgenie.oas</groupId>
<artifactId>swagger-spec</artifactId>
<packaging>jar</packaging>
<version>1.0.1</version>
<version>1.0.2</version>
<name>opsgenie-oas</name>
<url>http://maven.apache.org</url>

Expand Down Expand Up @@ -42,7 +42,7 @@
<configOptions>
<groupId>com.opsgenie.oas</groupId>
<artifactId>opsgenie-sdk-swagger</artifactId>
<artifactVersion>1.0.1</artifactVersion>
<artifactVersion>1.0.2</artifactVersion>
<developerName>Alp, Baris, Mustafa, Halil, Alperen, Zafer</developerName>
<developerEmail>support@opsgenie.com</developerEmail>
<developerOrganization>OpsGenie</developerOrganization>
Expand Down

0 comments on commit 0e0e7a0

Please sign in to comment.