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
Returns
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
| Argument | Type | Description |
|---|---|---|
integrationKey | String! | Integration API Key |
integrationName | String! | Identifying name |
serverUrl | String! | Base server URL |
webhookEnabled | Boolean | If the webhook is enabled |
webhookId | UUID | A webhook UUID (automatically generated if null) |
webhookSecret | String | The webhook secret value |
webhookSecretName | String | The 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
createOpsgenieIntegrationCreateOpsgenieIntegration
CreateOpsgenieIntegrationObject type.
| Field | Type | Description |
|---|---|---|
opsgenieIntegration | OpsgenieIntegrationOutput | The 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
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | The integration ID |
Returns
DeleteOpsgenieIntegration
Example
mutation DeleteOpsgenieIntegration($integrationId: UUID!) {
deleteOpsgenieIntegration(integrationId: $integrationId) {
deleted
}
}Types used only by deleteOpsgenieIntegration
deleteOpsgenieIntegrationDeleteOpsgenieIntegration
DeleteOpsgenieIntegrationObject type.
| Field | Type | Description |
|---|---|---|
deleted | Boolean | If the integration was deleted |
Related types
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
| Argument | Type | Description |
|---|---|---|
opsgenieIncidentId | UUID! | The Opsgenie Incident ID |
Returns
LinkOpsgenieIncident
Example
mutation LinkOpsgenieIncident($opsgenieIncidentId: UUID!) {
linkOpsgenieIncident(opsgenieIncidentId: $opsgenieIncidentId) {
linkDetails {
alertId
tinyId
}
}
}Types used only by linkOpsgenieIncident
linkOpsgenieIncidentLinkOpsgenieIncident
LinkOpsgenieIncidentObject type.
| Field | Type | Description |
|---|---|---|
linkDetails | OpsgenieLinkOutput | The link details |
OpsgenieLinkOutput
OpsgenieLinkOutputObject type. Opsgenie Incident link details
| Field | Type | Description |
|---|---|---|
alertId | String! | The Opsgenie Incident's Alert ID |
tinyId | String! | The Opsgenie Incident's Tiny ID |
Related types
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
| Argument | Type | Description |
|---|---|---|
alertId | UUID! | The Monte Carlo Alert ID |
Returns
RelinkOpsgenieIncident
Example
mutation RelinkOpsgenieIncident($alertId: UUID!) {
relinkOpsgenieIncident(alertId: $alertId) {
restored
}
}Types used only by relinkOpsgenieIncident
relinkOpsgenieIncidentRelinkOpsgenieIncident
RelinkOpsgenieIncidentObject type.
| Field | Type | Description |
|---|---|---|
restored | Boolean | If an opsgenie incident was restored |
Related types
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
| Argument | Type | Description |
|---|---|---|
opsgenieIncidentId | UUID! | The Opsgenie Incident ID |
Returns
UnlinkOpsgenieIncident
Example
mutation UnlinkOpsgenieIncident($opsgenieIncidentId: UUID!) {
unlinkOpsgenieIncident(opsgenieIncidentId: $opsgenieIncidentId) {
deleted
}
}Types used only by unlinkOpsgenieIncident
unlinkOpsgenieIncidentUnlinkOpsgenieIncident
UnlinkOpsgenieIncidentObject type.
| Field | Type | Description |
|---|---|---|
deleted | Boolean | If the incident was deleted |
Related types
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
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | The integration ID |
integrationKey | String! | Integration API Key |
integrationName | String! | Identifying name |
serverUrl | String! | Base server URL |
webhookEnabled | Boolean | If 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
updateOpsgenieIntegrationUpdateOpsgenieIntegration
UpdateOpsgenieIntegrationObject type.
| Field | Type | Description |
|---|---|---|
opsgenieIntegration | OpsgenieIntegrationOutput | The 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
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | The integration ID |
webhookSecret | String | The webhook secret value |
webhookSecretName | String | The 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
updateOpsgenieIntegrationWebhookSecretUpdateOpsgenieIntegrationWebhookSecret
UpdateOpsgenieIntegrationWebhookSecretObject type.
| Field | Type | Description |
|---|---|---|
opsgenieIntegration | OpsgenieIntegrationOutput | The 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.
