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
| Argument | Type | Description |
|---|---|---|
connectionId | UUID! | dbt Cloud webhook connection id |
Returns
[String!]!
Example
query GetDbtCloudEnvironmentNames($connectionId: UUID!) {
getDbtCloudEnvironmentNames(connectionId: $connectionId)
}Related types
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
| Argument | Type | Description |
|---|---|---|
connectionId | String! | dbt connection id |
Returns
DbtConnectionDetails
Example
query GetDbtConnectionDetails($connectionId: String!) {
getDbtConnectionDetails(connectionId: $connectionId) {
dbtCloudAccountId
dbtCloudWebhookId
dbtCloudBaseUrl
}
}Types used only by getDbtConnectionDetails
getDbtConnectionDetailsDbtConnectionDetails
DbtConnectionDetailsObject type.
| Field | Type | Description |
|---|---|---|
dbtCloudAccountId | String | |
dbtCloudWebhookId | String | |
dbtCloudBaseUrl | String |
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
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
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
| Argument | Type | Description |
|---|---|---|
first | Int | When paging forward: the number of items to return (page size) |
after | String | When paging forward: the cursor of the last item on the previous page of results |
last | Int | When paging backward: the number of items to return (page size) |
before | String | When paging backward: the cursor of the first item on the next page of results |
jobUuid | String! | dbt job uuid |
jobStartTime | DateTime | Beginning of time window to filter job start times |
jobEndTime | DateTime | End of time window to filter job start times |
jobExecutionUuid | UUID | UUID 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
getDbtJobExecutionsDbtJobExecutionsConnection
DbtJobExecutionsConnectionObject type. dbt job executions response
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [DbtJobExecutionsEdge]! | Contains the nodes in this connection. |
edgeCount | Int | Total number of edges returned (page count) |
totalCount | Int | Total number of edges matching filter (total count) |
DbtJobExecutionsEdge
DbtJobExecutionsEdgeObject type. A Relay edge containing a DbtJobExecutions and its cursor.
| Field | Type | Description |
|---|---|---|
node | DbtJobExecution | The item at the end of the edge |
cursor | String! | 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
| Argument | Type | Description |
|---|---|---|
projectId | UUID | dbt project id |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
Example
query GetDbtJobs {
getDbtJobs {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
first | Int | When paging forward: the number of items to return (page size) |
after | String | When paging forward: the cursor of the last item on the previous page of results |
last | Int | When paging backward: the number of items to return (page size) |
before | String | When paging backward: the cursor of the first item on the next page of results |
runStartTime | DateTime! | Beginning of time window to filter run start times |
runEndTime | DateTime! | 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
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
| Argument | Type | Description |
|---|---|---|
first | Int | When paging forward: the number of items to return (page size) |
after | String | When paging forward: the cursor of the last item on the previous page of results |
last | Int | When paging backward: the number of items to return (page size) |
before | String | When paging backward: the cursor of the first item on the next page of results |
runStartTime | DateTime! | Beginning of time window to filter run start times |
runEndTime | DateTime! | 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 |
jobExecutionId | UUID | Filter by dbt job execution uuid |
sortOrder | String | Specify asc to return results by ascending completion time Default: "desc". |
resourceType | NodeType | Filter by dbt node resource type |
Returns
Example
query GetDbtModelResults($runStartTime: DateTime!, $runEndTime: DateTime!) {
getDbtModelResults(runStartTime: $runStartTime, runEndTime: $runEndTime) {
edgeCount
totalCount
}
}Types used only by getDbtModelResults
getDbtModelResultsNodeType
NodeTypeEnum type.
| Value | Description |
|---|---|
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
Returns
Int
Example
query GetDbtModelResultsCount($runStartTime: DateTime!, $runEndTime: DateTime!) {
getDbtModelResultsCount(runStartTime: $runStartTime, runEndTime: $runEndTime)
}Related types
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
| Argument | Type | Description |
|---|---|---|
first | Int | When paging forward: the number of items to return (page size) |
after | String | When paging forward: the cursor of the last item on the previous page of results |
last | Int | When paging backward: the number of items to return (page size) |
before | String | When paging backward: the cursor of the first item on the next page of results |
nameFilter | String | Filter 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
getDbtModelsDbtModelResult
DbtModelResultObject type. dbt model result
| Field | Type | Description |
|---|---|---|
nodeId | String | dbt node id |
nodeName | String | dbt node name |
schema | String | dbt schema name |
database | String | dbt database name |
DbtModelsConnection
DbtModelsConnectionObject type. dbt models response
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [DbtModelsEdge]! | Contains the nodes in this connection. |
edgeCount | Int | Total number of edges returned (page count) |
totalCount | Int | Total number of edges matching filter (total count) |
DbtModelsEdge
DbtModelsEdgeObject type. A Relay edge containing a DbtModels and its cursor.
| Field | Type | Description |
|---|---|---|
node | DbtModelResult | The item at the end of the edge |
cursor | String! | A cursor for use in pagination |
Related types
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
| Argument | Type | Description |
|---|---|---|
runStartTime | DateTime! | Beginning of time window to filter run start times |
runEndTime | DateTime! | End of time window to filter run start times |
mcon | String! | 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 |
jobExecutionId | UUID | Filter 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
getDbtNodeResultsCountDbtNodeResultCount
DbtNodeResultCountObject type.
| Field | Type | Description |
|---|---|---|
nodesCount | [DbtResultCount] | List of dbt nodes and their counts |
DbtResultCount
DbtResultCountObject type.
| Field | Type | Description |
|---|---|---|
count | Int | Number of dbt nodes |
nodeType | String | Type of dbt node |
Related types
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
| Argument | Type | Description |
|---|---|---|
uuid | String | Filter by UUID of dbt node |
dbtProjectUuid | String | Filter by UUID of dbt project |
tableMcon | String | Filter 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 |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
Example
query GetDbtNodes {
getDbtNodes {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
uuid | String | dbt project id |
projectName | String | dbt project name |
connectionId | String | dbt connection id |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
Example
query GetDbtProjects {
getDbtProjects {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
uuid | String | Filter by UUID of dbt node |
dbtProjectUuid | String | Filter by UUID of dbt project |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
Example
query GetDbtRuns {
getDbtRuns {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
nodeUniqueId | String | dbt test id |
tableMcon | String | MCON of the associated table |
completedAtStartTime | DateTime | Filter the results by those that completed on or after this time |
completedAtEndTime | DateTime | Filter the results by those that completed before this time |
status | String | Filter results by completion status |
dbtRunId | String | Filter results by dbt run id |
sortField | String | Sort by the fields: created_time, updated_time, started_at, completed_at. The default value is completed_at |
sortDirection | String | Sort direction: asc or desc. The default value is asc |
limit | Int | Maximum number of results to return (1-10000). The default value is 1000 |
offset | Int | Number of results to skip before returning (0-10000). The default value is 0 |
Returns
Example
query GetDbtRunSteps {
getDbtRunSteps {
createdTime
updatedTime
uuid
accountId
status
startedAt
completedAt
threadId
executionTime
message
rawJson
compiledCode
nodeUniqueId
id
failedRecordsCount
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
first | Int | When paging forward: the number of items to return (page size) |
after | String | When paging forward: the cursor of the last item on the previous page of results |
last | Int | When paging backward: the number of items to return (page size) |
before | String | When paging backward: the cursor of the first item on the next page of results |
runStartTime | DateTime! | Beginning of time window to match run start times |
runEndTime | DateTime! | 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
getDbtTestResultsDbtTestResultsConnection
DbtTestResultsConnectionObject type. dbt test results response
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [DbtTestResultsEdge]! | Contains the nodes in this connection. |
edgeCount | Int | Total number of edges returned (page count) |
totalCount | Int | Total number of edges matching filter (total count) |
DbtTestResultsEdge
DbtTestResultsEdgeObject type. A Relay edge containing a DbtTestResults and its cursor.
| Field | Type | Description |
|---|---|---|
node | DbtTestRunResult | The item at the end of the edge |
cursor | String! | A cursor for use in pagination |
DbtTestRunResult
DbtTestRunResultObject type. dbt test run result
| Field | Type | Description |
|---|---|---|
nodeId | String | dbt node id |
nodeName | String | dbt node name |
runStartedAt | DateTime | Time dbt run started |
startedAt | DateTime | Time dbt node execution started |
executionTime | Float | Total dbt node execution time (in seconds) |
status | String | Execution status |
runUuid | UUID | Internal id of dbt run |
mcon | String | MCON of associated table |
jobName | String | Dbt job name |
jobMcon | String | MCON of associated dbt job |
command | String | dbt command executed |
modelId | String | Id of associated dbt model |
modelName | String | Name of associated dbt model |
Related types
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
Returns
Int
Example
query GetDbtTestResultsCount($runStartTime: DateTime!, $runEndTime: DateTime!) {
getDbtTestResultsCount(runStartTime: $runStartTime, runEndTime: $runEndTime)
}Related types
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
| Argument | Type | Description |
|---|---|---|
projectName | String! | dbt project name |
invocationId | String! | dbt invocation id |
fileName | String! | 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
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
sendDbtArtifactsEventDbtArtifactsInput
DbtArtifactsInputInput object type. dbt artifacts
| Field | Type | Description |
|---|---|---|
manifest | String! | manifest file name |
runResults | String! | run results file name |
logs | String | logs file name |
SendDbtArtifactsEvent
SendDbtArtifactsEventObject type. Publish a Dbt artifacts event to Kinesis stream
| Field | Type | Description |
|---|---|---|
ok | Boolean |
Related types
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
| Argument | Type | Description |
|---|---|---|
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. |
connectionId | UUID! | dbt Cloud webhook connection id |
dbtCloudConnectionAllowList | DbtCloudConnectionAllowListInput | Explicit 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. |
filterDbtCloudEvents | Boolean! | 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
setDbtCloudEventFilterSetDbtCloudEventFilter
SetDbtCloudEventFilterObject 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.
| Field | Type | Description |
|---|---|---|
connection | Connection |
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
| Argument | Type | Description |
|---|---|---|
connectionId | UUID! | dbt connection id |
groupRepetitiveFailures | Boolean! | 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
setGroupRepetitiveDbtModelFailuresSetGroupRepetitiveDbtModelFailures
SetGroupRepetitiveDbtModelFailuresObject type. Set whether to group dbt model failures with the same error message into the same incident
| Field | Type | Description |
|---|---|---|
connection | Connection |
Related types
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
| Argument | Type | Description |
|---|---|---|
connectionId | UUID! | dbt connection id |
groupRepetitiveFailures | Boolean! | 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
setGroupRepetitiveDbtSeedFailuresSetGroupRepetitiveDbtSeedFailures
SetGroupRepetitiveDbtSeedFailuresObject type. Set whether to group dbt seed failures with the same error message into the same incident
| Field | Type | Description |
|---|---|---|
connection | Connection |
Related types
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
| Argument | Type | Description |
|---|---|---|
connectionId | UUID! | dbt connection id |
groupRepetitiveFailures | Boolean! | 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
setGroupRepetitiveDbtSnapshotFailuresSetGroupRepetitiveDbtSnapshotFailures
SetGroupRepetitiveDbtSnapshotFailuresObject type. Set whether to group dbt snapshot failures with the same error message into the same incident
| Field | Type | Description |
|---|---|---|
connection | Connection |
Related types
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
| Argument | Type | Description |
|---|---|---|
connectionId | UUID! | dbt connection id |
groupRepetitiveFailures | Boolean! | 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
setGroupRepetitiveDbtTestFailuresSetGroupRepetitiveDbtTestFailures
SetGroupRepetitiveDbtTestFailuresObject type. Set whether to group dbt test failures with the same error message into the same incident
| Field | Type | Description |
|---|---|---|
connection | Connection |
Related types
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
| Argument | Type | Description |
|---|---|---|
connectionId | UUID! | dbt connection id |
groupRepetitiveFailures | Boolean! | 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
setGroupRepetitiveDbtTestWarningsSetGroupRepetitiveDbtTestWarnings
SetGroupRepetitiveDbtTestWarningsObject type. Set whether to group dbt test warnings with the same error message into the same incident
| Field | Type | Description |
|---|---|---|
connection | Connection |
Related types
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
| Argument | Type | Description |
|---|---|---|
generatesAlerts | Boolean! | should generate alerts |
jobId | UUID! | 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
setJobGeneratesAlertsSetJobGeneratesAlerts
SetJobGeneratesAlertsObject type. Set whether a dbt job generates alerts
| Field | Type | Description |
|---|---|---|
dbtJob | DbtJob |
Related types
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
| Argument | Type | Description |
|---|---|---|
generatesIncidents | Boolean! | should generate incidents |
jobId | UUID! | 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
setJobGeneratesIncidentsSetJobGeneratesIncidents
SetJobGeneratesIncidentsObject type. Set whether a dbt job generates incidents
| Field | Type | Description |
|---|---|---|
dbtJob | DbtJob |
Related types
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
| Argument | Type | Description |
|---|---|---|
generateAlerts | Boolean! | should generate alerts |
uuid | UUID! | 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
setProjectGenerateAlertsForModelFailuresSetProjectGenerateAlertsForModelFailures
SetProjectGenerateAlertsForModelFailuresObject type.
| Field | Type | Description |
|---|---|---|
dbtProject | DbtProject |
Related types
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
| Argument | Type | Description |
|---|---|---|
generateAlerts | Boolean! | should generate alerts for seed failures |
uuid | UUID! | 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
setProjectGenerateAlertsForSeedFailuresSetProjectGenerateAlertsForSeedFailures
SetProjectGenerateAlertsForSeedFailuresObject type. Set whether a dbt project generates alerts for seed failures
| Field | Type | Description |
|---|---|---|
dbtProject | DbtProject |
Related types
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
| Argument | Type | Description |
|---|---|---|
generateAlerts | Boolean! | should generate alerts for snapshot failures |
uuid | UUID! | 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
setProjectGenerateAlertsForSnapshotFailuresSetProjectGenerateAlertsForSnapshotFailures
SetProjectGenerateAlertsForSnapshotFailuresObject type.
| Field | Type | Description |
|---|---|---|
dbtProject | DbtProject |
Related types
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
| Argument | Type | Description |
|---|---|---|
generateAlerts | Boolean! | should generate alerts |
uuid | UUID! | 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
setProjectGenerateAlertsForTestFailuresSetProjectGenerateAlertsForTestFailures
SetProjectGenerateAlertsForTestFailuresObject type.
| Field | Type | Description |
|---|---|---|
dbtProject | DbtProject |
Related types
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
| Argument | Type | Description |
|---|---|---|
generateAlerts | Boolean! | should generate alerts |
uuid | UUID! | 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
setProjectGenerateAlertsForTestWarningsSetProjectGenerateAlertsForTestWarnings
SetProjectGenerateAlertsForTestWarningsObject type.
| Field | Type | Description |
|---|---|---|
dbtProject | DbtProject |
Related types
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
| Argument | Type | Description |
|---|---|---|
generateIncidents | Boolean! | should generate incidents |
uuid | UUID! | 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
setProjectGenerateIncidentsForModelFailuresSetProjectGenerateIncidentsForModelFailures
SetProjectGenerateIncidentsForModelFailuresObject type.
| Field | Type | Description |
|---|---|---|
dbtProject | DbtProject |
Related types
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
| Argument | Type | Description |
|---|---|---|
generateIncidents | Boolean! | should generate incidents |
uuid | UUID! | 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
setProjectGenerateIncidentsForTestFailuresSetProjectGenerateIncidentsForTestFailures
SetProjectGenerateIncidentsForTestFailuresObject type.
| Field | Type | Description |
|---|---|---|
dbtProject | DbtProject |
Related types
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
| Argument | Type | Description |
|---|---|---|
generateIncidents | Boolean! | should generate incidents |
uuid | UUID! | 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
setProjectGenerateIncidentsForTestWarningsSetProjectGenerateIncidentsForTestWarnings
SetProjectGenerateIncidentsForTestWarningsObject type.
| Field | Type | Description |
|---|---|---|
dbtProject | DbtProject |
Related types
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
| Argument | Type | Description |
|---|---|---|
propagateJobTags | Boolean! | whether dbt model tags and meta should be propagated to dbt job assets |
uuid | UUID! | 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
setProjectPropagateJobTagsSetProjectPropagateJobTags
SetProjectPropagateJobTagsObject type. Set whether dbt model tags and meta are propagated onto dbt job assets.
| Field | Type | Description |
|---|---|---|
dbtProject | DbtProject |
Related types
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
| Argument | Type | Description |
|---|---|---|
dbtNodeUuid | UUID | UUID for DBT node to snooze |
snoozeMinutes | Int | Number 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
snoozeDbtNodeSnoozeDbtNode
SnoozeDbtNodeObject type. Snooze a DBT node (model/test). Data collection will continue, but no events will be reported.
| Field | Type | Description |
|---|---|---|
node | DbtNode |
Related types
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
| Argument | Type | Description |
|---|---|---|
dbtNodeUuid | UUID | UUID 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
unsnoozeDbtNodeUnsnoozeDbtNode
UnsnoozeDbtNodeObject type. Un-snooze a DBT node (model/test).
| Field | Type | Description |
|---|---|---|
node | DbtNode |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
