Skip to content

Instantly share code, notes, and snippets.

@shairyar
Created December 11, 2023 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shairyar/c10fa4a9d3b7b4297083623981e83426 to your computer and use it in GitHub Desktop.
Save shairyar/c10fa4a9d3b7b4297083623981e83426 to your computer and use it in GitHub Desktop.
mutation updateIncidentMutation($appId: String!, $number: Int!, $state: IncidentStateEnum, $description: String, $notificationFrequency: IncidentNotificationFrequencyEnum, $severity: IncidentSeverityEnum, $assigneeIds: [String!], $notificationThreshold: Int) {
updateIncident(
appId: $appId
number: $number
state: $state
description: $description
notificationFrequency: $notificationFrequency
notificationThreshold: $notificationThreshold
severity: $severity
assigneeIds: $assigneeIds
) {
... on ExceptionIncident {
id
notificationFrequency
notificationThreshold
state
description
severity
assignees {
id
__typename
}
__typename
}
... on PerformanceIncident {
id
notificationFrequency
notificationThreshold
state
description
severity
assignees {
id
}
}
}
}
@shairyar
Copy link
Author

shairyar commented Dec 11, 2023

Query variables

{
  "appId": "YOUR-APP-ID",
  "number": INCIDENT-NUMBER,
  "state": "OPEN",
  "notificationFrequency": "FIRST_AFTER_CLOSE"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment