Connections and integrations, part 1 of 2 (GraphQL)

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

Queries

getDatabricksWarehouseInfo (query)

getDatabricksWarehouseInfo 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 state of the databricks warehouse.

Arguments

ArgumentTypeDescription
connectionIdUUIDA Databricks connection UUID.
connectionConfigDatabricksSqlWarehouseConnectionInputConnection config for new Databricks SQL Warehouse connection

Returns

DatabricksWarehouseResponse

Example

query GetDatabricksWarehouseInfo {
  getDatabricksWarehouseInfo {
    warehouseId
    state
  }
}

Types used only by getDatabricksWarehouseInfo

DatabricksWarehouseResponse

Object type. Databricks warehouse details.

FieldTypeDescription
warehouseIdStringID of the warehouse.
stateStringState of the warehouse.

Related types

DatabricksSqlWarehouseConnectionInput, UUID

getEtlContainers (query)

getEtlContainers 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.

Retrieve the list of ETL containers in the current user's account

Returns

[EtlContainer]

Example

query GetEtlContainers {
  getEtlContainers {
    id
    createdTime
    updatedTime
    deletedAt
    uuid
    type
    name
    isSynthetic
    lastWebhookReceived
    jobCount
    supportsEtlJobRuns
  }
}

Related types

EtlContainer

getFieldBiLineage (query)

getFieldBiLineage 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.

Arguments

ArgumentTypeDescription
fullTableIdString
fieldNameString
lastSeenRangeStartDateTime

Returns

[FieldDownstreamBi]

Example

query GetFieldBiLineage {
  getFieldBiLineage {
    biAccountId
    biIdentifier
    biName
    biType
    biNodeId
    lastSeen
  }
}

Types used only by getFieldBiLineage

FieldDownstreamBi

Object type.

FieldTypeDescription
biAccountIdString
biIdentifierString
biNameString
biTypeString
biNodeIdString
lastSeenDateTime

Related types

DateTime

getIntegrationKeys (query)

getIntegrationKeys 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.

Retrieve integration keys in the current user's account

Arguments

ArgumentTypeDescription
scopeStringOptional scope to filter keys by
resourceUuidUUIDOptional, return only keys including this resource id

Returns

[IntegrationKeyMetadata]

Example

query GetIntegrationKeys {
  getIntegrationKeys {
    id
    description
    scope
    createdTime
  }
}

Related types

IntegrationKeyMetadata, UUID

getPowerBiEtlObjectTypes (query)

getPowerBiEtlObjectTypes 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

Power BI ETL object types a Power BI connection collects as jobs. Returns only dataflows when no selection is stored, and can return an empty list. Fails with VALIDATION_ERROR when the stored selection holds an unknown type, because collection fails until the object types are set again.

Arguments

ArgumentTypeDescription
connectionIdUUID!ID of the Power BI connection with ETL enabled.

Returns

[PowerBiEtlObjectType!]!

Example

query GetPowerBiEtlObjectTypes($connectionId: UUID!) {
  getPowerBiEtlObjectTypes(connectionId: $connectionId)
}

Related types

PowerBiEtlObjectType, UUID

getQueryLogHashesThatAffectTheseTables (query)

getQueryLogHashesThatAffectTheseTables 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 query log aggregates (AKA updates to these tables)

Arguments

ArgumentTypeDescription
dwIdUUIDWarehouse the tables are contained in. Required when using fullTableIds
fullTableIds[String]Deprecated - use mcons. Ignored if mcons are present
mcons[String]List of mcons to get details for
limitIntLimit results returned
offsetIntOffset when paging
startTimeDateTimeFilter for queries newer than this
endTimeDateTimeFilter for queries older than this
users[String]List of users to get details for
queryCharactersIntThe number of characters in the query to return

Returns

[QueryLogHashes]

Example

query GetQueryLogHashesThatAffectTheseTables {
  getQueryLogHashesThatAffectTheseTables {
    fullTableId
    offset
  }
}

Types used only by getQueryLogHashesThatAffectTheseTables

QueryLogHash

Object type.

FieldTypeDescription
queryStringA substring of the query containing the first n characters defined by the query_characters parameter in the query
queryHashStringHash of the query
userEmailStringUser email
dayDateTimeDay of the query log hash
countIntCount of the number of queries with the same hash in the day
categoryStringCategory of the query log hash
averageElapsedTimeIntAverage elapsed time of the query log hash in milliseconds
QueryLogHashes

Object type.

FieldTypeDescription
fullTableIdString
offsetInt
queryHashes[QueryLogHash]

Related types

DateTime, UUID

getWarehouse (query)

getWarehouse 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.

Arguments

ArgumentTypeDescription
uuidUUID

Returns

Warehouse

Example

query GetWarehouse {
  getWarehouse {
    id
    createdTime
    updatedTime
    uuid
    name
    connectionType
    credentialsS3Key
    bqProjectId
    createdOn
    isDeleted
    deletedAt
    config
    userHasAccessToSampleData
    dataSamplingEnabled
    dataSamplingRestricted
    valueIngestionEnabled
    valueBasedThresholdEnabled
    labeledValueBasedThresholdEnabled
    customSqlSamplingSupported
    customSqlSamplingEnabled
  }
}

Related types

UUID, Warehouse

getWarehouseConnections (query)

getWarehouseConnections 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 connections of a warehouse.

Arguments

ArgumentTypeDescription
warehouseUuidUUID!Warehouse UUID
jobTypes[String]Job types to filter connections
domainUuids[UUID!]Keep only connections an authorization group links to one of these domains, by restricting its members to both. Domains you cannot see are ignored.

Returns

[Connection]

Example

query GetWarehouseConnections($warehouseUuid: UUID!) {
  getWarehouseConnections(warehouseUuid: $warehouseUuid) {
    id
    createdTime
    updatedTime
    deletedAt
    uuid
    type
    subtype
    name
    deletionProtection
    jobTypes
    credentialsS3Key
    integrationGatewayCredentialsKey
    data
    identifiers
    createdOn
    updatedOn
    isActive
    disabledOn
    ctpConfig
    resolvedConnectionType
  }
}

Related types

Connection, UUID

getWarehouses (query)

getWarehouses 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 warehouses accessible to the current user

Arguments

ArgumentTypeDescription
domainUuidUUIDFilter warehouses by domain UUID. Use domainUuids to filter by several domains
domainUuids[UUID!]Filter warehouses by several domain UUIDs; a warehouse in any one of them matches. Cannot be combined with domainUuid

Returns

[Warehouse!]!

Example

query GetWarehouses {
  getWarehouses {
    id
    createdTime
    updatedTime
    uuid
    name
    connectionType
    credentialsS3Key
    bqProjectId
    createdOn
    isDeleted
    deletedAt
    config
    userHasAccessToSampleData
    dataSamplingEnabled
    dataSamplingRestricted
    valueIngestionEnabled
    valueBasedThresholdEnabled
    labeledValueBasedThresholdEnabled
    customSqlSamplingSupported
    customSqlSamplingEnabled
  }
}

Related types

UUID, Warehouse

getWarehouseTagsCollectionSetting (query)

getWarehouseTagsCollectionSetting 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

Returns if tags collection setting is enabled for a warehouse

Arguments

ArgumentTypeDescription
warehouseUuidUUID!Warehouse UUID

Returns

WarehouseTagsCollectionSetting

Example

query GetWarehouseTagsCollectionSetting($warehouseUuid: UUID!) {
  getWarehouseTagsCollectionSetting(warehouseUuid: $warehouseUuid) {
    isEnabled
  }
}

Types used only by getWarehouseTagsCollectionSetting

WarehouseTagsCollectionSetting

Object type.

FieldTypeDescription
isEnabledBoolean

Related types

UUID

testExistingConnection (query)

testExistingConnection 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.

Test an existing connection's credentials against the account's data collector

Arguments

ArgumentTypeDescription
connectionIdUUIDAn existing connection's UUID

Returns

TestConnectionResponse

Example

query TestExistingConnection {
  testExistingConnection {
    success
  }
}

Related types

TestConnectionResponse, UUID

testHttpConnection (query)

testHttpConnection 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

Executes a GET request to test access to the specified URL from the platform service

Arguments

ArgumentTypeDescription
urlStringURL to test
includeResponseBooleanInclude the response from the URL, defaults to false
ignoreAgentBooleanExecutes the request in the platform service, even if a remote agent is configured
timeoutIntOptional timeout to use (in seconds), defaults to 10
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services

Returns

TestConnectionResponse

Example

query TestHttpConnection {
  testHttpConnection {
    success
  }
}

Related types

TestConnectionResponse, UUID

testNotificationIntegration (query)

testNotificationIntegration 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.

Tests an integration is reachable by sending a sample alert. Note - rules are not evaluated.

Arguments

ArgumentTypeDescription
settingIdUUIDUUID for the notification setting.

Returns

Boolean

Example

query TestNotificationIntegration {
  testNotificationIntegration
}

Related types

UUID

testTcpOpenConnection (query)

testTcpOpenConnection 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.

Tests if a destination exists and accepts requests. Opens a TCP Socket to a specific port.

Arguments

ArgumentTypeDescription
hostStringHost to check
portIntPort to check
timeoutIntTimeout in seconds
dcIdUUID[Deprecated] Use serviceUuid instead
ignoreAgentBooleanPerform the DNS Lookup in the platform service, even if a remote agent is configured
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services

Returns

TestConnectionResponse

Example

query TestTcpOpenConnection {
  testTcpOpenConnection {
    success
  }
}

Related types

TestConnectionResponse, UUID

testTelnetConnection (query)

testTelnetConnection 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.

Checks if telnet connection is usable.

Arguments

ArgumentTypeDescription
hostStringHost to check
portIntPort to check
timeoutIntTimeout in seconds
dcIdUUID[Deprecated] Use serviceUuid instead
ignoreAgentBooleanPerform the DNS Lookup in the platform service, even if a remote agent is configured
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services

Returns

TestConnectionResponse

Example

query TestTelnetConnection {
  testTelnetConnection {
    success
  }
}

Related types

TestConnectionResponse, UUID

validateConnectionType (query)

validateConnectionType 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.

Validate that the connection type can be added to the warehouse type

Arguments

ArgumentTypeDescription
warehouseTypeString!The type of the warehouse to add the connection to
connectionTypeString!The type of the connection to add

Returns

Boolean

Example

query ValidateConnectionType($warehouseType: String!, $connectionType: String!) {
  validateConnectionType(warehouseType: $warehouseType, connectionType: $connectionType)
}

Mutations

addBiConnection (mutation)

addBiConnection 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.

Add a bi connection and setup any associated jobs

Arguments

ArgumentTypeDescription
connectionNameStringProvide a friendly name for the BI connection.
connectionTypeString!The type of connection to add
dcIdUUIDDC UUID. To disambiguate accounts with multiple collectors
jobTypes[String]Specify job types for the connection. Uses connection default otherwise
keyStringTemp key for testing connections that require credentials.
nameStringProvide a friendly name for the BI integration.
resourceIdUUIDBI Container UUID. Add the connection under the same resource UUID.

Returns

AddBiConnectionMutation

Example

mutation AddBiConnection($connectionType: String!) {
  addBiConnection(connectionType: $connectionType) {
    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 addBiConnection

AddBiConnectionMutation

Object type. Add a bi connection and setup any associated jobs

FieldTypeDescription
connectionConnection

Related types

Connection, UUID

addConnection (mutation)

addConnection 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.

Add a connection and setup any associated jobs. Creates a warehouse if not specified

Arguments

ArgumentTypeDescription
agentObservabilityTraceStoreBooleanClickHouse only. For connections using customer-managed credentials: true marks the connection as an Agent Observability trace store, false records that it is not one, and null / omitted records nothing. When Monte Carlo manages the credentials, the classification derives from the connection's database name instead: it is recorded whenever the database is otel_traces, and passing this argument is rejected.
allowedDbtCloudConnections[String!]Deprecated. Use dbtCloudConnectionAllowList. dbt Cloud webhook only: explicit allow-list of dbt connection ids/names. A run is kept only if its environment connection id or name is listed. Only valid when filterDbtCloudEvents is true. Cannot be combined with dbtCloudConnectionAllowList.
allowedDbtCloudEnvironments[String!]dbt Cloud webhook only: dbt environment names to keep. When non-empty, events from other environments, or without an environment name, are dropped.
connectionNameStringProvide a friendly name for the connection when creating
connectionTypeString!The type of connection to add
createWarehouseTypeStringCreate a new warehouse for the connection
ctpConfigJSONStringCTP pipeline config to associate with the connection after creation.
dbtCloudConnectionAllowListDbtCloudConnectionAllowListInputdbt Cloud webhook only: explicit allow-list of dbt connections. Only valid when filterDbtCloudEvents is true.
dcIdUUIDDC UUID. To disambiguate accounts with multiple collectors
dwIdUUIDAdd connection to an existing warehouse
filterDbtCloudEventsBooleandbt Cloud webhook only. true: drop runs that don't belong to this connection's warehouse. false: explicitly disable filtering — runs are never dropped, though would-be drops are still logged. null / omitted: same runtime behavior as false (filtering left off), but no filtering preference is recorded on the connection.
isActiveBooleanSet the connection to active or inactive (default: true) Default: true.
jobLimitsJSONStringCustomize job operations for all job types
jobTypes[String]Specify job types for the connection. Uses connection default otherwise
keyString!Temp key from testing connections
nameStringProvide a friendly name for the warehouse when creating

Returns

AddConnectionMutation

Example

mutation AddConnection($connectionType: String!, $key: String!) {
  addConnection(connectionType: $connectionType, key: $key) {
    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 addConnection

AddConnectionMutation

Object type. Add a connection and setup any associated jobs. Creates a warehouse if not specified

FieldTypeDescription
connectionConnection

Related types

Connection, DbtCloudConnectionAllowListInput, JSONString, UUID

addDatabricksConnection (mutation)

addDatabricksConnection 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.

Add a databricks connection and setup any associated jobs. Creates a warehouse if not specified

Arguments

ArgumentTypeDescription
connectionNameStringProvide a friendly name for the connection being added to the integration
connectionTypeString!The type of connection to add
createWarehouseTypeStringCreate a new warehouse for the connection
dcIdUUIDDC UUID. To disambiguate accounts with multiple collectors
dwIdUUIDAdd connection to an existing warehouse
jobLimitsJSONString!Customize job operations for all job types
jobTypes[String]Specify job types for the connection. Uses connection default otherwise
keyString!Temp key from testing connections
nameStringProvide a friendly name for the integration when creating

Returns

AddDatabricksConnectionMutation

Example

mutation AddDatabricksConnection($connectionType: String!, $jobLimits: JSONString!, $key: String!) {
  addDatabricksConnection(connectionType: $connectionType, jobLimits: $jobLimits, key: $key) {
    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 addDatabricksConnection

AddDatabricksConnectionMutation

Object type. Add a databricks connection and setup any associated jobs. Creates a warehouse if not specified

FieldTypeDescription
connectionConnection

Related types

Connection, JSONString, UUID

addEtlConnection (mutation)

addEtlConnection 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.

Add an etl connection and setup any associated jobs

Arguments

ArgumentTypeDescription
connectionNameStringProvide a friendly name for the ETL connection
connectionTypeString!The type of connection to add
dcIdUUIDDC UUID. To disambiguate accounts with multiple collectors
keyStringTemp key for testing connections that require credentials.
nameString!Provide a friendly name for the ETL integration.

Returns

AddEtlConnectionMutation

Example

mutation AddEtlConnection($connectionType: String!, $name: String!) {
  addEtlConnection(connectionType: $connectionType, name: $name) {
    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 addEtlConnection

AddEtlConnectionMutation

Object type. Add an etl connection and setup any associated jobs

FieldTypeDescription
connectionConnection

Related types

Connection, UUID

addPowerBiDataflowsConnection (mutation)

addPowerBiDataflowsConnection 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

Enable ETL monitoring on a Power BI connection

Arguments

ArgumentTypeDescription
connectionIdUUID!Enable ETL monitoring on this existing Power BI connection, reusing its credentials and data collector.
nameStringFriendly name for the Power BI ETL integration (the ETL container).

Returns

AddPowerBiDataflowsConnection

Example

mutation AddPowerBiDataflowsConnection($connectionId: UUID!) {
  addPowerBiDataflowsConnection(connectionId: $connectionId) {
    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 addPowerBiDataflowsConnection

AddPowerBiDataflowsConnection

Object type. Enable ETL monitoring on an existing Power BI connection. Power BI ETL objects such as dataflows are collected as jobs, with their refresh runs, alongside the connection's BI reports.

FieldTypeDescription
connectionConnection

Related types

Connection, UUID

addRedshiftConsumerConnection (mutation)

addRedshiftConsumerConnection 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

Add a Redshift Consumer connection for datashare lineage.

Arguments

ArgumentTypeDescription
connectionNameStringProvide a friendly name for the consumer connection when creating
dcIdUUIDDC UUID. To disambiguate accounts with multiple collectors
isActiveBooleanSet the connection to active or inactive (default: true) Default: true.
jobLimitsJSONStringCustomize job operations for all job types
jobTypes[String]Specify job types for the connection. Uses connection default otherwise
keyString!Temp key from testing connections
producerResourceIdUUID!The warehouse UUID of the parent Redshift warehouse.

Returns

AddRedshiftConsumerConnectionMutation

Example

mutation AddRedshiftConsumerConnection($key: String!, $producerResourceId: UUID!) {
  addRedshiftConsumerConnection(key: $key, producerResourceId: $producerResourceId) {
    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 addRedshiftConsumerConnection

AddRedshiftConsumerConnectionMutation

Object type. Add a Redshift consumer connection. Used for DataShare lineage.

FieldTypeDescription
connectionConnection

Related types

Connection, JSONString, UUID

addSalesforceDataCloudEtlConnection (mutation)

addSalesforceDataCloudEtlConnection 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

Enable ETL monitoring on a Salesforce Data Cloud connection

Arguments

ArgumentTypeDescription
connectionIdUUID!Enable ETL on this existing Salesforce Data Cloud connection, reusing its credentials and data collector.
nameStringFriendly name for the Salesforce Data Cloud ETL integration (the ETL container). Defaults to a name derived from the connection, which keeps multiple Data Cloud connections in one account from colliding.

Returns

AddSalesforceDataCloudEtlConnection

Example

mutation AddSalesforceDataCloudEtlConnection($connectionId: UUID!) {
  addSalesforceDataCloudEtlConnection(connectionId: $connectionId) {
    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 addSalesforceDataCloudEtlConnection

AddSalesforceDataCloudEtlConnection

Object type. Enable ETL monitoring on an existing Salesforce Data Cloud connection. Data Cloud ETL objects such as data streams are collected as jobs alongside the connection's existing metadata and query monitoring.

FieldTypeDescription
connectionConnection

Related types

Connection, UUID

addSnowflakeTasksConnection (mutation)

addSnowflakeTasksConnection 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

Enable Snowflake Tasks (ETL) monitoring on a Snowflake connection

Arguments

ArgumentTypeDescription
connectionIdUUIDEnable Tasks on this existing Snowflake connection, reusing its credentials and warehouse. Provide exactly one of connectionId or dwId.
connectionNameStringFriendly name for the new connection. Used with dwId only; ignored when connectionId is provided.
dwIdUUIDCreate a new Snowflake connection (e.g. with a task-scoped role / different credentials) on this existing Snowflake warehouse, then enable Tasks on it. Requires key. Provide exactly one of connectionId or dwId.
keyStringTemp credentials key. Required with dwId (creating a new connection); ignored when connectionId is provided.
nameStringFriendly name for the Snowflake Tasks integration (the ETL container). Applies to both paths.

Returns

AddSnowflakeTasksConnection

Example

mutation AddSnowflakeTasksConnection {
  addSnowflakeTasksConnection {
    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 addSnowflakeTasksConnection

AddSnowflakeTasksConnection

Object type. Enable Snowflake Tasks (ETL) monitoring on an existing Snowflake warehouse. Provide exactly one of connectionId (enable Tasks on an existing Snowflake connection) or dwId (create a new Snowflake connection on an existing warehouse, with key).

FieldTypeDescription
connectionConnection

Related types

Connection, UUID

createIntegrationKey (mutation)

createIntegrationKey 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.

Create an integration key

Arguments

ArgumentTypeDescription
descriptionString!Key description
scopeIntegrationKeyScope!Key scope (integration it can be used for)
warehouseIds[UUID]UUID(s) of warehouse(s) associated with key

Returns

CreateIntegrationKey

Example

mutation CreateIntegrationKey($description: String!, $scope: IntegrationKeyScope!) {
  createIntegrationKey(description: $description, scope: $scope) {
    key {
      id
      secret
    }
  }
}

Types used only by createIntegrationKey

CreateIntegrationKey

Object type. Create an integration key

FieldTypeDescription
keyIntegrationKeyIntegration key id and secret (only available once).
IntegrationKeyScope

Enum type.

ValueDescription
CircuitBreaker
DatabricksWebhook
DbtCloudWebhook
S3PresignedUrl
Spark
AirflowCallbacks
Agent
SCIM_v2
AzureDevopsWebhook
MCP
OpenTelemetry
Ingestion

Related types

IntegrationKey, UUID

deleteIntegration (mutation)

deleteIntegration 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

Deletes an integration and it's connections

Arguments

ArgumentTypeDescription
integrationIdUUID!ID of the integration to delete

Returns

DeleteIntegrationMutation

Example

mutation DeleteIntegration($integrationId: UUID!) {
  deleteIntegration(integrationId: $integrationId) {
    success
  }
}

Types used only by deleteIntegration

DeleteIntegrationMutation

Object type. Delete an integration and all its contained connections

FieldTypeDescription
successBoolean

Related types

UUID

deleteIntegrationKey (mutation)

deleteIntegrationKey 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.

Delete an integration key

Arguments

ArgumentTypeDescription
keyIdString!Integration key id

Returns

DeleteIntegrationKey

Example

mutation DeleteIntegrationKey($keyId: String!) {
  deleteIntegrationKey(keyId: $keyId) {
    deleted
  }
}

Types used only by deleteIntegrationKey

DeleteIntegrationKey

Object type. Delete an integration key

FieldTypeDescription
deletedBooleanTrue if the key was deleted, false otherwise

matchAndCreateBiWarehouseSources (mutation)

matchAndCreateBiWarehouseSources 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.

Create or update a BI warehouse source. If BI warehouse source details are provided in the bi_warehouse_sources parameter then those are saved. Else, details are pulled from the BI APIs, matched with warehouses in Monte Carlo and details saved only if there is a full match.

Arguments

ArgumentTypeDescription
biContainerIdUUID!Monte Carlo UUID of the BI container
biWarehouseSources[BiWarehouseSourcesInput]BI warehouse source details that should be saved in Monte Carlo.

Returns

MatchAndCreateBiWarehouseSources

Example

mutation MatchAndCreateBiWarehouseSources($biContainerId: UUID!) {
  matchAndCreateBiWarehouseSources(biContainerId: $biContainerId) {
    matchingBiWarehouseSources {
      matchSuccessful
      rawBiWarehouseConnections
      rawWarehouseConnections
    }
  }
}

Types used only by matchAndCreateBiWarehouseSources

BiWarehouseSources

Object type.

FieldTypeDescription
warehouseResourceIdString!Warehouse resource ID. This is a Monte Carlo ID
warehouseResourceTypeString!Warehouse type. Examples: snowflake, redshift, etc.
biWarehouseIdString!The warehouse ID in the BI instance of the customer. This is an ID in the customer ID space and is not a Monte Carlo ID.
BiWarehouseSourcesInput

Input object type.

FieldTypeDescription
warehouseResourceIdString!Warehouse resource ID. This is a Monte Carlo ID
warehouseResourceTypeString!Warehouse type. Examples: snowflake, redshift, etc.
biWarehouseIdString!The warehouse ID in the BI instance of the customer. This is an ID in the customer ID space and is not a Monte Carlo ID.
MatchAndCreateBiWarehouseSources

Object type. Create or update a BI warehouse source. If BI warehouse source details are provided in the bi_warehouse_sources parameter then those are saved. Else, details are pulled from the BI APIs, matched with warehouses in Monte Carlo and details saved only if there is a full match.

FieldTypeDescription
matchingBiWarehouseSourcesMatchingBiWarehouseSources
MatchingBiWarehouseSources

Object type.

FieldTypeDescription
matchSuccessfulBooleanIndicates whether all BI source warehouses could be matched with a warehouse stored in MC. Only true if all BI source warehouses could be matched.
biWarehouseSources[BiWarehouseSources]Details of matched warehouses.
rawBiWarehouseConnections[String]Raw response from customer's BI system listing the warehouses it is connected to. Only set if match_successful is False.
rawWarehouseConnections[String]Details of warehouses that are in MC. Only set if match_successful is False.

Related types

UUID

removeConnection (mutation)

removeConnection 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.

Remove an integration connection and deschedule any associated jobs

Arguments

ArgumentTypeDescription
connectionIdUUID!ID of the connection to remove

Returns

RemoveConnectionMutation

Example

mutation RemoveConnection($connectionId: UUID!) {
  removeConnection(connectionId: $connectionId) {
    success
  }
}

Types used only by removeConnection

RemoveConnectionMutation

Object type. Remove an integration connection and deschedule any associated jobs

FieldTypeDescription
successBoolean

Related types

UUID

removeConnectionCtpConfig (mutation)

removeConnectionCtpConfig 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

Remove the custom CTP config from a connection.

Arguments

ArgumentTypeDescription
connectionIdUUID!UUID of the connection to update.

Returns

RemoveConnectionCtpConfig

Example

mutation RemoveConnectionCtpConfig($connectionId: UUID!) {
  removeConnectionCtpConfig(connectionId: $connectionId) {
    success
  }
}

Types used only by removeConnectionCtpConfig

RemoveConnectionCtpConfig

Object type. Remove the custom CTP config from a connection.

FieldTypeDescription
successBoolean!

Related types

UUID

removePowerBiDataflowsFromConnection (mutation)

removePowerBiDataflowsFromConnection 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

Stop ETL monitoring on a Power BI connection

Arguments

ArgumentTypeDescription
connectionIdUUID!ID of the Power BI connection to stop ETL monitoring on.

Returns

RemovePowerBiDataflowsFromConnection

Example

mutation RemovePowerBiDataflowsFromConnection($connectionId: UUID!) {
  removePowerBiDataflowsFromConnection(connectionId: $connectionId) {
    success
  }
}

Types used only by removePowerBiDataflowsFromConnection

RemovePowerBiDataflowsFromConnection

Object type. Stop ETL monitoring on a Power BI connection. ETL job monitoring is turned off and the connection's BI reports monitoring is kept.

FieldTypeDescription
successBoolean!

Related types

UUID

removeSalesforceDataCloudEtlFromConnection (mutation)

removeSalesforceDataCloudEtlFromConnection 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

Stop ETL monitoring on a Salesforce Data Cloud connection

Arguments

ArgumentTypeDescription
connectionIdUUID!ID of the Salesforce Data Cloud connection to stop ETL monitoring on.

Returns

RemoveSalesforceDataCloudEtlFromConnection

Example

mutation RemoveSalesforceDataCloudEtlFromConnection($connectionId: UUID!) {
  removeSalesforceDataCloudEtlFromConnection(connectionId: $connectionId) {
    success
  }
}

Types used only by removeSalesforceDataCloudEtlFromConnection

RemoveSalesforceDataCloudEtlFromConnection

Object type. Stop ETL monitoring on a Salesforce Data Cloud connection. ETL job monitoring is turned off and the connection's existing metadata and query monitoring is kept.

FieldTypeDescription
successBoolean!

Related types

UUID

removeSnowflakeTasksFromConnection (mutation)

removeSnowflakeTasksFromConnection 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

Stop monitoring Snowflake Tasks on a Snowflake connection

Arguments

ArgumentTypeDescription
connectionIdUUID!ID of the Snowflake connection to stop monitoring Tasks on.

Returns

RemoveSnowflakeTasksFromConnection

Example

mutation RemoveSnowflakeTasksFromConnection($connectionId: UUID!) {
  removeSnowflakeTasksFromConnection(connectionId: $connectionId) {
    success
  }
}

Types used only by removeSnowflakeTasksFromConnection

RemoveSnowflakeTasksFromConnection

Object type. Stop monitoring Snowflake Tasks on a connection. If the connection is used only for Snowflake Tasks it is removed; otherwise Snowflake Tasks monitoring is turned off and the connection's other monitoring is kept.

FieldTypeDescription
successBoolean!

Related types

UUID

saveSlackCredentials (mutation)

saveSlackCredentials 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.

Arguments

ArgumentTypeDescription
keyStringSlack installation UUID (deprecated, use slackInstallationUuid
slackAppTypeSlackAppTypeSlack App Type
slackInstallationUuidStringSlack installation UUID

Returns

SaveSlackCredentialsMutation

Example

mutation SaveSlackCredentials {
  saveSlackCredentials {
    slackCredentials {
      id
      slackAppType
      replyWarning
      config
      teamId
      teamName
      agentDispatchEnabled
      agentDataSamplingEnabled
      isNotificationDispatcher
      bindingHealth
      notificationSettingsCount
    }
  }
}

Types used only by saveSlackCredentials

SaveSlackCredentialsMutation

Object type.

FieldTypeDescription
slackCredentialsSlackCredentialsV2

Related types

SlackAppType, SlackCredentialsV2

setAccountBillingPlan (mutation)

setAccountBillingPlan 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.

Sets the billing plan for an account and create the customer in the billing vendor

Arguments

ArgumentTypeDescription
asyncInvokeBooleanWhether to set account's contract change asynchronously Default: true.
billingPlanTypeBillingPlanType!The Rate Card type that will be used to create an initial customer contract

Returns

SetAccountBillingPlan

Example

mutation SetAccountBillingPlan($billingPlanType: BillingPlanType!) {
  setAccountBillingPlan(billingPlanType: $billingPlanType) {
    account {
      id
      uuid
      name
      createdOn
      config
      allowNonSsoLogin
      dataShare
      isDeleted
      pendingDeletion
      frozenAt
      entitlements
      enableExceptionManagement
      enablePlatformAgentDomainFiltering
      agentRawDataAccessMode
      piiInventoryAccessMode
      enablePrAgentPaidTier
      enablePrAgentMetering
      enableProactiveTuneCreatorNotifications
      enableCostAgentPaidTier
      agentMonitorDefaultCollectionLagHours
    }
  }
}

Types used only by setAccountBillingPlan

BillingPlanType

Enum type.

ValueDescription
START
SCALE
SCALE_WITH_ADVANCED_NETWORKING
ENTERPRISE
ENTERPRISE_WITH_ADVANCED_NETWORKING
SetAccountBillingPlan

Object type. Sets the billing plan for an account and create the customer in the billing vendor

FieldTypeDescription
accountAccount

Related types

Account

setConnectionAgentObservabilityTraceStore (mutation)

setConnectionAgentObservabilityTraceStore 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

Mark or unmark a ClickHouse connection as an Agent Observability trace store.

Arguments

ArgumentTypeDescription
connectionIdUUID!ID of the connection to update
enableBoolean!true marks the connection as a trace store, false unmarks it.

Returns

SetConnectionAgentObservabilityTraceStore

Example

mutation SetConnectionAgentObservabilityTraceStore($connectionId: UUID!, $enable: Boolean!) {
  setConnectionAgentObservabilityTraceStore(connectionId: $connectionId, enable: $enable) {
    success
  }
}

Types used only by setConnectionAgentObservabilityTraceStore

SetConnectionAgentObservabilityTraceStore

Object type. Mark or unmark a ClickHouse connection as an Agent Observability trace store. Only for connections using customer-managed credentials; when Monte Carlo manages the credentials, the classification follows the connection's database name and this mutation is rejected.

FieldTypeDescription
successBoolean

Related types

UUID

setConnectionCtpConfig (mutation)

setConnectionCtpConfig 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 the custom CTP config for a connection.

Arguments

ArgumentTypeDescription
configJSONString!CTP pipeline config (steps and mapper) to use for this connection.
connectionIdUUID!UUID of the connection to configure.

Returns

SetConnectionCtpConfig

Example

mutation SetConnectionCtpConfig($config: JSONString!, $connectionId: UUID!) {
  setConnectionCtpConfig(config: $config, connectionId: $connectionId) {
    uuid
  }
}

Types used only by setConnectionCtpConfig

SetConnectionCtpConfig

Object type. Set (create or replace) the custom CTP config for a connection.

FieldTypeDescription
uuidUUID!UUID of the created or updated CTP config record.

Related types

JSONString, UUID

setConnectionDeletionProtection (mutation)

setConnectionDeletionProtection 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

Enable/disable deletion protection for a connection. Protected connections cannot be deleted.

Arguments

ArgumentTypeDescription
connectionIdUUID!ID of the connection to set deletion protection
enableDeletionProtectionBoolean!Enable or disable deletion protection

Returns

SetConnectionDeletionProtectionMutation

Example

mutation SetConnectionDeletionProtection($connectionId: UUID!, $enableDeletionProtection: Boolean!) {
  setConnectionDeletionProtection(connectionId: $connectionId, enableDeletionProtection: $enableDeletionProtection) {
    success
  }
}

Types used only by setConnectionDeletionProtection

SetConnectionDeletionProtectionMutation

Object type. Set deletion protection for an integration connection

FieldTypeDescription
successBoolean

Related types

UUID

setConnectionName (mutation)

setConnectionName 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 the name of a connection model.

Arguments

ArgumentTypeDescription
connectionIdUUID!UUID of the connection to update.
nameString!Desired name.

Returns

SetConnectionName

Example

mutation SetConnectionName($connectionId: UUID!, $name: String!) {
  setConnectionName(connectionId: $connectionId, name: $name) {
    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 setConnectionName

SetConnectionName

Object type. Set friendly name for a connection.

FieldTypeDescription
connectionConnection!Connection where name was set.

Related types

Connection, UUID

setEtlContainerName (mutation)

setEtlContainerName 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 friendly name for a ETL container.

Arguments

ArgumentTypeDescription
etlContainerIdUUID!UUID of the ETL container to update.
nameString!Desired name.

Returns

SetEtlContainerName

Example

mutation SetEtlContainerName($etlContainerId: UUID!, $name: String!) {
  setEtlContainerName(etlContainerId: $etlContainerId, name: $name) {
    etlContainer {
      id
      createdTime
      updatedTime
      deletedAt
      uuid
      type
      name
      isSynthetic
      lastWebhookReceived
      jobCount
      supportsEtlJobRuns
    }
  }
}

Types used only by setEtlContainerName

SetEtlContainerName

Object type. Set friendly name for a ETL container.

FieldTypeDescription
etlContainerEtlContainerETL container where name was set.

Related types

EtlContainer, UUID

Source: The GraphQL API reference

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