dbt, part 1 of 2 (GraphQL)

Related queries and mutations in Integrations and connections. Each has its own section.

Queries

getDbtCloudEnvironmentNames (query)

getDbtCloudEnvironmentNames is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Distinct dbt environment names seen on a dbt Cloud webhook connection. Use them as suggestions for the environment allow-list. An environment appears only after one of its runs is collected.

Arguments

ArgumentTypeDescription
connectionIdUUID!dbt Cloud webhook connection id

Returns

[String!]!

Example

query GetDbtCloudEnvironmentNames($connectionId: UUID!) {
  getDbtCloudEnvironmentNames(connectionId: $connectionId)
}

Related types

UUID

getDbtConnectionDetails (query)

getDbtConnectionDetails is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get dbt connection details

Arguments

ArgumentTypeDescription
connectionIdString!dbt connection id

Returns

DbtConnectionDetails

Example

query GetDbtConnectionDetails($connectionId: String!) {
  getDbtConnectionDetails(connectionId: $connectionId) {
    dbtCloudAccountId
    dbtCloudWebhookId
    dbtCloudBaseUrl
  }
}

Types used only by getDbtConnectionDetails

DbtConnectionDetails

Object type.

FieldTypeDescription
dbtCloudAccountIdString
dbtCloudWebhookIdString
dbtCloudBaseUrlString

getDbtConnections (query)

getDbtConnections is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get dbt connections

Returns

[Connection]

Example

query GetDbtConnections {
  getDbtConnections {
    id
    createdTime
    updatedTime
    deletedAt
    uuid
    type
    subtype
    name
    deletionProtection
    jobTypes
    credentialsS3Key
    integrationGatewayCredentialsKey
    data
    identifiers
    createdOn
    updatedOn
    isActive
    disabledOn
    ctpConfig
    resolvedConnectionType
  }
}

Related types

Connection

getDbtJobExecutions (query)

getDbtJobExecutions is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get dbt job executions for a given job uuid

Arguments

ArgumentTypeDescription
firstIntWhen paging forward: the number of items to return (page size)
afterStringWhen paging forward: the cursor of the last item on the previous page of results
lastIntWhen paging backward: the number of items to return (page size)
beforeStringWhen paging backward: the cursor of the first item on the next page of results
jobUuidString!dbt job uuid
jobStartTimeDateTimeBeginning of time window to filter job start times
jobEndTimeDateTimeEnd of time window to filter job start times
jobExecutionUuidUUIDUUID of job execution
sortBy[String]Fields to sort by

Returns

DbtJobExecutionsConnection

Example

query GetDbtJobExecutions($jobUuid: String!) {
  getDbtJobExecutions(jobUuid: $jobUuid) {
    edgeCount
    totalCount
  }
}

Types used only by getDbtJobExecutions

DbtJobExecutionsConnection

Object type. dbt job executions response

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[DbtJobExecutionsEdge]!Contains the nodes in this connection.
edgeCountIntTotal number of edges returned (page count)
totalCountIntTotal number of edges matching filter (total count)
DbtJobExecutionsEdge

Object type. A Relay edge containing a DbtJobExecutions and its cursor.

FieldTypeDescription
nodeDbtJobExecutionThe item at the end of the edge
cursorString!A cursor for use in pagination

Related types

DateTime, DbtJobExecution, PageInfo, UUID

getDbtJobs (query)

getDbtJobs is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get dbt jobs

Arguments

ArgumentTypeDescription
projectIdUUIDdbt project id
offsetInt
beforeString
afterString
firstInt
lastInt

Returns

DbtJobConnection

Example

query GetDbtJobs {
  getDbtJobs {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

DbtJobConnection, UUID

getDbtLastRunResults (query)

getDbtLastRunResults is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get dbt model results for latest relevant run

Arguments

ArgumentTypeDescription
firstIntWhen paging forward: the number of items to return (page size)
afterStringWhen paging forward: the cursor of the last item on the previous page of results
lastIntWhen paging backward: the number of items to return (page size)
beforeStringWhen paging backward: the cursor of the first item on the next page of results
runStartTimeDateTime!Beginning of time window to filter run start times
runEndTimeDateTime!End of time window to filter run start times
mcons[String]!Associated table MCONs to filter run results
status[String]!Status(es) to filter run results
model[String]dbt model ids to filter run results

Returns

DbtModelResultsConnection

Example

query GetDbtLastRunResults($runStartTime: DateTime!, $runEndTime: DateTime!, $mcons: [String]!, $status: [String]!) {
  getDbtLastRunResults(runStartTime: $runStartTime, runEndTime: $runEndTime, mcons: $mcons, status: $status) {
    edgeCount
    totalCount
  }
}

Related types

DateTime, DbtModelResultsConnection

getDbtModelResults (query)

getDbtModelResults is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get dbt model results

Arguments

ArgumentTypeDescription
firstIntWhen paging forward: the number of items to return (page size)
afterStringWhen paging forward: the cursor of the last item on the previous page of results
lastIntWhen paging backward: the number of items to return (page size)
beforeStringWhen paging backward: the cursor of the first item on the next page of results
runStartTimeDateTime!Beginning of time window to filter run start times
runEndTimeDateTime!End of time window to filter run start times
status[String]Status(es) to filter run results
command[String]dbt command(s) to filter run results
model[String]dbt model ids to filter run results
mcon[String]Associated table MCONs to filter run results
jobExecutionIdUUIDFilter by dbt job execution uuid
sortOrderStringSpecify asc to return results by ascending completion time Default: "desc".
resourceTypeNodeTypeFilter by dbt node resource type

Returns

DbtModelResultsConnection

Example

query GetDbtModelResults($runStartTime: DateTime!, $runEndTime: DateTime!) {
  getDbtModelResults(runStartTime: $runStartTime, runEndTime: $runEndTime) {
    edgeCount
    totalCount
  }
}

Types used only by getDbtModelResults

NodeType

Enum type.

ValueDescription
MODEL
SOURCE
TEST
SNAPSHOT
SEED

Related types

DateTime, DbtModelResultsConnection, UUID

getDbtModelResultsCount (query)

getDbtModelResultsCount is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get the count of dbt model results

Arguments

ArgumentTypeDescription
runStartTimeDateTime!Beginning of time window to filter run start times
runEndTimeDateTime!End of time window to filter run start times
status[String]Status(es) to filter run results

Returns

Int

Example

query GetDbtModelResultsCount($runStartTime: DateTime!, $runEndTime: DateTime!) {
  getDbtModelResultsCount(runStartTime: $runStartTime, runEndTime: $runEndTime)
}

Related types

DateTime

getDbtModels (query)

getDbtModels is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get dbt models

Arguments

ArgumentTypeDescription
firstIntWhen paging forward: the number of items to return (page size)
afterStringWhen paging forward: the cursor of the last item on the previous page of results
lastIntWhen paging backward: the number of items to return (page size)
beforeStringWhen paging backward: the cursor of the first item on the next page of results
nameFilterStringFilter the models for which the name start with this string
tableMcons[String]Filter the models for which the mcon is in this list

Returns

DbtModelsConnection

Example

query GetDbtModels {
  getDbtModels {
    edgeCount
    totalCount
  }
}

Types used only by getDbtModels

DbtModelResult

Object type. dbt model result

FieldTypeDescription
nodeIdStringdbt node id
nodeNameStringdbt node name
schemaStringdbt schema name
databaseStringdbt database name
DbtModelsConnection

Object type. dbt models response

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[DbtModelsEdge]!Contains the nodes in this connection.
edgeCountIntTotal number of edges returned (page count)
totalCountIntTotal number of edges matching filter (total count)
DbtModelsEdge

Object type. A Relay edge containing a DbtModels and its cursor.

FieldTypeDescription
nodeDbtModelResultThe item at the end of the edge
cursorString!A cursor for use in pagination

Related types

PageInfo

getDbtNodeResultsCount (query)

getDbtNodeResultsCount is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get the count of dbt nodes by type

Arguments

ArgumentTypeDescription
runStartTimeDateTime!Beginning of time window to filter run start times
runEndTimeDateTime!End of time window to filter run start times
mconString!Associated table MCONs to filter run results
status[String]Status(es) to filter run results
command[String]dbt command(s) to filter run results
model[String]dbt model ids to filter run results
jobExecutionIdUUIDFilter by dbt job execution uuid

Returns

DbtNodeResultCount

Example

query GetDbtNodeResultsCount($runStartTime: DateTime!, $runEndTime: DateTime!, $mcon: String!) {
  getDbtNodeResultsCount(runStartTime: $runStartTime, runEndTime: $runEndTime, mcon: $mcon) {
    nodesCount {
      count
      nodeType
    }
  }
}

Types used only by getDbtNodeResultsCount

DbtNodeResultCount

Object type.

FieldTypeDescription
nodesCount[DbtResultCount]List of dbt nodes and their counts
DbtResultCount

Object type.

FieldTypeDescription
countIntNumber of dbt nodes
nodeTypeStringType of dbt node

Related types

DateTime, UUID

getDbtNodes (query)

getDbtNodes is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get dbt nodes

Arguments

ArgumentTypeDescription
uuidStringFilter by UUID of dbt node
dbtProjectUuidStringFilter by UUID of dbt project
tableMconStringFilter by table MCON (deprecated, use tableMcons instead)
tableMcons[String]Filter by list of table MCON
dbtUniqueIds[String]Filter by list of dbt node unique_id
resourceTypes[String]Filter by dbt node resource type
offsetInt
beforeString
afterString
firstInt
lastInt

Returns

DbtNodeConnection

Example

query GetDbtNodes {
  getDbtNodes {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

DbtNodeConnection

getDbtProjects (query)

getDbtProjects is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get dbt projects

Arguments

ArgumentTypeDescription
uuidStringdbt project id
projectNameStringdbt project name
connectionIdStringdbt connection id
offsetInt
beforeString
afterString
firstInt
lastInt

Returns

DbtProjectConnection

Example

query GetDbtProjects {
  getDbtProjects {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

DbtProjectConnection

getDbtRuns (query)

getDbtRuns is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get dbt runs

Arguments

ArgumentTypeDescription
uuidStringFilter by UUID of dbt node
dbtProjectUuidStringFilter by UUID of dbt project
offsetInt
beforeString
afterString
firstInt
lastInt

Returns

DbtRunConnection

Example

query GetDbtRuns {
  getDbtRuns {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

DbtRunConnection

getDbtRunSteps (query)

getDbtRunSteps is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get dbt run steps. Results are paginated with a default limit of 1000 starting at offset 0. Use limit and offset to page through large result sets.

Arguments

ArgumentTypeDescription
nodeUniqueIdStringdbt test id
tableMconStringMCON of the associated table
completedAtStartTimeDateTimeFilter the results by those that completed on or after this time
completedAtEndTimeDateTimeFilter the results by those that completed before this time
statusStringFilter results by completion status
dbtRunIdStringFilter results by dbt run id
sortFieldStringSort by the fields: created_time, updated_time, started_at, completed_at. The default value is completed_at
sortDirectionStringSort direction: asc or desc. The default value is asc
limitIntMaximum number of results to return (1-10000). The default value is 1000
offsetIntNumber of results to skip before returning (0-10000). The default value is 0

Returns

[DbtRunStep]

Example

query GetDbtRunSteps {
  getDbtRunSteps {
    createdTime
    updatedTime
    uuid
    accountId
    status
    startedAt
    completedAt
    threadId
    executionTime
    message
    rawJson
    compiledCode
    nodeUniqueId
    id
    failedRecordsCount
  }
}

Related types

DateTime, DbtRunStep

getDbtTestResults (query)

getDbtTestResults is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get dbt test results

Arguments

ArgumentTypeDescription
firstIntWhen paging forward: the number of items to return (page size)
afterStringWhen paging forward: the cursor of the last item on the previous page of results
lastIntWhen paging backward: the number of items to return (page size)
beforeStringWhen paging backward: the cursor of the first item on the next page of results
runStartTimeDateTime!Beginning of time window to match run start times
runEndTimeDateTime!End of time window to match run start times
status[String]Status(es) to match run results
model[String]dbt model ids to filter run results
mcon[String]Associated table MCONs to filter run results

Returns

DbtTestResultsConnection

Example

query GetDbtTestResults($runStartTime: DateTime!, $runEndTime: DateTime!) {
  getDbtTestResults(runStartTime: $runStartTime, runEndTime: $runEndTime) {
    edgeCount
    totalCount
  }
}

Types used only by getDbtTestResults

DbtTestResultsConnection

Object type. dbt test results response

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[DbtTestResultsEdge]!Contains the nodes in this connection.
edgeCountIntTotal number of edges returned (page count)
totalCountIntTotal number of edges matching filter (total count)
DbtTestResultsEdge

Object type. A Relay edge containing a DbtTestResults and its cursor.

FieldTypeDescription
nodeDbtTestRunResultThe item at the end of the edge
cursorString!A cursor for use in pagination
DbtTestRunResult

Object type. dbt test run result

FieldTypeDescription
nodeIdStringdbt node id
nodeNameStringdbt node name
runStartedAtDateTimeTime dbt run started
startedAtDateTimeTime dbt node execution started
executionTimeFloatTotal dbt node execution time (in seconds)
statusStringExecution status
runUuidUUIDInternal id of dbt run
mconStringMCON of associated table
jobNameStringDbt job name
jobMconStringMCON of associated dbt job
commandStringdbt command executed
modelIdStringId of associated dbt model
modelNameStringName of associated dbt model

Related types

DateTime, PageInfo, UUID

getDbtTestResultsCount (query)

getDbtTestResultsCount is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get the count of dbt test results

Arguments

ArgumentTypeDescription
runStartTimeDateTime!Beginning of time window to filter run start times
runEndTimeDateTime!End of time window to filter run start times
status[String]Status(es) to filter run results

Returns

Int

Example

query GetDbtTestResultsCount($runStartTime: DateTime!, $runEndTime: DateTime!) {
  getDbtTestResultsCount(runStartTime: $runStartTime, runEndTime: $runEndTime)
}

Related types

DateTime

getDbtUploadUrl (query)

getDbtUploadUrl is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get the Dbt artifacts presigned upload url

Arguments

ArgumentTypeDescription
projectNameString!dbt project name
invocationIdString!dbt invocation id
fileNameString!name of the file for the upload

Returns

String

Example

query GetDbtUploadUrl($projectName: String!, $invocationId: String!, $fileName: String!) {
  getDbtUploadUrl(projectName: $projectName, invocationId: $invocationId, fileName: $fileName)
}

Mutations

sendDbtArtifactsEvent (mutation)

sendDbtArtifactsEvent is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Publish a Dbt artifacts event to Kinesis stream

Arguments

ArgumentTypeDescription
artifactsDbtArtifactsInput!Artifacts to publish
invocationIdUUID!dbt invocation id
jobNameString!dbt job name
projectNameString!dbt project name
resourceIdUUIDOptional resource uuid

Returns

SendDbtArtifactsEvent

Example

mutation SendDbtArtifactsEvent($artifacts: DbtArtifactsInput!, $invocationId: UUID!, $jobName: String!, $projectName: String!) {
  sendDbtArtifactsEvent(artifacts: $artifacts, invocationId: $invocationId, jobName: $jobName, projectName: $projectName) {
    ok
  }
}

Types used only by sendDbtArtifactsEvent

DbtArtifactsInput

Input object type. dbt artifacts

FieldTypeDescription
manifestString!manifest file name
runResultsString!run results file name
logsStringlogs file name
SendDbtArtifactsEvent

Object type. Publish a Dbt artifacts event to Kinesis stream

FieldTypeDescription
okBoolean

Related types

UUID

setDbtCloudEventFilter (mutation)

setDbtCloudEventFilter is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Configure dbt Cloud webhook event filtering for a connection

Arguments

ArgumentTypeDescription
allowedDbtCloudConnections[String!]Deprecated. Use dbtCloudConnectionAllowList. Allow-list of dbt connection ids/names. When provided, only runs whose dbt environment connection id or name is in this list are handled. Only valid when filterDbtCloudEvents is true. Cannot be combined with dbtCloudConnectionAllowList.
allowedDbtCloudEnvironments[String!]dbt environment names to keep, matched case-insensitively. When the list is non-empty, events from other environments or without an environment name are dropped. An empty list clears the allow-list. Omit it or pass null to leave it unchanged.
connectionIdUUID!dbt Cloud webhook connection id
dbtCloudConnectionAllowListDbtCloudConnectionAllowListInputExplicit allow-list of dbt connections. Automatic warehouse matching is not used when it has values. An empty values list clears it. Only valid when filterDbtCloudEvents is true.
filterDbtCloudEventsBoolean!When true, drop runs that don't belong to this connection's warehouse

Returns

SetDbtCloudEventFilter

Example

mutation SetDbtCloudEventFilter($connectionId: UUID!, $filterDbtCloudEvents: Boolean!) {
  setDbtCloudEventFilter(connectionId: $connectionId, filterDbtCloudEvents: $filterDbtCloudEvents) {
    connection {
      id
      createdTime
      updatedTime
      deletedAt
      uuid
      type
      subtype
      name
      deletionProtection
      jobTypes
      credentialsS3Key
      integrationGatewayCredentialsKey
      data
      identifiers
      createdOn
      updatedOn
      isActive
      disabledOn
      ctpConfig
      resolvedConnectionType
    }
  }
}

Types used only by setDbtCloudEventFilter

SetDbtCloudEventFilter

Object type. Configure dbt Cloud webhook event filtering on a connection. When filterDbtCloudEvents is true, runs that don't belong to this connection's warehouse are dropped. Provide dbtCloudConnectionAllowList to drop by an explicit allow-list instead of automatic warehouse matching. It is only valid when filterDbtCloudEvents is true. Provide allowedDbtCloudEnvironments to set the dbt environment allow-list. Both filters are saved together.

FieldTypeDescription
connectionConnection

Related types

Connection, DbtCloudConnectionAllowListInput, UUID

setGroupRepetitiveDbtModelFailures (mutation)

setGroupRepetitiveDbtModelFailures is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Set whether to group dbt model failures with the same error message into the same incident

Arguments

ArgumentTypeDescription
connectionIdUUID!dbt connection id
groupRepetitiveFailuresBoolean!Failures with the same error message should be grouped together

Returns

SetGroupRepetitiveDbtModelFailures

Example

mutation SetGroupRepetitiveDbtModelFailures($connectionId: UUID!, $groupRepetitiveFailures: Boolean!) {
  setGroupRepetitiveDbtModelFailures(connectionId: $connectionId, groupRepetitiveFailures: $groupRepetitiveFailures) {
    connection {
      id
      createdTime
      updatedTime
      deletedAt
      uuid
      type
      subtype
      name
      deletionProtection
      jobTypes
      credentialsS3Key
      integrationGatewayCredentialsKey
      data
      identifiers
      createdOn
      updatedOn
      isActive
      disabledOn
      ctpConfig
      resolvedConnectionType
    }
  }
}

Types used only by setGroupRepetitiveDbtModelFailures

SetGroupRepetitiveDbtModelFailures

Object type. Set whether to group dbt model failures with the same error message into the same incident

FieldTypeDescription
connectionConnection

Related types

Connection, UUID

setGroupRepetitiveDbtSeedFailures (mutation)

setGroupRepetitiveDbtSeedFailures is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Set whether to group dbt seed failures with the same error message into the same incident

Arguments

ArgumentTypeDescription
connectionIdUUID!dbt connection id
groupRepetitiveFailuresBoolean!Failures with the same error message should be grouped together

Returns

SetGroupRepetitiveDbtSeedFailures

Example

mutation SetGroupRepetitiveDbtSeedFailures($connectionId: UUID!, $groupRepetitiveFailures: Boolean!) {
  setGroupRepetitiveDbtSeedFailures(connectionId: $connectionId, groupRepetitiveFailures: $groupRepetitiveFailures) {
    connection {
      id
      createdTime
      updatedTime
      deletedAt
      uuid
      type
      subtype
      name
      deletionProtection
      jobTypes
      credentialsS3Key
      integrationGatewayCredentialsKey
      data
      identifiers
      createdOn
      updatedOn
      isActive
      disabledOn
      ctpConfig
      resolvedConnectionType
    }
  }
}

Types used only by setGroupRepetitiveDbtSeedFailures

SetGroupRepetitiveDbtSeedFailures

Object type. Set whether to group dbt seed failures with the same error message into the same incident

FieldTypeDescription
connectionConnection

Related types

Connection, UUID

setGroupRepetitiveDbtSnapshotFailures (mutation)

setGroupRepetitiveDbtSnapshotFailures is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Set whether to group dbt snapshot failures with the same error message into the same incident

Arguments

ArgumentTypeDescription
connectionIdUUID!dbt connection id
groupRepetitiveFailuresBoolean!Failures with the same error message should be grouped together

Returns

SetGroupRepetitiveDbtSnapshotFailures

Example

mutation SetGroupRepetitiveDbtSnapshotFailures($connectionId: UUID!, $groupRepetitiveFailures: Boolean!) {
  setGroupRepetitiveDbtSnapshotFailures(connectionId: $connectionId, groupRepetitiveFailures: $groupRepetitiveFailures) {
    connection {
      id
      createdTime
      updatedTime
      deletedAt
      uuid
      type
      subtype
      name
      deletionProtection
      jobTypes
      credentialsS3Key
      integrationGatewayCredentialsKey
      data
      identifiers
      createdOn
      updatedOn
      isActive
      disabledOn
      ctpConfig
      resolvedConnectionType
    }
  }
}

Types used only by setGroupRepetitiveDbtSnapshotFailures

SetGroupRepetitiveDbtSnapshotFailures

Object type. Set whether to group dbt snapshot failures with the same error message into the same incident

FieldTypeDescription
connectionConnection

Related types

Connection, UUID

setGroupRepetitiveDbtTestFailures (mutation)

setGroupRepetitiveDbtTestFailures is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Set whether to group dbt test failures with the same error message into the same incident

Arguments

ArgumentTypeDescription
connectionIdUUID!dbt connection id
groupRepetitiveFailuresBoolean!Failures with the same error message should be grouped together

Returns

SetGroupRepetitiveDbtTestFailures

Example

mutation SetGroupRepetitiveDbtTestFailures($connectionId: UUID!, $groupRepetitiveFailures: Boolean!) {
  setGroupRepetitiveDbtTestFailures(connectionId: $connectionId, groupRepetitiveFailures: $groupRepetitiveFailures) {
    connection {
      id
      createdTime
      updatedTime
      deletedAt
      uuid
      type
      subtype
      name
      deletionProtection
      jobTypes
      credentialsS3Key
      integrationGatewayCredentialsKey
      data
      identifiers
      createdOn
      updatedOn
      isActive
      disabledOn
      ctpConfig
      resolvedConnectionType
    }
  }
}

Types used only by setGroupRepetitiveDbtTestFailures

SetGroupRepetitiveDbtTestFailures

Object type. Set whether to group dbt test failures with the same error message into the same incident

FieldTypeDescription
connectionConnection

Related types

Connection, UUID

setGroupRepetitiveDbtTestWarnings (mutation)

setGroupRepetitiveDbtTestWarnings is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Set whether to group dbt test warnings with the same error message into the same incident

Arguments

ArgumentTypeDescription
connectionIdUUID!dbt connection id
groupRepetitiveFailuresBoolean!Test warnings with the same error message should be grouped together

Returns

SetGroupRepetitiveDbtTestWarnings

Example

mutation SetGroupRepetitiveDbtTestWarnings($connectionId: UUID!, $groupRepetitiveFailures: Boolean!) {
  setGroupRepetitiveDbtTestWarnings(connectionId: $connectionId, groupRepetitiveFailures: $groupRepetitiveFailures) {
    connection {
      id
      createdTime
      updatedTime
      deletedAt
      uuid
      type
      subtype
      name
      deletionProtection
      jobTypes
      credentialsS3Key
      integrationGatewayCredentialsKey
      data
      identifiers
      createdOn
      updatedOn
      isActive
      disabledOn
      ctpConfig
      resolvedConnectionType
    }
  }
}

Types used only by setGroupRepetitiveDbtTestWarnings

SetGroupRepetitiveDbtTestWarnings

Object type. Set whether to group dbt test warnings with the same error message into the same incident

FieldTypeDescription
connectionConnection

Related types

Connection, UUID

setJobGeneratesAlerts (mutation)

setJobGeneratesAlerts is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Set whether a dbt job generates alerts

Arguments

ArgumentTypeDescription
generatesAlertsBoolean!should generate alerts
jobIdUUID!dbt job id

Returns

SetJobGeneratesAlerts

Example

mutation SetJobGeneratesAlerts($generatesAlerts: Boolean!, $jobId: UUID!) {
  setJobGeneratesAlerts(generatesAlerts: $generatesAlerts, jobId: $jobId) {
    dbtJob {
      createdTime
      updatedTime
      uuid
      jobId
      jobName
      mcon
      lastRunDate
      lastWebhookReceived
      environmentId
      environmentName
      id
      generatesAlerts
      jobUrl
      etlType
      recentRunCount
    }
  }
}

Types used only by setJobGeneratesAlerts

SetJobGeneratesAlerts

Object type. Set whether a dbt job generates alerts

FieldTypeDescription
dbtJobDbtJob

Related types

DbtJob, UUID

setJobGeneratesIncidents (mutation)

setJobGeneratesIncidents is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Deprecated: Use setJobGeneratesAlerts instead

DEPRECATED. Set whether a dbt job generates incidents

Arguments

ArgumentTypeDescription
generatesIncidentsBoolean!should generate incidents
jobIdUUID!dbt job id

Returns

SetJobGeneratesIncidents

Example

mutation SetJobGeneratesIncidents($generatesIncidents: Boolean!, $jobId: UUID!) {
  setJobGeneratesIncidents(generatesIncidents: $generatesIncidents, jobId: $jobId) {
    dbtJob {
      createdTime
      updatedTime
      uuid
      jobId
      jobName
      mcon
      lastRunDate
      lastWebhookReceived
      environmentId
      environmentName
      id
      generatesAlerts
      jobUrl
      etlType
      recentRunCount
    }
  }
}

Types used only by setJobGeneratesIncidents

SetJobGeneratesIncidents

Object type. Set whether a dbt job generates incidents

FieldTypeDescription
dbtJobDbtJob

Related types

DbtJob, UUID

setProjectGenerateAlertsForModelFailures (mutation)

setProjectGenerateAlertsForModelFailures is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Set whether a dbt project generates alerts for model failures

Arguments

ArgumentTypeDescription
generateAlertsBoolean!should generate alerts
uuidUUID!dbt project uuid

Returns

SetProjectGenerateAlertsForModelFailures

Example

mutation SetProjectGenerateAlertsForModelFailures($generateAlerts: Boolean!, $uuid: UUID!) {
  setProjectGenerateAlertsForModelFailures(generateAlerts: $generateAlerts, uuid: $uuid) {
    dbtProject {
      createdTime
      updatedTime
      uuid
      accountId
      projectId
      projectName
      source
      remoteUrl
      subdirectory
      config
      lastModelImport
      lastTestImport
      name
      lastWebhookReceived
      id
      dbtJobCount
      generateAlertsForModelFailures
      generateAlertsForTestFailures
      generateAlertsForTestWarnings
      generateAlertsForSnapshotFailures
    }
  }
}

Types used only by setProjectGenerateAlertsForModelFailures

SetProjectGenerateAlertsForModelFailures

Object type.

FieldTypeDescription
dbtProjectDbtProject

Related types

DbtProject, UUID

setProjectGenerateAlertsForSeedFailures (mutation)

setProjectGenerateAlertsForSeedFailures is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Set whether a dbt project generates alerts for seed failures

Arguments

ArgumentTypeDescription
generateAlertsBoolean!should generate alerts for seed failures
uuidUUID!dbt project uuid

Returns

SetProjectGenerateAlertsForSeedFailures

Example

mutation SetProjectGenerateAlertsForSeedFailures($generateAlerts: Boolean!, $uuid: UUID!) {
  setProjectGenerateAlertsForSeedFailures(generateAlerts: $generateAlerts, uuid: $uuid) {
    dbtProject {
      createdTime
      updatedTime
      uuid
      accountId
      projectId
      projectName
      source
      remoteUrl
      subdirectory
      config
      lastModelImport
      lastTestImport
      name
      lastWebhookReceived
      id
      dbtJobCount
      generateAlertsForModelFailures
      generateAlertsForTestFailures
      generateAlertsForTestWarnings
      generateAlertsForSnapshotFailures
    }
  }
}

Types used only by setProjectGenerateAlertsForSeedFailures

SetProjectGenerateAlertsForSeedFailures

Object type. Set whether a dbt project generates alerts for seed failures

FieldTypeDescription
dbtProjectDbtProject

Related types

DbtProject, UUID

setProjectGenerateAlertsForSnapshotFailures (mutation)

setProjectGenerateAlertsForSnapshotFailures is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Set whether a dbt project generates alerts for snapshot failures

Arguments

ArgumentTypeDescription
generateAlertsBoolean!should generate alerts for snapshot failures
uuidUUID!dbt project uuid

Returns

SetProjectGenerateAlertsForSnapshotFailures

Example

mutation SetProjectGenerateAlertsForSnapshotFailures($generateAlerts: Boolean!, $uuid: UUID!) {
  setProjectGenerateAlertsForSnapshotFailures(generateAlerts: $generateAlerts, uuid: $uuid) {
    dbtProject {
      createdTime
      updatedTime
      uuid
      accountId
      projectId
      projectName
      source
      remoteUrl
      subdirectory
      config
      lastModelImport
      lastTestImport
      name
      lastWebhookReceived
      id
      dbtJobCount
      generateAlertsForModelFailures
      generateAlertsForTestFailures
      generateAlertsForTestWarnings
      generateAlertsForSnapshotFailures
    }
  }
}

Types used only by setProjectGenerateAlertsForSnapshotFailures

SetProjectGenerateAlertsForSnapshotFailures

Object type.

FieldTypeDescription
dbtProjectDbtProject

Related types

DbtProject, UUID

setProjectGenerateAlertsForTestFailures (mutation)

setProjectGenerateAlertsForTestFailures is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Set whether a dbt project generates alerts for test failures

Arguments

ArgumentTypeDescription
generateAlertsBoolean!should generate alerts
uuidUUID!dbt project uuid

Returns

SetProjectGenerateAlertsForTestFailures

Example

mutation SetProjectGenerateAlertsForTestFailures($generateAlerts: Boolean!, $uuid: UUID!) {
  setProjectGenerateAlertsForTestFailures(generateAlerts: $generateAlerts, uuid: $uuid) {
    dbtProject {
      createdTime
      updatedTime
      uuid
      accountId
      projectId
      projectName
      source
      remoteUrl
      subdirectory
      config
      lastModelImport
      lastTestImport
      name
      lastWebhookReceived
      id
      dbtJobCount
      generateAlertsForModelFailures
      generateAlertsForTestFailures
      generateAlertsForTestWarnings
      generateAlertsForSnapshotFailures
    }
  }
}

Types used only by setProjectGenerateAlertsForTestFailures

SetProjectGenerateAlertsForTestFailures

Object type.

FieldTypeDescription
dbtProjectDbtProject

Related types

DbtProject, UUID

setProjectGenerateAlertsForTestWarnings (mutation)

setProjectGenerateAlertsForTestWarnings is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Set whether a dbt project generates alerts for test warnings

Arguments

ArgumentTypeDescription
generateAlertsBoolean!should generate alerts
uuidUUID!dbt project uuid

Returns

SetProjectGenerateAlertsForTestWarnings

Example

mutation SetProjectGenerateAlertsForTestWarnings($generateAlerts: Boolean!, $uuid: UUID!) {
  setProjectGenerateAlertsForTestWarnings(generateAlerts: $generateAlerts, uuid: $uuid) {
    dbtProject {
      createdTime
      updatedTime
      uuid
      accountId
      projectId
      projectName
      source
      remoteUrl
      subdirectory
      config
      lastModelImport
      lastTestImport
      name
      lastWebhookReceived
      id
      dbtJobCount
      generateAlertsForModelFailures
      generateAlertsForTestFailures
      generateAlertsForTestWarnings
      generateAlertsForSnapshotFailures
    }
  }
}

Types used only by setProjectGenerateAlertsForTestWarnings

SetProjectGenerateAlertsForTestWarnings

Object type.

FieldTypeDescription
dbtProjectDbtProject

Related types

DbtProject, UUID

setProjectGenerateIncidentsForModelFailures (mutation)

setProjectGenerateIncidentsForModelFailures is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Deprecated: Use setProjectGenerateAlertsForModelFailures instead

DEPRECATED. Set whether a dbt project generates incidents for model failures

Arguments

ArgumentTypeDescription
generateIncidentsBoolean!should generate incidents
uuidUUID!dbt project uuid

Returns

SetProjectGenerateIncidentsForModelFailures

Example

mutation SetProjectGenerateIncidentsForModelFailures($generateIncidents: Boolean!, $uuid: UUID!) {
  setProjectGenerateIncidentsForModelFailures(generateIncidents: $generateIncidents, uuid: $uuid) {
    dbtProject {
      createdTime
      updatedTime
      uuid
      accountId
      projectId
      projectName
      source
      remoteUrl
      subdirectory
      config
      lastModelImport
      lastTestImport
      name
      lastWebhookReceived
      id
      dbtJobCount
      generateAlertsForModelFailures
      generateAlertsForTestFailures
      generateAlertsForTestWarnings
      generateAlertsForSnapshotFailures
    }
  }
}

Types used only by setProjectGenerateIncidentsForModelFailures

SetProjectGenerateIncidentsForModelFailures

Object type.

FieldTypeDescription
dbtProjectDbtProject

Related types

DbtProject, UUID

setProjectGenerateIncidentsForTestFailures (mutation)

setProjectGenerateIncidentsForTestFailures is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Deprecated: Use setProjectGenerateAlertsForTestFailures instead

DEPRECATED. Set whether a dbt project generates incidents for test failures

Arguments

ArgumentTypeDescription
generateIncidentsBoolean!should generate incidents
uuidUUID!dbt project uuid

Returns

SetProjectGenerateIncidentsForTestFailures

Example

mutation SetProjectGenerateIncidentsForTestFailures($generateIncidents: Boolean!, $uuid: UUID!) {
  setProjectGenerateIncidentsForTestFailures(generateIncidents: $generateIncidents, uuid: $uuid) {
    dbtProject {
      createdTime
      updatedTime
      uuid
      accountId
      projectId
      projectName
      source
      remoteUrl
      subdirectory
      config
      lastModelImport
      lastTestImport
      name
      lastWebhookReceived
      id
      dbtJobCount
      generateAlertsForModelFailures
      generateAlertsForTestFailures
      generateAlertsForTestWarnings
      generateAlertsForSnapshotFailures
    }
  }
}

Types used only by setProjectGenerateIncidentsForTestFailures

SetProjectGenerateIncidentsForTestFailures

Object type.

FieldTypeDescription
dbtProjectDbtProject

Related types

DbtProject, UUID

setProjectGenerateIncidentsForTestWarnings (mutation)

setProjectGenerateIncidentsForTestWarnings is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Deprecated: Use setProjectGenerateAlertsForTestWarnings instead

DEPRECATED. Set whether a dbt project generates incidents for test warnings

Arguments

ArgumentTypeDescription
generateIncidentsBoolean!should generate incidents
uuidUUID!dbt project uuid

Returns

SetProjectGenerateIncidentsForTestWarnings

Example

mutation SetProjectGenerateIncidentsForTestWarnings($generateIncidents: Boolean!, $uuid: UUID!) {
  setProjectGenerateIncidentsForTestWarnings(generateIncidents: $generateIncidents, uuid: $uuid) {
    dbtProject {
      createdTime
      updatedTime
      uuid
      accountId
      projectId
      projectName
      source
      remoteUrl
      subdirectory
      config
      lastModelImport
      lastTestImport
      name
      lastWebhookReceived
      id
      dbtJobCount
      generateAlertsForModelFailures
      generateAlertsForTestFailures
      generateAlertsForTestWarnings
      generateAlertsForSnapshotFailures
    }
  }
}

Types used only by setProjectGenerateIncidentsForTestWarnings

SetProjectGenerateIncidentsForTestWarnings

Object type.

FieldTypeDescription
dbtProjectDbtProject

Related types

DbtProject, UUID

setProjectPropagateJobTags (mutation)

setProjectPropagateJobTags is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Set whether dbt model tags and meta are propagated onto dbt job assets. When enabled, propagation starts on the next sync; existing runs are not backfilled. Turning it off stops further updates but does not clear previously propagated tags.

Arguments

ArgumentTypeDescription
propagateJobTagsBoolean!whether dbt model tags and meta should be propagated to dbt job assets
uuidUUID!dbt project uuid

Returns

SetProjectPropagateJobTags

Example

mutation SetProjectPropagateJobTags($propagateJobTags: Boolean!, $uuid: UUID!) {
  setProjectPropagateJobTags(propagateJobTags: $propagateJobTags, uuid: $uuid) {
    dbtProject {
      createdTime
      updatedTime
      uuid
      accountId
      projectId
      projectName
      source
      remoteUrl
      subdirectory
      config
      lastModelImport
      lastTestImport
      name
      lastWebhookReceived
      id
      dbtJobCount
      generateAlertsForModelFailures
      generateAlertsForTestFailures
      generateAlertsForTestWarnings
      generateAlertsForSnapshotFailures
    }
  }
}

Types used only by setProjectPropagateJobTags

SetProjectPropagateJobTags

Object type. Set whether dbt model tags and meta are propagated onto dbt job assets.

FieldTypeDescription
dbtProjectDbtProject

Related types

DbtProject, UUID

snoozeDbtNode (mutation)

snoozeDbtNode is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Snooze a DBT node (model/test). Data collection will continue, but no events will be reported.

Arguments

ArgumentTypeDescription
dbtNodeUuidUUIDUUID for DBT node to snooze
snoozeMinutesIntNumber of minutes to snooze

Returns

SnoozeDbtNode

Example

mutation SnoozeDbtNode {
  snoozeDbtNode {
    node {
      createdTime
      updatedTime
      uuid
      accountId
      uniqueId
      database
      schema
      name
      alias
      description
      path
      resourceType
      rawSql
      compiledCode
      compiledPath
      rawNodeJson
      snoozeUntilTime
      id
    }
  }
}

Types used only by snoozeDbtNode

SnoozeDbtNode

Object type. Snooze a DBT node (model/test). Data collection will continue, but no events will be reported.

FieldTypeDescription
nodeDbtNode

Related types

DbtNode, UUID

unsnoozeDbtNode (mutation)

unsnoozeDbtNode is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Un-snooze a DBT node (model/test).

Arguments

ArgumentTypeDescription
dbtNodeUuidUUIDUUID for DBT node to un-snooze

Returns

UnsnoozeDbtNode

Example

mutation UnsnoozeDbtNode {
  unsnoozeDbtNode {
    node {
      createdTime
      updatedTime
      uuid
      accountId
      uniqueId
      database
      schema
      name
      alias
      description
      path
      resourceType
      rawSql
      compiledCode
      compiledPath
      rawNodeJson
      snoozeUntilTime
      id
    }
  }
}

Types used only by unsnoozeDbtNode

UnsnoozeDbtNode

Object type. Un-snooze a DBT node (model/test).

FieldTypeDescription
nodeDbtNode

Related types

DbtNode, UUID

Source: The GraphQL API reference

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