Bulk monitors (GraphQL)

Related queries and mutations in Monitors. Each has its own section.

Queries

bulkMonitor (query)

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

Status: Experimental

Get a single bulk monitor by ID

Arguments

ArgumentTypeDescription
idID!The ID of the object

Returns

BulkMonitor

Example

query BulkMonitor($id: ID!) {
  bulkMonitor(id: $id) {
    createdTime
    updatedTime
    uuid
    accountUuid
    isDeleted
    deletedAt
    description
    notes
    priority
    isPaused
    isDraft
    warehouseUuid
    monitorName
    domainRestrictions
    timeAxisFieldName
    timeAxisFieldType
    collectionLagHours
    autoPruneEnabled
    lineageNarrowingEnabled
    piiScanUuid
  }
}

Related types

BulkMonitor

bulkMonitors (query)

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

Status: Experimental

List all bulk monitors

Arguments

ArgumentTypeDescription
beforeString
afterString
firstInt
lastInt

Returns

BulkMonitorConnection

Example

query BulkMonitors {
  bulkMonitors {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

BulkMonitorConnection

getBulkMonitor (query)

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

Status: Experimental

Get a bulk monitor by UUID

Arguments

ArgumentTypeDescription
uuidUUID!

Returns

BulkMonitor

Example

query GetBulkMonitor($uuid: UUID!) {
  getBulkMonitor(uuid: $uuid) {
    createdTime
    updatedTime
    uuid
    accountUuid
    isDeleted
    deletedAt
    description
    notes
    priority
    isPaused
    isDraft
    warehouseUuid
    monitorName
    domainRestrictions
    timeAxisFieldName
    timeAxisFieldType
    collectionLagHours
    autoPruneEnabled
    lineageNarrowingEnabled
    piiScanUuid
  }
}

Related types

BulkMonitor, UUID

Mutations

createOrUpdateBulkMonitor (mutation)

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

Status: Experimental

Create or update a bulk monitor

Arguments

ArgumentTypeDescription
aggregateAggregateInputTime aggregation for grouping data. Only valid when all tables share the same time field.
alertConditions[MetricAlertConditionInput!]!Alert conditions
alertGroupingAlertGroupingInputPer-monitor alert grouping configuration. Omit or pass null for legacy per-type grouping; a non-null value enables monitor-based alert grouping. The createOrUpdate* mutations are full-state: omitting this field on an update clears any existing configuration (same as samplingConfig).
assetSelectionAssetSelectionInput!
audienceConditions[AudienceConditionInput!]Narrows individual audiences to the triage priorities that reach them. Always a full replace: omitting the argument (or passing null) makes every audience unconditional, the same as passing an empty list; a non-empty list replaces the conditions wholesale. Every audience named here must also appear in this mutation's audience list (audiences, or labels on the mutations that spell it that way), which stays the monitor's full audience set — a condition narrows when one of them is notified, it does not add one.
audiences[String]Monitor audiences
autoEnableTableMonitoringBooleanDeprecated legacy PII option. PII monitors no longer create table monitors; CBPV1 PII scans can run on unmonitored tables directly. Default: false.
autoPruneEnabledBooleanFor PII monitors, automatically remove child monitors after a successful first scan with no PII detected. Omitted values preserve the existing setting on update and default to false for new PII monitors.
autoTriageBooleanPer-monitor automated-triage override. true forces triage on for this monitor, false forces it off, and null (or omitting the argument) clears the override so the monitor inherits the domain/account setting. Because omitting the argument clears the override, an update call that does not send this field will reset any previously set override, including a deliberate false, back to inherit.
collectionLagHoursIntTime to offset the collection time bucket by in hours. Should be a multiple of 24 if agg_time_interval is DAY. Defaults to 0 (no lag). Default: 0.
dataQualityDimensionStringData quality dimension to assign to the monitor.
descriptionStringDescription of the monitor
domainRestrictions[String]Domain restrictions
dryRunBooleanDry run the monitor creation or update and return the MaC YAML. Default: false.
failureAudiences[String]Failure notification audiences
isDraftBooleanMake target a draft monitor. Default: false.
lineageNarrowingEnabledBooleanFor PII monitors, only create child monitors for root tables in the selected lineage graph. Omitted values preserve the existing setting on update and default to false for new PII monitors, which scans every selected table.
monitorTypeBulkMonitorTypeEnum!Type of bulk monitor
notesStringNotes for the monitor
priorityStringPriority of the monitor (P1-P5)
samplingConfigMonitorSamplingConfigInputSampling configuration for child metric monitors.
scheduleConfigScheduleConfigInput!
tags[TagKeyValuePairInput]Monitor tags
uuidUUIDUUID of the bulk monitor. If specified, it means the request is for update
warehouseUuidUUID!Warehouse UUID

Returns

CreateOrUpdateBulkMonitor

Example

mutation CreateOrUpdateBulkMonitor($alertConditions: [MetricAlertConditionInput!]!, $assetSelection: AssetSelectionInput!, $monitorType: BulkMonitorTypeEnum!, $scheduleConfig: ScheduleConfigInput!, $warehouseUuid: UUID!) {
  createOrUpdateBulkMonitor(alertConditions: $alertConditions, assetSelection: $assetSelection, monitorType: $monitorType, scheduleConfig: $scheduleConfig, warehouseUuid: $warehouseUuid) {
    yaml
  }
}

Types used only by createOrUpdateBulkMonitor

CreateOrUpdateBulkMonitor

Object type. Create or update a bulk monitor. On update, assetSelection joiner keys left out of the input keep the stored monitor's values.

FieldTypeDescription
bulkMonitorBulkMonitor
yamlStringThe MaC YAML representation of the monitor (dry_run only)

Related types

AggregateInput, AlertGroupingInput, AssetSelectionInput, AudienceConditionInput, BulkMonitor, BulkMonitorTypeEnum, MetricAlertConditionInput, MonitorSamplingConfigInput, ScheduleConfigInput, TagKeyValuePairInput, UUID

deleteBulkMonitor (mutation)

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

Status: Experimental

Delete a bulk monitor

Arguments

ArgumentTypeDescription
uuidUUID!UUID of the bulk monitor to delete

Returns

DeleteBulkMonitor

Example

mutation DeleteBulkMonitor($uuid: UUID!) {
  deleteBulkMonitor(uuid: $uuid) {
    success
  }
}

Types used only by deleteBulkMonitor

DeleteBulkMonitor

Object type.

FieldTypeDescription
successBoolean

Related types

UUID

pauseBulkMonitor (mutation)

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

Status: Experimental

Pause or unpause a bulk monitor

Arguments

ArgumentTypeDescription
isPausedBoolean!Whether to pause or unpause
reasonStringJustification for the change, recorded as a monitor comment.
uuidUUID!UUID of the bulk monitor

Returns

PauseBulkMonitor

Example

mutation PauseBulkMonitor($isPaused: Boolean!, $uuid: UUID!) {
  pauseBulkMonitor(isPaused: $isPaused, uuid: $uuid) {
    bulkMonitor {
      createdTime
      updatedTime
      uuid
      accountUuid
      isDeleted
      deletedAt
      description
      notes
      priority
      isPaused
      isDraft
      warehouseUuid
      monitorName
      domainRestrictions
      timeAxisFieldName
      timeAxisFieldType
      collectionLagHours
      autoPruneEnabled
      lineageNarrowingEnabled
      piiScanUuid
    }
  }
}

Types used only by pauseBulkMonitor

PauseBulkMonitor

Object type.

FieldTypeDescription
bulkMonitorBulkMonitor

Related types

BulkMonitor, UUID

pruneDeletedTables (mutation)

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

Status: Experimental

Prune child monitors for deleted tables from a bulk monitor

Arguments

ArgumentTypeDescription
tableMcons[String]Optional list of table MCONs to prune. If not provided, all child monitors for deleted tables will be pruned.
uuidUUID!UUID of the bulk monitor

Returns

PruneDeletedTables

Example

mutation PruneDeletedTables($uuid: UUID!) {
  pruneDeletedTables(uuid: $uuid) {
    deletedCount
    deletedTableMcons
  }
}

Types used only by pruneDeletedTables

PruneDeletedTables

Object type. Prune child monitors for tables that have been deleted (is_deleted=True).

This allows users to explicitly remove deleted tables from a bulk monitor
to resolve persistent error noise without modifying table selection/exclusion rules.

FieldTypeDescription
deletedCountIntNumber of child monitors deleted
deletedTableMcons[String]List of table MCONs that were pruned

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.