Opsgenie (GraphQL)

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

Queries

getOpsgenieIntegrations (query)

getOpsgenieIntegrations 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.

Status: Experimental

Get Opsgenie integrations

Arguments

ArgumentTypeDescription
integrationIdUUIDFilter by integration ID
webhookIdUUIDFilter by webhook ID

Returns

[OpsgenieIntegrationOutput]

Example

query GetOpsgenieIntegrations {
  getOpsgenieIntegrations {
    createdTime
    updatedTime
    integrationName
    webhookEnabled
    webhookSecretName
    webhookSecretMismatchDetected
    integrationId
    integrationKey
    serverUrl
    webhookUrl
    webhookSecretDefined
  }
}

Related types

OpsgenieIntegrationOutput, UUID

Mutations

createOpsgenieIntegration (mutation)

createOpsgenieIntegration 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.

Status: Experimental

Create an Opsgenie integration

Arguments

ArgumentTypeDescription
integrationKeyString!Integration API Key
integrationNameString!Identifying name
serverUrlString!Base server URL
webhookEnabledBooleanIf the webhook is enabled
webhookIdUUIDA webhook UUID (automatically generated if null)
webhookSecretStringThe webhook secret value
webhookSecretNameStringThe webhook secret name

Returns

CreateOpsgenieIntegration

Example

mutation CreateOpsgenieIntegration($integrationKey: String!, $integrationName: String!, $serverUrl: String!) {
  createOpsgenieIntegration(integrationKey: $integrationKey, integrationName: $integrationName, serverUrl: $serverUrl) {
    opsgenieIntegration {
      createdTime
      updatedTime
      integrationName
      webhookEnabled
      webhookSecretName
      webhookSecretMismatchDetected
      integrationId
      integrationKey
      serverUrl
      webhookUrl
      webhookSecretDefined
    }
  }
}

Types used only by createOpsgenieIntegration

CreateOpsgenieIntegration

Object type.

FieldTypeDescription
opsgenieIntegrationOpsgenieIntegrationOutputThe integration

Related types

OpsgenieIntegrationOutput, UUID

deleteOpsgenieIntegration (mutation)

deleteOpsgenieIntegration 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.

Status: Experimental

Delete an Opsgenie integration

Arguments

ArgumentTypeDescription
integrationIdUUID!The integration ID

Returns

DeleteOpsgenieIntegration

Example

mutation DeleteOpsgenieIntegration($integrationId: UUID!) {
  deleteOpsgenieIntegration(integrationId: $integrationId) {
    deleted
  }
}

Types used only by deleteOpsgenieIntegration

DeleteOpsgenieIntegration

Object type.

FieldTypeDescription
deletedBooleanIf the integration was deleted

Related types

UUID

linkOpsgenieIncident (mutation)

linkOpsgenieIncident 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.

Status: Experimental

Link an Opsgenie incident

Arguments

ArgumentTypeDescription
opsgenieIncidentIdUUID!The Opsgenie Incident ID

Returns

LinkOpsgenieIncident

Example

mutation LinkOpsgenieIncident($opsgenieIncidentId: UUID!) {
  linkOpsgenieIncident(opsgenieIncidentId: $opsgenieIncidentId) {
    linkDetails {
      alertId
      tinyId
    }
  }
}

Types used only by linkOpsgenieIncident

LinkOpsgenieIncident

Object type.

FieldTypeDescription
linkDetailsOpsgenieLinkOutputThe link details
OpsgenieLinkOutput

Object type. Opsgenie Incident link details

FieldTypeDescription
alertIdString!The Opsgenie Incident's Alert ID
tinyIdString!The Opsgenie Incident's Tiny ID

Related types

UUID

relinkOpsgenieIncident (mutation)

relinkOpsgenieIncident 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.

Status: Experimental

Relink a Opsgenie incidents to a Monte Carlo Alert

Arguments

ArgumentTypeDescription
alertIdUUID!The Monte Carlo Alert ID

Returns

RelinkOpsgenieIncident

Example

mutation RelinkOpsgenieIncident($alertId: UUID!) {
  relinkOpsgenieIncident(alertId: $alertId) {
    restored
  }
}

Types used only by relinkOpsgenieIncident

RelinkOpsgenieIncident

Object type.

FieldTypeDescription
restoredBooleanIf an opsgenie incident was restored

Related types

UUID

unlinkOpsgenieIncident (mutation)

unlinkOpsgenieIncident 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.

Status: Experimental

Unlink an Opsgenie incident

Arguments

ArgumentTypeDescription
opsgenieIncidentIdUUID!The Opsgenie Incident ID

Returns

UnlinkOpsgenieIncident

Example

mutation UnlinkOpsgenieIncident($opsgenieIncidentId: UUID!) {
  unlinkOpsgenieIncident(opsgenieIncidentId: $opsgenieIncidentId) {
    deleted
  }
}

Types used only by unlinkOpsgenieIncident

UnlinkOpsgenieIncident

Object type.

FieldTypeDescription
deletedBooleanIf the incident was deleted

Related types

UUID

updateOpsgenieIntegration (mutation)

updateOpsgenieIntegration 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.

Status: Experimental

Update an Opsgenie integration

Arguments

ArgumentTypeDescription
integrationIdUUID!The integration ID
integrationKeyString!Integration API Key
integrationNameString!Identifying name
serverUrlString!Base server URL
webhookEnabledBooleanIf the webhook is enabled

Returns

UpdateOpsgenieIntegration

Example

mutation UpdateOpsgenieIntegration($integrationId: UUID!, $integrationKey: String!, $integrationName: String!, $serverUrl: String!) {
  updateOpsgenieIntegration(integrationId: $integrationId, integrationKey: $integrationKey, integrationName: $integrationName, serverUrl: $serverUrl) {
    opsgenieIntegration {
      createdTime
      updatedTime
      integrationName
      webhookEnabled
      webhookSecretName
      webhookSecretMismatchDetected
      integrationId
      integrationKey
      serverUrl
      webhookUrl
      webhookSecretDefined
    }
  }
}

Types used only by updateOpsgenieIntegration

UpdateOpsgenieIntegration

Object type.

FieldTypeDescription
opsgenieIntegrationOpsgenieIntegrationOutputThe integration

Related types

OpsgenieIntegrationOutput, UUID

updateOpsgenieIntegrationWebhookSecret (mutation)

updateOpsgenieIntegrationWebhookSecret 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.

Status: Experimental

Update an Opsgenie integration's webhook secret details

Arguments

ArgumentTypeDescription
integrationIdUUID!The integration ID
webhookSecretStringThe webhook secret value
webhookSecretNameStringThe webhook secret name

Returns

UpdateOpsgenieIntegrationWebhookSecret

Example

mutation UpdateOpsgenieIntegrationWebhookSecret($integrationId: UUID!) {
  updateOpsgenieIntegrationWebhookSecret(integrationId: $integrationId) {
    opsgenieIntegration {
      createdTime
      updatedTime
      integrationName
      webhookEnabled
      webhookSecretName
      webhookSecretMismatchDetected
      integrationId
      integrationKey
      serverUrl
      webhookUrl
      webhookSecretDefined
    }
  }
}

Types used only by updateOpsgenieIntegrationWebhookSecret

UpdateOpsgenieIntegrationWebhookSecret

Object type.

FieldTypeDescription
opsgenieIntegrationOpsgenieIntegrationOutputThe integration

Related types

OpsgenieIntegrationOutput, UUID

Source: The GraphQL API reference

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