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
| Argument | Type | Description |
|---|---|---|
id | ID! | The ID of the object |
Returns
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
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
| Argument | Type | Description |
|---|---|---|
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
Example
query BulkMonitors {
bulkMonitors {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
uuid | UUID! |
Returns
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
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
| Argument | Type | Description |
|---|---|---|
aggregate | AggregateInput | Time aggregation for grouping data. Only valid when all tables share the same time field. |
alertConditions | [MetricAlertConditionInput!]! | Alert conditions |
alertGrouping | AlertGroupingInput | Per-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). |
assetSelection | AssetSelectionInput! | |
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 |
autoEnableTableMonitoring | Boolean | Deprecated legacy PII option. PII monitors no longer create table monitors; CBPV1 PII scans can run on unmonitored tables directly. Default: false. |
autoPruneEnabled | Boolean | For 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. |
autoTriage | Boolean | Per-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. |
collectionLagHours | Int | Time 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. |
dataQualityDimension | String | Data quality dimension to assign to the monitor. |
description | String | Description of the monitor |
domainRestrictions | [String] | Domain restrictions |
dryRun | Boolean | Dry run the monitor creation or update and return the MaC YAML. Default: false. |
failureAudiences | [String] | Failure notification audiences |
isDraft | Boolean | Make target a draft monitor. Default: false. |
lineageNarrowingEnabled | Boolean | For 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. |
monitorType | BulkMonitorTypeEnum! | Type of bulk monitor |
notes | String | Notes for the monitor |
priority | String | Priority of the monitor (P1-P5) |
samplingConfig | MonitorSamplingConfigInput | Sampling configuration for child metric monitors. |
scheduleConfig | ScheduleConfigInput! | |
tags | [TagKeyValuePairInput] | Monitor tags |
uuid | UUID | UUID of the bulk monitor. If specified, it means the request is for update |
warehouseUuid | UUID! | 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
createOrUpdateBulkMonitorCreateOrUpdateBulkMonitor
CreateOrUpdateBulkMonitorObject type. Create or update a bulk monitor. On update, assetSelection joiner keys left out of the input keep the stored monitor's values.
| Field | Type | Description |
|---|---|---|
bulkMonitor | BulkMonitor | |
yaml | String | The 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
| Argument | Type | Description |
|---|---|---|
uuid | UUID! | UUID of the bulk monitor to delete |
Returns
DeleteBulkMonitor
Example
mutation DeleteBulkMonitor($uuid: UUID!) {
deleteBulkMonitor(uuid: $uuid) {
success
}
}Types used only by deleteBulkMonitor
deleteBulkMonitorDeleteBulkMonitor
DeleteBulkMonitorObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
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
| Argument | Type | Description |
|---|---|---|
isPaused | Boolean! | Whether to pause or unpause |
reason | String | Justification for the change, recorded as a monitor comment. |
uuid | UUID! | 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
pauseBulkMonitorPauseBulkMonitor
PauseBulkMonitorObject type.
| Field | Type | Description |
|---|---|---|
bulkMonitor | BulkMonitor |
Related types
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
| Argument | Type | Description |
|---|---|---|
tableMcons | [String] | Optional list of table MCONs to prune. If not provided, all child monitors for deleted tables will be pruned. |
uuid | UUID! | UUID of the bulk monitor |
Returns
PruneDeletedTables
Example
mutation PruneDeletedTables($uuid: UUID!) {
pruneDeletedTables(uuid: $uuid) {
deletedCount
deletedTableMcons
}
}Types used only by pruneDeletedTables
pruneDeletedTablesPruneDeletedTables
PruneDeletedTablesObject 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.
| Field | Type | Description |
|---|---|---|
deletedCount | Int | Number of child monitors deleted |
deletedTableMcons | [String] | List of table MCONs that were pruned |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
