Data products (GraphQL)

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

ArgumentTypeDescription
dataProductIdUUID!Data product id
upstreamLevelsIntNumber of upstream levels used to calculate upstream dependencies
domainIdUUIDFilter assets by domain UUID

Returns

DataProduct

Example

query GetDataProduct($dataProductId: UUID!) {
  getDataProduct(dataProductId: $dataProductId) {
    id
    createdTime
    updatedTime
    uuid
    name
    description
    isDeleted
    deletedAt
    sharedWithAllInSameAccount
    dataProductTag
    warehouseUuids
    tableCount
    monitoredTableCount
    unmonitoredTableCount
  }
}

Related types

DataProduct, UUID

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

ArgumentTypeDescription
mconString!The mcon to fetch data for

Returns

DataProductAssetData

Example

query GetDataProductAssetData($mcon: String!) {
  getDataProductAssetData(mcon: $mcon) {
    mcon
  }
}

Types used only by getDataProductAssetData

DataProductAssetData

Object type. Information about an asset related to data product usage and recommendations

FieldTypeDescription
dataProducts[DataProduct]UUIDs of d
mconStringMC unique identifier
tableWarehouseTableTable entity for requesting

Related types

DataProduct, WarehouseTable

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

ArgumentTypeDescription
dataProductUuidUUID!Data product UUID

Returns

[NotificationAudience]!

Example

query GetDataProductAudiences($dataProductUuid: UUID!) {
  getDataProductAudiences(dataProductUuid: $dataProductUuid) {
    uuid
    accountUuid
    label
    defaultFailureAudience
    routingRulesCount
    customMonitorsCount
    notificationServices
    notificationSettingsCount
    incidentCount
  }
}

Related types

NotificationAudience, UUID

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

ArgumentTypeDescription
mcons[String]!MCON of assets to create data product from
assets[DataProductAssetInput!]Agents to analyze alongside mcons
nameStringName 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

DataProductDryRunTableCounts

Object type.

FieldTypeDescription
totalAssetCountIntTotal count of assets that would be in the data product
totalAssetMonitoredCountIntTotal count of already monitored assets
totalAssetUnmonitoredCountIntTotal count of yet unmonitored assets
nameTakenBooleanWhether another data product already has the requested name, so createOrUpdateDataProductV2 would reject it. Null when no name was passed.
existingDataProductUuidUUIDThe data product that already has the requested name, if the user can read it

Related types

DataProductAssetInput, UUID

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

ArgumentTypeDescription
dataProductIdUUID!Data product id
metrics[DataProductMetric]!Metrics to calculate
startTimeDateTime!Filter incidents newer than this
endTimeDateTimeFilter incidents older than this
timezoneStringTimezone to apply when grouping by date
includeFeedback[String]Filter incidents by user feedback
excludeFeedback[String]Exclude incidents by user feedback
includeNormalizedBooleanIf 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.
upstreamLevelsIntNumber of upstream levels used to calculate upstream dependencies
domainIdUUIDFilter assets by domain UUID

Returns

[DataProductMetricData]

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

ArgumentTypeDescription
dataProductIdUUID!Data product id
metrics[DataProductMetric]!Metrics to calculate
startTimeDateTime!Filter incidents newer than this
endTimeDateTimeFilter incidents older than this
timezoneStringTimezone to apply when grouping by date
includeFeedback[String]Filter incidents by user feedback
excludeFeedback[String]Exclude incidents by user feedback
includeNormalizedBooleanIf 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.
upstreamLevelsIntNumber of upstream levels used to calculate upstream dependencies
domainIdUUIDFilter assets by domain UUID

Returns

[DataProductMetricData]

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

ArgumentTypeDescription
domainIdUUIDFilter assets by domain UUID

Returns

[DataProduct]

Example

query GetDataProducts {
  getDataProducts {
    id
    createdTime
    updatedTime
    uuid
    name
    description
    isDeleted
    deletedAt
    sharedWithAllInSameAccount
    dataProductTag
    warehouseUuids
    tableCount
    monitoredTableCount
    unmonitoredTableCount
  }
}

Related types

DataProduct, UUID

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

ArgumentTypeDescription
mconString!The agent's MCON: its trace table or aiagent MCON
agentNameString!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

DataProduct

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

ArgumentTypeDescription
domainIdUUIDFilter assets by domain UUID. Deprecated, kept for backwards compatibility. Please use domain_ids field.
domainIds[UUID]Filter assets by domain UUIDs.

Returns

[DataProduct]

Example

query GetDataProductsV2 {
  getDataProductsV2 {
    id
    createdTime
    updatedTime
    uuid
    name
    description
    isDeleted
    deletedAt
    sharedWithAllInSameAccount
    dataProductTag
    warehouseUuids
    tableCount
    monitoredTableCount
    unmonitoredTableCount
  }
}

Related types

DataProduct, UUID

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

ArgumentTypeDescription
mcons[String]!List of table, agent or tool MCONs to filter the result
assets[DataProductAssetInput!]Agents to analyze alongside mcons
domainIdUUIDFilter by domain UUID

Returns

DataProductUpstreamCoverageData

Example

query GetDataProductUpstreamCounts($mcons: [String]!) {
  getDataProductUpstreamCounts(mcons: $mcons) {
    totalUpstreamCount
    totalUpstreamMonitoredCount
    totalUpstreamUnmonitoredCount
    totalAssetCount
    totalAssetMonitoredCount
    totalAssetUnmonitoredCount
  }
}

Types used only by getDataProductUpstreamCounts

DataProductUpstreamCoverageData

Object type.

FieldTypeDescription
totalUpstreamCountIntTotal count of upstream monitorable assets
totalUpstreamMonitoredCountIntTotal count of upstream monitored assets
totalUpstreamUnmonitoredCountIntTotal count of upstream unmonitored assets
totalAssetCountIntTotal count of monitorable assets
totalAssetMonitoredCountIntTotal count of monitored assets
totalAssetUnmonitoredCountIntTotal 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

ArgumentTypeDescription
dataProductIdUUID!Data product id
upstreamLevelsIntNumber of upstream levels used to calculate upstream dependencies
domainIdUUIDFilter assets by domain UUID

Returns

DataProduct

Example

query GetDataProductV2($dataProductId: UUID!) {
  getDataProductV2(dataProductId: $dataProductId) {
    id
    createdTime
    updatedTime
    uuid
    name
    description
    isDeleted
    deletedAt
    sharedWithAllInSameAccount
    dataProductTag
    warehouseUuids
    tableCount
    monitoredTableCount
    unmonitoredTableCount
  }
}

Related types

DataProduct, UUID

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

ArgumentTypeDescription
domainIds[UUID]Filter data products by domain UUID/s.

Returns

[DataProduct]

Example

query GetDomainFilteredDataProducts {
  getDomainFilteredDataProducts {
    id
    createdTime
    updatedTime
    uuid
    name
    description
    isDeleted
    deletedAt
    sharedWithAllInSameAccount
    dataProductTag
    warehouseUuids
    tableCount
    monitoredTableCount
    unmonitoredTableCount
  }
}

Related types

DataProduct, UUID

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

ArgumentTypeDescription
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

DomainsForMconsResponse

Object type. Response for getDomainsForMcons query.

FieldTypeDescription
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

Object type. A (warehouse, domain) pair with the count of tables in that intersection.

FieldTypeDescription
warehouseUuidUUID!Warehouse UUID
warehouseNameString!Warehouse name
domainUuidUUID!Domain UUID
domainNameString!Domain name
domainTagString!Domain's unique tag slug (e.g. 'domain-marketing-42')
tableCountInt!Number of input MCONs in this pair

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

ArgumentTypeDescription
mcons[String]!List of MCONs to analyze
assets[DataProductAssetInput!]Agents to analyze alongside mcons

Returns

UUID

Example

query GetTopWarehouseForDataProductMcons($mcons: [String]!) {
  getTopWarehouseForDataProductMcons(mcons: $mcons)
}

Related types

DataProductAssetInput, UUID

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

ArgumentTypeDescription
descriptionStringDescription of the data product
domainIdUUIDUUID 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
nameStringData product name
uuidUUIDUUID 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

CreateOrUpdateDataProduct

Object type. Create or update a data product

FieldTypeDescription
dataProductDataProductCreated or updated data product

Related types

DataProduct, UUID

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

ArgumentTypeDescription
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
descriptionStringDescription of the data product
enableMonitoringUponCreationBooleanDeprecated 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.
mergeAssetsBooleanAdd mcons and assets to the current assets instead of replacing them
nameStringData product name
uuidUUIDUUID 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

CreateOrUpdateDataProductV2

Object type. Create or update a data product

FieldTypeDescription
dataProductDataProductCreated 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

ArgumentTypeDescription
uuidUUID!UUID of data product to delete

Returns

DeleteDataProduct

Example

mutation DeleteDataProduct($uuid: UUID!) {
  deleteDataProduct(uuid: $uuid) {
    success
  }
}

Types used only by deleteDataProduct

DeleteDataProduct

Object type. Delete a data product

FieldTypeDescription
successBooleanStatus of the deletion operation.

Related types

UUID

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

ArgumentTypeDescription
uuidUUID!UUID of data product to delete

Returns

DeleteDataProductV2

Example

mutation DeleteDataProductV2($uuid: UUID!) {
  deleteDataProductV2(uuid: $uuid) {
    success
  }
}

Types used only by deleteDataProductV2

DeleteDataProductV2

Object type. Delete a data product

FieldTypeDescription
successBooleanStatus of the deletion operation.

Related types

UUID

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

ArgumentTypeDescription
enabledBoolean!Deprecated and ignored
uuidUUID!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

ToggleDataProductMonitoring

Object type. Deprecated no-op. Monitoring rules were removed; create table monitors to monitor a data product's tables.

FieldTypeDescription
enabledBooleanAlways false

Related types

UUID

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

ArgumentTypeDescription
dataProductUuidUUID!UUID of data product to share
sharedWithAllInSameAccountBoolean!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

UpdateDataProductSharing

Object type. Create or update sharing definition on a data product

FieldTypeDescription
successBooleanStatus of the sharing operation.

Related types

UUID

Source: The GraphQL API reference

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