Related queries and mutations in Catalog and lineage. Each has its own section.
Queries
getDataProduct (query)
getDataProduct is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Get a data product
Arguments
Returns
Example
query GetDataProduct($dataProductId: UUID!) {
getDataProduct(dataProductId: $dataProductId) {
id
createdTime
updatedTime
uuid
name
description
isDeleted
deletedAt
sharedWithAllInSameAccount
dataProductTag
warehouseUuids
tableCount
monitoredTableCount
unmonitoredTableCount
}
}Related types
getDataProductAssetData (query)
getDataProductAssetData is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Fetches data about an asset's status vis a vis data products
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String! | The mcon to fetch data for |
Returns
DataProductAssetData
Example
query GetDataProductAssetData($mcon: String!) {
getDataProductAssetData(mcon: $mcon) {
mcon
}
}Types used only by getDataProductAssetData
getDataProductAssetDataDataProductAssetData
DataProductAssetDataObject type. Information about an asset related to data product usage and recommendations
| Field | Type | Description |
|---|---|---|
dataProducts | [DataProduct] | UUIDs of d |
mcon | String | MC unique identifier |
table | WarehouseTable | Table entity for requesting |
Related types
getDataProductAudiences (query)
getDataProductAudiences is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: General availability
List of audiences for this product id
Arguments
| Argument | Type | Description |
|---|---|---|
dataProductUuid | UUID! | Data product UUID |
Returns
Example
query GetDataProductAudiences($dataProductUuid: UUID!) {
getDataProductAudiences(dataProductUuid: $dataProductUuid) {
uuid
accountUuid
label
defaultFailureAudience
routingRulesCount
customMonitorsCount
notificationServices
notificationSettingsCount
incidentCount
}
}Related types
getDataProductDryRunCounts (query)
getDataProductDryRunCounts is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Return asset counts for a data product had it been created from these MCONs. For a domain-restricted caller, MCONs and agents outside their domains are left out.
Arguments
| Argument | Type | Description |
|---|---|---|
mcons | [String]! | MCON of assets to create data product from |
assets | [DataProductAssetInput!] | Agents to analyze alongside mcons |
name | String | Name of the data product to create. When set, the response says whether another data product already has it. |
Returns
DataProductDryRunTableCounts
Example
query GetDataProductDryRunCounts($mcons: [String]!) {
getDataProductDryRunCounts(mcons: $mcons) {
totalAssetCount
totalAssetMonitoredCount
totalAssetUnmonitoredCount
nameTaken
existingDataProductUuid
}
}Types used only by getDataProductDryRunCounts
getDataProductDryRunCountsDataProductDryRunTableCounts
DataProductDryRunTableCountsObject type.
| Field | Type | Description |
|---|---|---|
totalAssetCount | Int | Total count of assets that would be in the data product |
totalAssetMonitoredCount | Int | Total count of already monitored assets |
totalAssetUnmonitoredCount | Int | Total count of yet unmonitored assets |
nameTaken | Boolean | Whether another data product already has the requested name, so createOrUpdateDataProductV2 would reject it. Null when no name was passed. |
existingDataProductUuid | UUID | The data product that already has the requested name, if the user can read it |
Related types
getDataProductMetrics (query)
getDataProductMetrics is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Get one or more data product metric values
Arguments
| Argument | Type | Description |
|---|---|---|
dataProductId | UUID! | Data product id |
metrics | [DataProductMetric]! | Metrics to calculate |
startTime | DateTime! | Filter incidents newer than this |
endTime | DateTime | Filter incidents older than this |
timezone | String | Timezone to apply when grouping by date |
includeFeedback | [String] | Filter incidents by user feedback |
excludeFeedback | [String] | Exclude incidents by user feedback |
includeNormalized | Boolean | If false, filter out normalized incidents. |
severities | [String] | Filter for specific severities |
priorities | [String] | Filter for specific priorities |
incidentCategories | [IncidentCategory] | Include only selected incident categories. Or all categories if not specified. |
upstreamLevels | Int | Number of upstream levels used to calculate upstream dependencies |
domainId | UUID | Filter assets by domain UUID |
Returns
Example
query GetDataProductMetrics($dataProductId: UUID!, $metrics: [DataProductMetric]!, $startTime: DateTime!) {
getDataProductMetrics(dataProductId: $dataProductId, metrics: $metrics, startTime: $startTime) {
metric
fillMissingDataPointsWith
overallValue
}
}Related types
DataProductMetric, DataProductMetricData, DateTime, IncidentCategory, UUID
getDataProductMetricsV2 (query)
getDataProductMetricsV2 is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Get one or more data product metric values
Arguments
| Argument | Type | Description |
|---|---|---|
dataProductId | UUID! | Data product id |
metrics | [DataProductMetric]! | Metrics to calculate |
startTime | DateTime! | Filter incidents newer than this |
endTime | DateTime | Filter incidents older than this |
timezone | String | Timezone to apply when grouping by date |
includeFeedback | [String] | Filter incidents by user feedback |
excludeFeedback | [String] | Exclude incidents by user feedback |
includeNormalized | Boolean | If false, filter out normalized incidents. |
severities | [String] | Filter for specific severities |
priorities | [String] | Filter for specific priorities |
incidentCategories | [IncidentCategory] | Include only selected incident categories. Or all categories if not specified. |
upstreamLevels | Int | Number of upstream levels used to calculate upstream dependencies |
domainId | UUID | Filter assets by domain UUID |
Returns
Example
query GetDataProductMetricsV2($dataProductId: UUID!, $metrics: [DataProductMetric]!, $startTime: DateTime!) {
getDataProductMetricsV2(dataProductId: $dataProductId, metrics: $metrics, startTime: $startTime) {
metric
fillMissingDataPointsWith
overallValue
}
}Related types
DataProductMetric, DataProductMetricData, DateTime, IncidentCategory, UUID
getDataProducts (query)
getDataProducts is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Get a list of data products
Arguments
| Argument | Type | Description |
|---|---|---|
domainId | UUID | Filter assets by domain UUID |
Returns
Example
query GetDataProducts {
getDataProducts {
id
createdTime
updatedTime
uuid
name
description
isDeleted
deletedAt
sharedWithAllInSameAccount
dataProductTag
warehouseUuids
tableCount
monitoredTableCount
unmonitoredTableCount
}
}Related types
getDataProductsForAgent (query)
getDataProductsForAgent is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get the data products that hold an agent as an asset
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String! | The agent's MCON: its trace table or aiagent MCON |
agentName | String! | The agent's name |
Returns
[DataProduct!]!
Example
query GetDataProductsForAgent($mcon: String!, $agentName: String!) {
getDataProductsForAgent(mcon: $mcon, agentName: $agentName) {
id
createdTime
updatedTime
uuid
name
description
isDeleted
deletedAt
sharedWithAllInSameAccount
dataProductTag
warehouseUuids
tableCount
monitoredTableCount
unmonitoredTableCount
}
}Related types
getDataProductsV2 (query)
getDataProductsV2 is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Get a list of data products
Arguments
Returns
Example
query GetDataProductsV2 {
getDataProductsV2 {
id
createdTime
updatedTime
uuid
name
description
isDeleted
deletedAt
sharedWithAllInSameAccount
dataProductTag
warehouseUuids
tableCount
monitoredTableCount
unmonitoredTableCount
}
}Related types
getDataProductUpstreamCounts (query)
getDataProductUpstreamCounts is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: General availability
Fetch data about table upstream status as well as total counts. Raises for a table in mcons or an agent in assets that the caller can't read. An agent or tool MCON outside the caller's domains is left out. An agent in assets that isn't live is read through its base MCON, and left out when the caller can read it
Arguments
| Argument | Type | Description |
|---|---|---|
mcons | [String]! | List of table, agent or tool MCONs to filter the result |
assets | [DataProductAssetInput!] | Agents to analyze alongside mcons |
domainId | UUID | Filter by domain UUID |
Returns
DataProductUpstreamCoverageData
Example
query GetDataProductUpstreamCounts($mcons: [String]!) {
getDataProductUpstreamCounts(mcons: $mcons) {
totalUpstreamCount
totalUpstreamMonitoredCount
totalUpstreamUnmonitoredCount
totalAssetCount
totalAssetMonitoredCount
totalAssetUnmonitoredCount
}
}Types used only by getDataProductUpstreamCounts
getDataProductUpstreamCountsDataProductUpstreamCoverageData
DataProductUpstreamCoverageDataObject type.
| Field | Type | Description |
|---|---|---|
totalUpstreamCount | Int | Total count of upstream monitorable assets |
totalUpstreamMonitoredCount | Int | Total count of upstream monitored assets |
totalUpstreamUnmonitoredCount | Int | Total count of upstream unmonitored assets |
totalAssetCount | Int | Total count of monitorable assets |
totalAssetMonitoredCount | Int | Total count of monitored assets |
totalAssetUnmonitoredCount | Int | Total count of unmonitored assets |
assetData | [TableUpstreamData] | Per asset upstream counts |
Related types
DataProductAssetInput, TableUpstreamData, UUID
getDataProductV2 (query)
getDataProductV2 is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Get a data product
Arguments
Returns
Example
query GetDataProductV2($dataProductId: UUID!) {
getDataProductV2(dataProductId: $dataProductId) {
id
createdTime
updatedTime
uuid
name
description
isDeleted
deletedAt
sharedWithAllInSameAccount
dataProductTag
warehouseUuids
tableCount
monitoredTableCount
unmonitoredTableCount
}
}Related types
getDomainFilteredDataProducts (query)
getDomainFilteredDataProducts is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: General availability
Get a list of data products filtered by domain
Arguments
| Argument | Type | Description |
|---|---|---|
domainIds | [UUID] | Filter data products by domain UUID/s. |
Returns
Example
query GetDomainFilteredDataProducts {
getDomainFilteredDataProducts {
id
createdTime
updatedTime
uuid
name
description
isDeleted
deletedAt
sharedWithAllInSameAccount
dataProductTag
warehouseUuids
tableCount
monitoredTableCount
unmonitoredTableCount
}
}Related types
getDomainsForMcons (query)
getDomainsForMcons is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get (warehouse, domain) pairs with table counts for a set of MCONs. Resolves all domain assignment types (explicit, database/schema inheritance, tags). For a domain-restricted caller, MCONs and agents outside their domains are left out.
Arguments
| Argument | Type | Description |
|---|---|---|
mcons | [String!]! | List of MCONs to look up domain assignments for (max 250) |
assets | [DataProductAssetInput!] | Agents to analyze alongside mcons |
domainTypes | [DomainType!] | Domain types to include. Defaults to metadata-only. Pass AGENTIC alongside METADATA to also surface agentic domains. |
Returns
DomainsForMconsResponse
Example
query GetDomainsForMcons($mcons: [String!]!) {
getDomainsForMcons(mcons: $mcons) {
unassignedMcons
}
}Types used only by getDomainsForMcons
getDomainsForMconsDomainsForMconsResponse
DomainsForMconsResponseObject type. Response for getDomainsForMcons query.
| Field | Type | Description |
|---|---|---|
pairs | [WarehouseDomain!]! | Warehouse × domain pairs with table counts |
unassignedMcons | [String!]! | Input MCONs that resolved to a table but are not assigned to any domain |
WarehouseDomain
WarehouseDomainObject type. A (warehouse, domain) pair with the count of tables in that intersection.
Related types
DataProductAssetInput, DomainType, UUID
getTopWarehouseForDataProductMcons (query)
getTopWarehouseForDataProductMcons is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get the warehouse UUID with the most associated MCONs. For a domain-restricted caller, MCONs and agents outside their domains are left out.
Arguments
| Argument | Type | Description |
|---|---|---|
mcons | [String]! | List of MCONs to analyze |
assets | [DataProductAssetInput!] | Agents to analyze alongside mcons |
Returns
Example
query GetTopWarehouseForDataProductMcons($mcons: [String]!) {
getTopWarehouseForDataProductMcons(mcons: $mcons)
}Related types
Mutations
createOrUpdateDataProduct (mutation)
createOrUpdateDataProduct is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Create or update a data product
Arguments
| Argument | Type | Description |
|---|---|---|
description | String | Description of the data product |
domainId | UUID | UUID of domain to create this data product |
mcons | [String] | MCON of assets to be part of this data product. Agent MCONs, and the base MCON of an agent the data product holds, are rejected; add agents with createOrUpdateDataProductV2 |
name | String | Data product name |
uuid | UUID | UUID of data product to update |
Returns
CreateOrUpdateDataProduct
Example
mutation CreateOrUpdateDataProduct {
createOrUpdateDataProduct {
dataProduct {
id
createdTime
updatedTime
uuid
name
description
isDeleted
deletedAt
sharedWithAllInSameAccount
dataProductTag
warehouseUuids
tableCount
monitoredTableCount
unmonitoredTableCount
}
}
}Types used only by createOrUpdateDataProduct
createOrUpdateDataProductCreateOrUpdateDataProduct
CreateOrUpdateDataProductObject type. Create or update a data product
| Field | Type | Description |
|---|---|---|
dataProduct | DataProduct | Created or updated data product |
Related types
createOrUpdateDataProductV2 (mutation)
createOrUpdateDataProductV2 is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Create or update a data product
Arguments
| Argument | Type | Description |
|---|---|---|
assets | [DataProductAssetInput!] | Agents to be part of this data product. Omit to keep the current agents. |
audienceUuids | [UUID] | UUIDs of audiences for this data product |
description | String | Description of the data product |
enableMonitoringUponCreation | Boolean | Deprecated and ignored. Create table monitors to monitor the data product's tables. |
mcons | [String] | MCON of the non-agent assets to be part of this data product. Omit to keep the current ones. An empty list also keeps them, unless assets is passed. |
mergeAssets | Boolean | Add mcons and assets to the current assets instead of replacing them |
name | String | Data product name |
uuid | UUID | UUID of data product to update |
Returns
CreateOrUpdateDataProductV2
Example
mutation CreateOrUpdateDataProductV2 {
createOrUpdateDataProductV2 {
dataProduct {
id
createdTime
updatedTime
uuid
name
description
isDeleted
deletedAt
sharedWithAllInSameAccount
dataProductTag
warehouseUuids
tableCount
monitoredTableCount
unmonitoredTableCount
}
}
}Types used only by createOrUpdateDataProductV2
createOrUpdateDataProductV2CreateOrUpdateDataProductV2
CreateOrUpdateDataProductV2Object type. Create or update a data product
| Field | Type | Description |
|---|---|---|
dataProduct | DataProduct | Created or updated data product |
Related types
DataProduct, DataProductAssetInput, UUID
deleteDataProduct (mutation)
deleteDataProduct is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Delete a data product
Arguments
| Argument | Type | Description |
|---|---|---|
uuid | UUID! | UUID of data product to delete |
Returns
DeleteDataProduct
Example
mutation DeleteDataProduct($uuid: UUID!) {
deleteDataProduct(uuid: $uuid) {
success
}
}Types used only by deleteDataProduct
deleteDataProductDeleteDataProduct
DeleteDataProductObject type. Delete a data product
| Field | Type | Description |
|---|---|---|
success | Boolean | Status of the deletion operation. |
Related types
deleteDataProductV2 (mutation)
deleteDataProductV2 is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Delete a data product
Arguments
| Argument | Type | Description |
|---|---|---|
uuid | UUID! | UUID of data product to delete |
Returns
DeleteDataProductV2
Example
mutation DeleteDataProductV2($uuid: UUID!) {
deleteDataProductV2(uuid: $uuid) {
success
}
}Types used only by deleteDataProductV2
deleteDataProductV2DeleteDataProductV2
DeleteDataProductV2Object type. Delete a data product
| Field | Type | Description |
|---|---|---|
success | Boolean | Status of the deletion operation. |
Related types
toggleDataProductMonitoring (mutation)
toggleDataProductMonitoring is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Deprecated: Monitoring rules were removed. Create table monitors to monitor a data product's tables.
Deprecated no-op. Monitoring rules were removed; create table monitors to monitor a data product's tables.
Arguments
| Argument | Type | Description |
|---|---|---|
enabled | Boolean! | Deprecated and ignored |
uuid | UUID! | UUID of data product to monitor |
Returns
ToggleDataProductMonitoring
Example
mutation ToggleDataProductMonitoring($enabled: Boolean!, $uuid: UUID!) {
toggleDataProductMonitoring(enabled: $enabled, uuid: $uuid) {
enabled
}
}Types used only by toggleDataProductMonitoring
toggleDataProductMonitoringToggleDataProductMonitoring
ToggleDataProductMonitoringObject type. Deprecated no-op. Monitoring rules were removed; create table monitors to monitor a data product's tables.
| Field | Type | Description |
|---|---|---|
enabled | Boolean | Always false |
Related types
updateDataProductSharing (mutation)
updateDataProductSharing is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Create or update sharing definition on a data product
Arguments
| Argument | Type | Description |
|---|---|---|
dataProductUuid | UUID! | UUID of data product to share |
sharedWithAllInSameAccount | Boolean! | Whether this data product is shared with all users in the same account. Default: false. |
Returns
UpdateDataProductSharing
Example
mutation UpdateDataProductSharing($dataProductUuid: UUID!, $sharedWithAllInSameAccount: Boolean!) {
updateDataProductSharing(dataProductUuid: $dataProductUuid, sharedWithAllInSameAccount: $sharedWithAllInSameAccount) {
success
}
}Types used only by updateDataProductSharing
updateDataProductSharingUpdateDataProductSharing
UpdateDataProductSharingObject type. Create or update sharing definition on a data product
| Field | Type | Description |
|---|---|---|
success | Boolean | Status of the sharing operation. |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
