Related queries and mutations in Notifications. Each has its own section.
Queries
getAzureDevopsIntegrations (query)
getAzureDevopsIntegrations 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 Azure DevOps work item integrations
Arguments
| Argument | Type | Description |
|---|---|---|
integrationId | UUID | Filter by integration ID |
Returns
[AzureDevOpsIntegrationOutput]
Example
query GetAzureDevopsIntegrations {
getAzureDevopsIntegrations {
integrationId
integrationName
organization
createdTime
updatedTime
}
}Related types
AzureDevOpsIntegrationOutput, UUID
getAzureDevopsProjects (query)
getAzureDevopsProjects 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 list of projects for an Azure DevOps integration
Arguments
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | ID of the Azure DevOps integration |
Returns
[AzureDevOpsProjectOutput]
Example
query GetAzureDevopsProjects($integrationId: UUID!) {
getAzureDevopsProjects(integrationId: $integrationId) {
id
name
description
}
}Types used only by getAzureDevopsProjects
getAzureDevopsProjectsAzureDevOpsProjectOutput
AzureDevOpsProjectOutputObject type. Output type for Azure DevOps project.
| Field | Type | Description |
|---|---|---|
id | String | Project ID |
name | String | Project name |
description | String | Project description |
Related types
getAzureDevopsWorkItemTypes (query)
getAzureDevopsWorkItemTypes 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 list of work item types for a project
Arguments
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | ID of the Azure DevOps integration |
project | String! | Project name |
Returns
[AzureDevOpsWorkItemTypeOutput]
Example
query GetAzureDevopsWorkItemTypes($integrationId: UUID!, $project: String!) {
getAzureDevopsWorkItemTypes(integrationId: $integrationId, project: $project) {
name
description
}
}Types used only by getAzureDevopsWorkItemTypes
getAzureDevopsWorkItemTypesAzureDevOpsWorkItemTypeOutput
AzureDevOpsWorkItemTypeOutputObject type. Output type for Azure DevOps work item type.
| Field | Type | Description |
|---|---|---|
name | String | Work item type name (e.g., Bug, Task, User Story) |
description | String | Work item type description |
Related types
testAzureDevopsCredentials (query)
testAzureDevopsCredentials 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 Azure DevOps connection credentials
Arguments
| Argument | Type | Description |
|---|---|---|
organization | String! | Azure DevOps organization name |
basicAuthCredentials | AzureDevOpsBasicAuthCredentialsInput | Basic auth credentials to test (PAT) |
oauthCredentials | AzureDevOpsOauthCredentialsInput | OAuth credentials to test (not yet supported for testing) |
Returns
TestAzureDevOpsCredentialsOutput
Example
query TestAzureDevopsCredentials($organization: String!) {
testAzureDevopsCredentials(organization: $organization) {
validCredentials
}
}Types used only by testAzureDevopsCredentials
testAzureDevopsCredentialsTestAzureDevOpsCredentialsOutput
TestAzureDevOpsCredentialsOutputObject type. Output type for credential testing.
| Field | Type | Description |
|---|---|---|
validCredentials | Boolean! |
Related types
AzureDevOpsBasicAuthCredentialsInput, AzureDevOpsOauthCredentialsInput
Mutations
createAzureDevopsIntegration (mutation)
createAzureDevopsIntegration 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 Azure DevOps work item integration
Arguments
| Argument | Type | Description |
|---|---|---|
basicAuthCredentials | AzureDevOpsBasicAuthCredentialsInput | Provide either basic credentials or OAuth credentials |
integrationName | String! | Identifying name |
oauthCredentials | AzureDevOpsOauthCredentialsInput | Provide either basic credentials or OAuth credentials (preferred) |
organization | String! | Azure DevOps organization name |
Returns
CreateAzureDevOpsIntegration
Example
mutation CreateAzureDevopsIntegration($integrationName: String!, $organization: String!) {
createAzureDevopsIntegration(integrationName: $integrationName, organization: $organization) {
oauthRedirectUrl
}
}Types used only by createAzureDevopsIntegration
createAzureDevopsIntegrationCreateAzureDevOpsIntegration
CreateAzureDevOpsIntegrationObject type. Create a new Azure DevOps integration.
| Field | Type | Description |
|---|---|---|
azureDevopsIntegration | AzureDevOpsIntegrationOutput | The created integration |
oauthRedirectUrl | String | OAuth redirect URL if OAuth credentials were provided |
Related types
AzureDevOpsBasicAuthCredentialsInput, AzureDevOpsIntegrationOutput, AzureDevOpsOauthCredentialsInput
createAzureDevopsWorkItemForAlert (mutation)
createAzureDevopsWorkItemForAlert 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 Azure DevOps work item for alert
Arguments
Returns
CreateAzureDevOpsWorkItemForAlert
Example
mutation CreateAzureDevopsWorkItemForAlert($alertId: UUID!, $integrationId: UUID!, $project: String!, $workItemType: String!) {
createAzureDevopsWorkItemForAlert(alertId: $alertId, integrationId: $integrationId, project: $project, workItemType: $workItemType) {
azureDevopsWorkItem {
workItemId
alertId
integrationId
workItemUrl
workItemType
project
createdByEmail
createdAt
}
}
}Types used only by createAzureDevopsWorkItemForAlert
createAzureDevopsWorkItemForAlertCreateAzureDevOpsWorkItemForAlert
CreateAzureDevOpsWorkItemForAlertObject type. Create a new Azure DevOps work item from a Monte Carlo alert.
This mutation creates a work item in Azure DevOps and links it to the alert.
| Field | Type | Description |
|---|---|---|
azureDevopsWorkItem | AzureDevOpsWorkItemOutput |
Related types
AzureDevOpsWorkItemOutput, UUID
deleteAzureDevopsIntegration (mutation)
deleteAzureDevopsIntegration 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 Azure DevOps work item integration
Arguments
| Argument | Type | Description |
|---|---|---|
integrationId | UUID! | The integration ID |
Returns
DeleteAzureDevOpsIntegration
Example
mutation DeleteAzureDevopsIntegration($integrationId: UUID!) {
deleteAzureDevopsIntegration(integrationId: $integrationId) {
deleted
}
}Types used only by deleteAzureDevopsIntegration
deleteAzureDevopsIntegrationDeleteAzureDevOpsIntegration
DeleteAzureDevOpsIntegrationObject type. Delete an Azure DevOps integration.
| Field | Type | Description |
|---|---|---|
deleted | Boolean | If the integration was deleted |
Related types
linkAzureDevopsIntegration (mutation)
linkAzureDevopsIntegration 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
Complete OAuth flow for Azure DevOps work item integration
Arguments
| Argument | Type | Description |
|---|---|---|
code | String! | OAuth code from callback URL |
state | String! | OAuth state from callback URL |
Returns
LinkAzureDevOpsIntegration
Example
mutation LinkAzureDevopsIntegration($code: String!, $state: String!) {
linkAzureDevopsIntegration(code: $code, state: $state) {
success
}
}Types used only by linkAzureDevopsIntegration
linkAzureDevopsIntegrationLinkAzureDevOpsIntegration
LinkAzureDevOpsIntegrationObject type. Complete OAuth flow for Azure DevOps integration.
| Field | Type | Description |
|---|---|---|
success | Boolean | True if exchanging code for tokens was successful |
azureDevopsIntegration | AzureDevOpsIntegrationOutput | Created or updated Azure DevOps integration |
Related types
linkAzureDevopsWorkItemForAlert (mutation)
linkAzureDevopsWorkItemForAlert 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 existing Azure DevOps work item to alert
Arguments
Returns
LinkAzureDevOpsWorkItemForAlert
Example
mutation LinkAzureDevopsWorkItemForAlert($alertId: UUID!, $integrationId: UUID!, $workItemUrl: String!) {
linkAzureDevopsWorkItemForAlert(alertId: $alertId, integrationId: $integrationId, workItemUrl: $workItemUrl) {
azureDevopsWorkItem {
workItemId
alertId
integrationId
workItemUrl
workItemType
project
createdByEmail
createdAt
}
}
}Types used only by linkAzureDevopsWorkItemForAlert
linkAzureDevopsWorkItemForAlertLinkAzureDevOpsWorkItemForAlert
LinkAzureDevOpsWorkItemForAlertObject type. Link an existing Azure DevOps work item to a Monte Carlo alert.
This mutation creates a link between an existing work item and an alert
without creating a new work item.
| Field | Type | Description |
|---|---|---|
azureDevopsWorkItem | AzureDevOpsWorkItemOutput |
Related types
AzureDevOpsWorkItemOutput, UUID
unlinkAzureDevopsWorkItemForAlert (mutation)
unlinkAzureDevopsWorkItemForAlert 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 Azure DevOps work item from alert
Arguments
| Argument | Type | Description |
|---|---|---|
workItemId | UUID! | The work item link ID (UUID) |
Returns
UnlinkAzureDevOpsWorkItemForAlert
Example
mutation UnlinkAzureDevopsWorkItemForAlert($workItemId: UUID!) {
unlinkAzureDevopsWorkItemForAlert(workItemId: $workItemId) {
unlinked
}
}Types used only by unlinkAzureDevopsWorkItemForAlert
unlinkAzureDevopsWorkItemForAlertUnlinkAzureDevOpsWorkItemForAlert
UnlinkAzureDevOpsWorkItemForAlertObject type. Unlink an Azure DevOps work item from a Monte Carlo alert.
This mutation removes the link between a work item and an alert.
The work item itself is not deleted in Azure DevOps.
| Field | Type | Description |
|---|---|---|
unlinked | Boolean | True if the work item was unlinked |
Related types
updateAzureDevopsIntegration (mutation)
updateAzureDevopsIntegration 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 Azure DevOps work item integration
Arguments
| Argument | Type | Description |
|---|---|---|
basicAuthCredentials | AzureDevOpsBasicAuthCredentialsInput | New basic auth credentials (optional, only if rotating) |
integrationId | UUID! | The integration ID |
integrationName | String! | Identifying name |
oauthCredentials | AzureDevOpsOauthCredentialsInput | New OAuth credentials (optional, only if rotating) |
organization | String! | Azure DevOps organization name |
Returns
UpdateAzureDevOpsIntegration
Example
mutation UpdateAzureDevopsIntegration($integrationId: UUID!, $integrationName: String!, $organization: String!) {
updateAzureDevopsIntegration(integrationId: $integrationId, integrationName: $integrationName, organization: $organization) {
oauthRedirectUrl
}
}Types used only by updateAzureDevopsIntegration
updateAzureDevopsIntegrationUpdateAzureDevOpsIntegration
UpdateAzureDevOpsIntegrationObject type. Update an existing Azure DevOps integration.
| Field | Type | Description |
|---|---|---|
azureDevopsIntegration | AzureDevOpsIntegrationOutput | The updated integration |
oauthRedirectUrl | String | OAuth redirect URL if OAuth credentials were provided |
Related types
AzureDevOpsBasicAuthCredentialsInput, AzureDevOpsIntegrationOutput, AzureDevOpsOauthCredentialsInput, UUID
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
