Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update escalation api for repeat #34

Merged
merged 1 commit into from
Dec 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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