Related queries and mutations in Notifications. Each has its own section.
Queries
getServicenowIncidentFields (query)
getServicenowIncidentFields 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 ServiceNow incident fields
Arguments
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | The integration ID |
mandatoryOnly | Boolean | If true, return only mandatory fields |
Returns
[ServiceNowFieldOutput!]
Example
query GetServicenowIncidentFields($integrationId: UUID!) {
getServicenowIncidentFields(integrationId: $integrationId) {
key
label
type
maxLength
isMandatory
defaultValue
referenceType
}
}Types used only by getServicenowIncidentFields
getServicenowIncidentFieldsServiceNowFieldOutput
ServiceNowFieldOutputObject type. A ServiceNow incident field
| Field | Type | Description |
|---|---|---|
key | String! | The field key |
label | String! | The field label |
type | String! | The field type |
maxLength | Int! | The field max length |
isMandatory | Boolean! | If the field is mandatory |
defaultValue | String | The field default value |
referenceType | String | The field reference type |
choices | [ServiceNowChoiceOutput!] | The choices for the field |
Related types
getServicenowIntegrations (query)
getServicenowIntegrations 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 the configured ServiceNow integrations
Arguments
| Argument | Type | Description |
|---|---|---|
integrationId | UUID | Filter by integration ID |
Returns
Example
query GetServicenowIntegrations {
getServicenowIntegrations {
integrationId
integrationName
instanceName
username
defaultIncidentFields
defaultAlertFields
webhookEnabled
webhookUrl
createdTime
updatedTime
}
}Related types
ServiceNowIntegrationOutput, UUID
getServicenowReferenceValues (query)
getServicenowReferenceValues 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 possible values for an incident field when the field is a reference type. Pass the field name and an optional query to filter by label.
Arguments
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | The integration ID |
fieldName | String! | Incident field name of the reference |
query | String | Optional filter for label |
limit | Int | Optional limit (default 100) |
Returns
Example
query GetServicenowReferenceValues($integrationId: UUID!, $fieldName: String!) {
getServicenowReferenceValues(integrationId: $integrationId, fieldName: $fieldName) {
value
label
}
}Related types
getServicenowUsers (query)
getServicenowUsers 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 the list of ServiceNow users
Arguments
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | The integration ID |
query | String | A query to filter users by name |
Returns
Example
query GetServicenowUsers($integrationId: UUID!) {
getServicenowUsers(integrationId: $integrationId) {
sysId
userId
displayName
email
}
}Related types
testServicenowCredentials (query)
testServicenowCredentials 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
Test the ServiceNow connection credentials
Arguments
| Argument | Type | Description |
|---|---|---|
instanceName | String! | The instance name of the ServiceNow site |
username | String | The ServiceNow username for basic authentication. DEPRECATED: Use credentials instead. |
password | String | The user's password for basic authentication. DEPRECATED: Use credentials instead. |
credentials | ServiceNowCredentialsUnionInput | The ServiceNow credentials |
options | ServiceNowIntegrationOptionsInput | Options for ServiceNow integration |
Returns
ServiceNowTestCredentialsOutput
Example
query TestServicenowCredentials($instanceName: String!) {
testServicenowCredentials(instanceName: $instanceName) {
validCredentials
}
}Types used only by testServicenowCredentials
testServicenowCredentialsServiceNowTestCredentialsOutput
ServiceNowTestCredentialsOutputObject type. A ServiceNow test credentials result
| Field | Type | Description |
|---|---|---|
validCredentials | Boolean! | Returns if the credentials are valid |
Related types
ServiceNowCredentialsUnionInput, ServiceNowIntegrationOptionsInput
Mutations
createServicenowIncidentForAlert (mutation)
createServicenowIncidentForAlert 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 a ServiceNow incident for alert
Arguments
| Argument | Type | Description |
|---|---|---|
alertId | UUID! | ID of the alert |
description | String | Description of the incident |
fields | JSONString! | ServiceNow incident fields |
integrationId | UUID! | ID of the ServiceNow integration |
shortDescription | String! | Summary of the incident |
Returns
CreateServiceNowIncidentForAlert
Example
mutation CreateServicenowIncidentForAlert($alertId: UUID!, $fields: JSONString!, $integrationId: UUID!, $shortDescription: String!) {
createServicenowIncidentForAlert(alertId: $alertId, fields: $fields, integrationId: $integrationId, shortDescription: $shortDescription) {
servicenowIncident {
id
incidentSysId
incidentId
integrationId
notification
createWarning
createdAt
recordType
}
}
}Types used only by createServicenowIncidentForAlert
createServicenowIncidentForAlertCreateServiceNowIncidentForAlert
CreateServiceNowIncidentForAlertObject type.
| Field | Type | Description |
|---|---|---|
servicenowIncident | ServiceNowIncidentOutput | The created ServiceNow incident |
Related types
JSONString, ServiceNowIncidentOutput, UUID
createServicenowIntegration (mutation)
createServicenowIntegration 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 a ServiceNow integration
Arguments
| Argument | Type | Description |
|---|---|---|
credentials | ServiceNowCredentialsUnionInput | The ServiceNow credentials |
defaultAlertFields | JSONString | Default values for alert fields |
defaultIncidentFields | JSONString | Default values for incident fields. DEPRECATED: Use defaultAlertFields instead |
instanceName | String! | The instance name of the ServiceNow site |
integrationName | String! | A short name to identify the integration |
options | ServiceNowIntegrationOptionsInput | Options for ServiceNow integration |
password | String | The user's password for basic authentication; if not provided, the previous value will be used. DEPRECATED: Use credentials instead. |
username | String | The ServiceNow username for basic authentication; if not provided, the previous value will be used. DEPRECATED: Use credentials instead. |
webhookConfig | ServiceNowWebhookConfigInput | Webhook config |
webhookEnabled | Boolean | Whether the ServiceNow webhook is enabled |
Returns
CreateServiceNowIntegration
Example
mutation CreateServicenowIntegration($instanceName: String!, $integrationName: String!) {
createServicenowIntegration(instanceName: $instanceName, integrationName: $integrationName) {
servicenowIntegration {
integrationId
integrationName
instanceName
username
defaultIncidentFields
defaultAlertFields
webhookEnabled
webhookUrl
createdTime
updatedTime
}
}
}Types used only by createServicenowIntegration
createServicenowIntegrationCreateServiceNowIntegration
CreateServiceNowIntegrationObject type.
| Field | Type | Description |
|---|---|---|
servicenowIntegration | ServiceNowIntegrationOutput | The integration that was created |
Related types
JSONString, ServiceNowCredentialsUnionInput, ServiceNowIntegrationOptionsInput, ServiceNowIntegrationOutput, ServiceNowWebhookConfigInput
deleteServicenowIntegration (mutation)
deleteServicenowIntegration 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 a ServiceNow integration
Arguments
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | The integration ID |
Returns
DeleteServiceNowIntegration
Example
mutation DeleteServicenowIntegration($integrationId: UUID!) {
deleteServicenowIntegration(integrationId: $integrationId) {
deleted
}
}Types used only by deleteServicenowIntegration
deleteServicenowIntegrationDeleteServiceNowIntegration
DeleteServiceNowIntegrationObject type.
| Field | Type | Description |
|---|---|---|
deleted | Boolean |
Related types
linkServicenowIncidentForAlert (mutation)
linkServicenowIncidentForAlert 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 ServiceNow Incident for Alert
Arguments
| Argument | Type | Description |
|---|---|---|
alertId | UUID! | ID of the alert |
incidentNumber | String | Used when the incident number cannot be fetched from ServiceNow (incident-data access disabled, ACL-restricted fields, or event records). |
incidentSysId | String! | The incident sys_id for ServiceNow |
integrationId | UUID! | ID of the integration |
Returns
LinkServiceNowIncidentForAlert
Example
mutation LinkServicenowIncidentForAlert($alertId: UUID!, $incidentSysId: String!, $integrationId: UUID!) {
linkServicenowIncidentForAlert(alertId: $alertId, incidentSysId: $incidentSysId, integrationId: $integrationId) {
servicenowIncident {
id
incidentSysId
incidentId
integrationId
notification
createWarning
createdAt
recordType
}
}
}Types used only by linkServicenowIncidentForAlert
linkServicenowIncidentForAlertLinkServiceNowIncidentForAlert
LinkServiceNowIncidentForAlertObject type.
| Field | Type | Description |
|---|---|---|
servicenowIncident | ServiceNowIncidentOutput | The created ServiceNow incident |
Related types
ServiceNowIncidentOutput, UUID
unlinkServicenowIncidentForAlert (mutation)
unlinkServicenowIncidentForAlert 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 ServiceNow Incident for Alert
Arguments
Returns
UnlinkServiceNowIncidentForAlert
Example
mutation UnlinkServicenowIncidentForAlert($alertId: UUID!, $incidentSysId: String!, $integrationId: UUID!) {
unlinkServicenowIncidentForAlert(alertId: $alertId, incidentSysId: $incidentSysId, integrationId: $integrationId) {
unlinked
}
}Types used only by unlinkServicenowIncidentForAlert
unlinkServicenowIncidentForAlertUnlinkServiceNowIncidentForAlert
UnlinkServiceNowIncidentForAlertObject type.
| Field | Type | Description |
|---|---|---|
unlinked | Boolean | True if the incident was unlinked |
Related types
updateServicenowIntegration (mutation)
updateServicenowIntegration 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 a ServiceNow integration
Arguments
| Argument | Type | Description |
|---|---|---|
credentials | ServiceNowCredentialsUnionInput | The ServiceNow credentials |
defaultAlertFields | JSONString | Default values for alert fields |
defaultIncidentFields | JSONString | Default values for incident fields. DEPRECATED: Use defaultAlertFields instead |
instanceName | String! | The instance name of the ServiceNow site |
integrationId | UUID! | The integration ID |
integrationName | String! | A short name to identify the integration |
options | ServiceNowIntegrationOptionsInput | Options for ServiceNow integration |
password | String | The user's password for basic authentication; if not provided, the previous value will be used. DEPRECATED: Use credentials instead. |
username | String | The ServiceNow username for basic authentication; if not provided, the previous value will be used. DEPRECATED: Use credentials instead. |
webhookConfig | ServiceNowWebhookConfigInput | Webhook config |
webhookEnabled | Boolean | Whether the ServiceNow webhook is enabled |
Returns
UpdateServiceNowIntegration
Example
mutation UpdateServicenowIntegration($instanceName: String!, $integrationId: UUID!, $integrationName: String!) {
updateServicenowIntegration(instanceName: $instanceName, integrationId: $integrationId, integrationName: $integrationName) {
servicenowIntegration {
integrationId
integrationName
instanceName
username
defaultIncidentFields
defaultAlertFields
webhookEnabled
webhookUrl
createdTime
updatedTime
}
}
}Types used only by updateServicenowIntegration
updateServicenowIntegrationUpdateServiceNowIntegration
UpdateServiceNowIntegrationObject type.
| Field | Type | Description |
|---|---|---|
servicenowIntegration | ServiceNowIntegrationOutput | The integration that was updated |
Related types
JSONString, ServiceNowCredentialsUnionInput, ServiceNowIntegrationOptionsInput, ServiceNowIntegrationOutput, ServiceNowWebhookConfigInput, UUID
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
