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
| Argument | Type | Description |
|---|---|---|
integrationId | UUID | Filter 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
| Argument | Type | Description |
|---|---|---|
integrationKey | String! | Integration Key associated with the PagerDuty service to integrate |
integrationName | String! | A short name to identify the integration |
webhookEnabled | Boolean | Whether 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
createPagerdutyServiceIntegrationCreatePagerDutyServiceIntegration
CreatePagerDutyServiceIntegrationObject type. Create a PagerDuty service integration
| Field | Type | Description |
|---|---|---|
pagerdutyServiceIntegration | PagerDutyServiceIntegrationOutput | The 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
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | The integration ID |
Returns
DeletePagerDutyServiceIntegration
Example
mutation DeletePagerdutyServiceIntegration($integrationId: UUID!) {
deletePagerdutyServiceIntegration(integrationId: $integrationId) {
deleted
}
}Types used only by deletePagerdutyServiceIntegration
deletePagerdutyServiceIntegrationDeletePagerDutyServiceIntegration
DeletePagerDutyServiceIntegrationObject type. Delete a PagerDuty service integration
| Field | Type | Description |
|---|---|---|
deleted | Boolean |
Related types
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
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | The integration ID |
integrationKey | String! | Integration Key associated with the PagerDuty service to integrate |
integrationName | String! | A short name to identify the integration |
webhookEnabled | Boolean | Whether 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
updatePagerdutyServiceIntegrationUpdatePagerDutyServiceIntegration
UpdatePagerDutyServiceIntegrationObject type. Update a PagerDuty service integration
| Field | Type | Description |
|---|---|---|
pagerdutyServiceIntegration | PagerDutyServiceIntegrationOutput | The 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
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | The integration ID |
webhookSecret | String | PagerDuty 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
updatePagerdutyServiceIntegrationWebhookSecretUpdatePagerDutyServiceIntegrationWebhookSecret
UpdatePagerDutyServiceIntegrationWebhookSecretObject type. Update the Webhook secret configured for a PagerDuty service integration
| Field | Type | Description |
|---|---|---|
pagerdutyServiceIntegration | PagerDutyServiceIntegrationOutput | The 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.
