summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/alerts_settings/graphql/mutations/create_http_integration.mutation.graphql
blob: f3fc10b4bd4b6b59c1b9d7e8af7b2877a2bccaa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#import "../fragments/integration_item.fragment.graphql"

mutation createHttpIntegration(
  $projectPath: ID!
  $name: String!
  $active: Boolean!
  $payloadExample: JsonString
  $payloadAttributeMappings: [AlertManagementPayloadAlertFieldInput!]
) {
  httpIntegrationCreate(
    input: {
      projectPath: $projectPath
      name: $name
      active: $active
      payloadExample: $payloadExample
      payloadAttributeMappings: $payloadAttributeMappings
    }
  ) {
    errors
    integration {
      ...IntegrationItem
    }
  }
}