PagerDuty (GraphQL)

Related queries and mutations in Notifications. Each has its own section.

Queries

getPagerdutyServiceIntegrations (query)

getPagerdutyServiceIntegrations is a query in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get the configured PagerDuty service integrations

Arguments

ArgumentTypeDescription
integrationIdUUIDFilter by integration ID

Returns

[PagerDutyServiceIntegrationOutput]

Example

query GetPagerdutyServiceIntegrations {
  getPagerdutyServiceIntegrations {
    integrationId
    integrationName
    integrationKey
    webhookEnabled
    webhookUrl
    webhookSecretDefined
    createdTime
    updatedTime
    webhookSecretMismatchDetected
  }
}

Related types

PagerDutyServiceIntegrationOutput, UUID

Mutations

createPagerdutyServiceIntegration (mutation)

createPagerdutyServiceIntegration is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Create a PagerDuty service integration

Arguments

ArgumentTypeDescription
integrationKeyString!Integration Key associated with the PagerDuty service to integrate
integrationNameString!A short name to identify the integration
webhookEnabledBooleanWhether the PagerDuty webhook is enabled

Returns

CreatePagerDutyServiceIntegration

Example

mutation CreatePagerdutyServiceIntegration($integrationKey: String!, $integrationName: String!) {
  createPagerdutyServiceIntegration(integrationKey: $integrationKey, integrationName: $integrationName) {
    pagerdutyServiceIntegration {
      integrationId
      integrationName
      integrationKey
      webhookEnabled
      webhookUrl
      webhookSecretDefined
      createdTime
      updatedTime
      webhookSecretMismatchDetected
    }
  }
}

Types used only by createPagerdutyServiceIntegration

CreatePagerDutyServiceIntegration

Object type. Create a PagerDuty service integration

FieldTypeDescription
pagerdutyServiceIntegrationPagerDutyServiceIntegrationOutputThe integration that was created

Related types

PagerDutyServiceIntegrationOutput

deletePagerdutyServiceIntegration (mutation)

deletePagerdutyServiceIntegration is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Delete a PagerDuty service integration

Arguments

ArgumentTypeDescription
integrationIdUUID!The integration ID

Returns

DeletePagerDutyServiceIntegration

Example

mutation DeletePagerdutyServiceIntegration($integrationId: UUID!) {
  deletePagerdutyServiceIntegration(integrationId: $integrationId) {
    deleted
  }
}

Types used only by deletePagerdutyServiceIntegration

DeletePagerDutyServiceIntegration

Object type. Delete a PagerDuty service integration

FieldTypeDescription
deletedBoolean

Related types

UUID

updatePagerdutyServiceIntegration (mutation)

updatePagerdutyServiceIntegration is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Update a PagerDuty service integration

Arguments

ArgumentTypeDescription
integrationIdUUID!The integration ID
integrationKeyString!Integration Key associated with the PagerDuty service to integrate
integrationNameString!A short name to identify the integration
webhookEnabledBooleanWhether the PagerDuty webhook is enabled

Returns

UpdatePagerDutyServiceIntegration

Example

mutation UpdatePagerdutyServiceIntegration($integrationId: UUID!, $integrationKey: String!, $integrationName: String!) {
  updatePagerdutyServiceIntegration(integrationId: $integrationId, integrationKey: $integrationKey, integrationName: $integrationName) {
    pagerdutyServiceIntegration {
      integrationId
      integrationName
      integrationKey
      webhookEnabled
      webhookUrl
      webhookSecretDefined
      createdTime
      updatedTime
      webhookSecretMismatchDetected
    }
  }
}

Types used only by updatePagerdutyServiceIntegration

UpdatePagerDutyServiceIntegration

Object type. Update a PagerDuty service integration

FieldTypeDescription
pagerdutyServiceIntegrationPagerDutyServiceIntegrationOutputThe integration that was updated

Related types

PagerDutyServiceIntegrationOutput, UUID

updatePagerdutyServiceIntegrationWebhookSecret (mutation)

updatePagerdutyServiceIntegrationWebhookSecret is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Update the Webhook secret configured for a PagerDuty service integration

Arguments

ArgumentTypeDescription
integrationIdUUID!The integration ID
webhookSecretStringPagerDuty secret provided for the Webhook

Returns

UpdatePagerDutyServiceIntegrationWebhookSecret

Example

mutation UpdatePagerdutyServiceIntegrationWebhookSecret($integrationId: UUID!) {
  updatePagerdutyServiceIntegrationWebhookSecret(integrationId: $integrationId) {
    pagerdutyServiceIntegration {
      integrationId
      integrationName
      integrationKey
      webhookEnabled
      webhookUrl
      webhookSecretDefined
      createdTime
      updatedTime
      webhookSecretMismatchDetected
    }
  }
}

Types used only by updatePagerdutyServiceIntegrationWebhookSecret

UpdatePagerDutyServiceIntegrationWebhookSecret

Object type. Update the Webhook secret configured for a PagerDuty service integration

FieldTypeDescription
pagerdutyServiceIntegrationPagerDutyServiceIntegrationOutputThe integration that was updated

Related types

PagerDutyServiceIntegrationOutput, UUID

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.