Related queries and mutations in Monitors. Each has its own section.
Queries
getPiiScanBulkMonitors (query)
getPiiScanBulkMonitors 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
Return every part of the PII setup that the given bulk monitor belongs to, ordered by start time. Returns an empty list for a monitor with no piiScanUuid. Errors if the user cannot read every part.
Arguments
| Argument | Type | Description |
|---|---|---|
bulkMonitorUuid | UUID! |
Returns
[BulkMonitor!]!
Example
query GetPiiScanBulkMonitors($bulkMonitorUuid: UUID!) {
getPiiScanBulkMonitors(bulkMonitorUuid: $bulkMonitorUuid) {
createdTime
updatedTime
uuid
accountUuid
isDeleted
deletedAt
description
notes
priority
isPaused
isDraft
warehouseUuid
monitorName
domainRestrictions
timeAxisFieldName
timeAxisFieldType
collectionLagHours
autoPruneEnabled
lineageNarrowingEnabled
piiScanUuid
}
}Related types
getPiiScanFindings (query)
getPiiScanFindings 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
Return latest nonzero table/field findings for a PII scan bulk monitor.
Arguments
| Argument | Type | Description |
|---|---|---|
bulkMonitorUuid | UUID! | |
limit | Int | Default: 500. |
Returns
Example
query GetPiiScanFindings($bulkMonitorUuid: UUID!) {
getPiiScanFindings(bulkMonitorUuid: $bulkMonitorUuid) {
latestScanTime
hasMore
columnsHasMore
columnsTotalCount
columnsOffset
columnsLimit
}
}Related types
getPiiScanFindingSampleRows (query)
getPiiScanFindingSampleRows 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
Live-load a small sample of values matching a PII scan finding. Sample values are returned to the caller and are not stored.
Arguments
| Argument | Type | Description |
|---|---|---|
warehouseUuid | UUID! | |
fullTableId | String! | |
fieldKey | String! | |
piiType | String! | |
limit | Int | Default: 5. |
Returns
PiiScanFindingSampleRows!
Example
query GetPiiScanFindingSampleRows($warehouseUuid: UUID!, $fullTableId: String!, $fieldKey: String!, $piiType: String!) {
getPiiScanFindingSampleRows(warehouseUuid: $warehouseUuid, fullTableId: $fullTableId, fieldKey: $fieldKey, piiType: $piiType) {
columns
rows
query
hasError
error
samplingDisabled
samplingDisabledReason
samplingDisabledMessage
samplingRestricted
}
}Types used only by getPiiScanFindingSampleRows
getPiiScanFindingSampleRowsPiiScanFindingSampleRows
PiiScanFindingSampleRowsObject type. Live sample rows matching a PII scan finding. Values are not stored.
| Field | Type | Description |
|---|---|---|
columns | [String!]! | |
rows | [[String]!]! | |
query | String | The executed SQL query. |
hasError | Boolean! | Whether the warehouse sampling query returned an error. |
error | String | Warehouse sampling error, when available. |
samplingDisabled | Boolean! | Whether sample rows are unavailable because data sampling is disabled. |
samplingDisabledReason | String | Machine-readable reason sample rows are unavailable, when known. |
samplingDisabledMessage | String | User-facing reason sample rows are unavailable, when known. |
samplingRestricted | Boolean! | Whether warehouse data sampling restrictions are configured. |
Related types
getPiiScanInventory (query)
getPiiScanInventory 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
Return PII findings inventory totals and latest nonzero findings across accessible PII bulk monitors, optionally scoped to one bulk monitor.
Arguments
| Argument | Type | Description |
|---|---|---|
bulkMonitorUuid | UUID | |
warehouseUuid | UUID | Limit inventory to one warehouse. Null means all accessible warehouses. |
projectNames | [String!] | Limit inventory to database/project names. Null or an empty list means no database/project filter. |
datasets | [String!] | Limit inventory to schema/dataset names. Null or an empty list means no schema/dataset filter. |
piiTypes | [String!] | Limit inventory to these PII types, including custom regex names. Applied before column paging. Totals follow it, except hasWarehouseTags, totalWarehouseTaggedColumns, hasSnowflakeTags and totalSnowflakeTaggedColumns. Columns found only by warehouse tags are excluded while it is set. Null or an empty list means no PII type filter. |
matchStrengths | [PiiMatchStrength!] | Limit inventory to findings with these pattern match strengths. Applied per finding before column paging, so a column keeps only its matching findings. Totals follow it, except hasWarehouseTags, totalWarehouseTaggedColumns, hasSnowflakeTags and totalSnowflakeTaggedColumns. Columns found only by warehouse tags are excluded while it is set. Null or an empty list means no match strength filter. |
reviewState | PiiScanReviewState | ACTIVE returns current inventory and excludes false positives. FALSE_POSITIVE returns the suppressed audit view. Default: "ACTIVE". |
limit | Int | Default: 500. |
columnsLimit | Int | Maximum grouped inventory rows to return. Default: 500. |
columnsOffset | Int | Grouped inventory row offset for pagination. Default: 0. |
Returns
Example
query GetPiiScanInventory {
getPiiScanInventory {
latestScanTime
hasMore
columnsHasMore
columnsTotalCount
columnsOffset
columnsLimit
}
}Types used only by getPiiScanInventory
getPiiScanInventoryPiiScanReviewState
PiiScanReviewStateEnum type.
| Value | Description |
|---|---|
ACTIVE | |
FALSE_POSITIVE |
Related types
PiiMatchStrength, PiiScanFindingsSummary, UUID
getPiiScanInventoryExportCsv (query)
getPiiScanInventoryExportCsv 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
Return CSV for grouped PII scan inventory rows of active findings. Takes the warehouse, database, schema, piiTypes and matchStrengths filters of getPiiScanInventory. Columns are ordered as table, database, schema, column, piiTypes, metrics, maxMatchRate, confidence, rowsScanned, findings, monitors, alertUuids, firstDetectedAt, lastScannedAt; multi-value fields are pipe-delimited.
Arguments
| Argument | Type | Description |
|---|---|---|
bulkMonitorUuid | UUID | |
warehouseUuid | UUID | Limit export rows to one warehouse. Null means all accessible warehouses. |
projectNames | [String!] | Limit export rows to database/project names. Null or an empty list means no database/project filter. |
datasets | [String!] | Limit export rows to schema/dataset names. Null or an empty list means no schema/dataset filter. |
piiTypes | [String!] | Limit export rows to these PII types, including custom regex names. Columns found only by warehouse tags are left out while it is set. Null or an empty list means no PII type filter. |
matchStrengths | [PiiMatchStrength!] | Limit export rows to findings with these pattern match strengths. Columns found only by warehouse tags are left out while it is set. Null or an empty list means no match strength filter. |
Returns
String!
Example
query GetPiiScanInventoryExportCsv {
getPiiScanInventoryExportCsv
}Related types
getPiiTypes (query)
getPiiTypes 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 supported PII types with their metrics
Returns
[PiiTypeInfo!]!
Example
query GetPiiTypes {
getPiiTypes {
name
metric
description
category
}
}Types used only by getPiiTypes
getPiiTypesPiiTypeInfo
PiiTypeInfoObject type. Metadata for a supported PII type
| Field | Type | Description |
|---|---|---|
name | String! | PII type identifier (e.g. SSN) |
metric | String! | Underlying metric name (e.g. TEXT_SSN_RATE) |
description | String! | Human-readable description |
category | String! | Grouping category (e.g. PII, Location) |
getPiiWarehouseTagSummary (query)
getPiiWarehouseTagSummary 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
Return a bounded existence summary for system classification and user-defined warehouse tags on fields.
Arguments
| Argument | Type | Description |
|---|---|---|
warehouseUuid | UUID! | |
assetSelection | AssetSelectionInput | Optional monitor asset selection. When provided, tag existence is checked only on fields belonging to matching tables. |
Returns
PiiWarehouseTagSummary!
Example
query GetPiiWarehouseTagSummary($warehouseUuid: UUID!) {
getPiiWarehouseTagSummary(warehouseUuid: $warehouseUuid) {
isSnowflakeWarehouse
hasSystemClassificationTags
hasUserDefinedTags
}
}Types used only by getPiiWarehouseTagSummary
getPiiWarehouseTagSummaryPiiWarehouseTagSummary
PiiWarehouseTagSummaryObject type. Bounded summary of warehouse tags available for PII setup.
| Field | Type | Description |
|---|---|---|
isSnowflakeWarehouse | Boolean! | |
hasSystemClassificationTags | Boolean! | |
hasUserDefinedTags | Boolean! | |
sampleSystemTags | [PiiScanWarehouseTag!]! | At most two system classification tag examples. |
sampleUserDefinedTags | [PiiScanWarehouseTag!]! | At most two user-defined warehouse tag examples. |
Related types
AssetSelectionInput, PiiScanWarehouseTag, UUID
Mutations
batchUpdatePiiBulkMonitors (mutation)
batchUpdatePiiBulkMonitors 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
Apply the same editable PII monitor settings to selected PII bulk monitors.
Arguments
| Argument | Type | Description |
|---|---|---|
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] | Notification audiences to apply to every selected PII bulk monitor. |
bulkMonitorUuids | [UUID!]! | PII bulk monitor UUIDs to update. |
failureAudiences | [String] | Failure-only notification audiences to apply to every selected PII bulk monitor. |
fieldPattern | String | Glob pattern to match TEXT column names. |
matchThreshold | Float | Alert threshold as a proportion (0-1). |
mode | PiiMonitorMode | Switch every selected PII bulk monitor to ALERT or SCAN. ALERT requires matchThreshold. SCAN does not accept matchThreshold. |
piiTypes | [PiiType!] | Built-in PII types to apply to every selected PII bulk monitor. Deprecated types are ignored. |
samplingConfig | MonitorSamplingConfigInput | Row sampling for child metric monitors. |
scheduleConfig | ScheduleConfigInput | Collection interval to apply to every selected PII bulk monitor. Each monitor keeps its own start time. startTime and cron schedules are rejected. Split PII setups accept only scheduleType FIXED. |
Returns
BatchUpdatePiiBulkMonitors
Example
mutation BatchUpdatePiiBulkMonitors($bulkMonitorUuids: [UUID!]!) {
batchUpdatePiiBulkMonitors(bulkMonitorUuids: $bulkMonitorUuids) {
updatedCount
}
}Types used only by batchUpdatePiiBulkMonitors
batchUpdatePiiBulkMonitorsBatchUpdatePiiBulkMonitors
BatchUpdatePiiBulkMonitorsObject type.
| Field | Type | Description |
|---|---|---|
bulkMonitors | [BulkMonitor!]! | PII bulk monitors updated by this mutation. |
updatedCount | Int! | Number of PII bulk monitors updated. |
Related types
AudienceConditionInput, BulkMonitor, MonitorSamplingConfigInput, PiiMonitorMode, PiiType, ScheduleConfigInput, UUID
createJiraTicketForPiiScanFindings (mutation)
createJiraTicketForPiiScanFindings 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 a Jira ticket for selected PII scan findings.
Arguments
| Argument | Type | Description |
|---|---|---|
details | CreateJiraPiiScanFindingTicketInput! | |
findings | [PiiScanFindingTicketInput!]! | PII findings the Jira ticket should cover. |
Returns
CreateJiraTicketForPiiScanFindings
Example
mutation CreateJiraTicketForPiiScanFindings($details: CreateJiraPiiScanFindingTicketInput!, $findings: [PiiScanFindingTicketInput!]!) {
createJiraTicketForPiiScanFindings(details: $details, findings: $findings) {
ticket {
ticketId
ticketUrl
ticketKey
alertId
integrationId
createdBy
createdAt
}
}
}Types used only by createJiraTicketForPiiScanFindings
createJiraTicketForPiiScanFindingsCreateJiraPiiScanFindingTicketInput
CreateJiraPiiScanFindingTicketInputInput object type. Jira ticket details for selected PII scan findings.
| Field | Type | Description |
|---|---|---|
integrationId | UUID! | UUID of the Jira integration to create the ticket under. |
project | Int! | Jira project id. |
issuetype | Int! | Jira issue-type id. |
summary | String! | Ticket summary (must be non-empty). |
description | String | Ticket description (Markdown). |
fields | JSONString | Additional Jira fields keyed by field id (e.g. required custom fields). |
CreateJiraTicketForPiiScanFindings
CreateJiraTicketForPiiScanFindingsObject type.
| Field | Type | Description |
|---|---|---|
ticket | JiraTicketOutput |
PiiScanFindingTicketInput
PiiScanFindingTicketInputInput object type.
Related types
JSONString, JiraTicketOutput, PiiType, UUID
createPiiMonitor (mutation)
createPiiMonitor 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 a PII monitor that tracks TEXT column metrics (SSN, email, phone, etc.) across all tables matching the asset selection.
Arguments
| Argument | Type | Description |
|---|---|---|
assetSelection | AssetSelectionInput! | Tables to monitor |
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] | Notification audiences |
autoEnableTableMonitoring | Boolean | Deprecated legacy option. PII monitors no longer create table monitors; CBPV1 PII scans can run on unmonitored tables directly. Default: false. |
autoPruneEnabled | Boolean | When true, automatically remove the child monitor after each table's first scan completes with no PII detected. Tables are re-scanned if new TEXT columns are added. Default: false. |
customRegexes | [PiiCustomRegexInput!] | Custom regex patterns to include in the PII scan. |
description | String | Human-readable description for the monitor. Default: "PII Monitor". |
domainRestrictions | [String] | Domain UUIDs restricting alert delivery |
dryRun | Boolean | Return MaC YAML without persisting the monitor. Default: false. |
failureAudiences | [String] | Failure-only notification audiences |
fieldPattern | String | Glob pattern to match TEXT column names. Defaults to all TEXT columns. Default: "*". |
lineageNarrowingEnabled | Boolean | When true, only create child monitors for root tables — those with no upstream lineage within the selected assets. Downstream tables inherit PII from their sources and do not need independent scanning. Defaults false to run a full scan across every selected table. Default: false. |
matchThreshold | Float | Alert threshold as a proportion (0–1). Defaults to 0.01 (1%). Default: 0.01. |
mode | PiiMonitorMode | ALERT creates threshold comparisons; SCAN collects data without alerting Default: "ALERT". |
notes | String | Notes for the monitor |
piiTypes | [PiiType!] | PII types to monitor. Defaults to every supported type. Deprecated types are ignored and reported in warnings. |
priority | String | Monitor priority (P1–P5) |
samplingConfig | MonitorSamplingConfigInput | Row sampling for child metric monitors. |
scheduleConfig | ScheduleConfigInput! | Collection schedule. Weekly FIXED/10080 minutes is recommended. |
skipClassifiedColumns | Boolean | Exclude columns already tagged by supported warehouse classification tags. Defaults to true for ALERT mode, false for SCAN mode. |
skipUserDefinedWarehouseTags | Boolean | Exclude columns with supported user-defined warehouse tags. Defaults to false. Default: false. |
splitLargeSelection | Boolean | When true, create multiple PII monitors if the selected scope is larger than the per-monitor table limit. Default: false. |
warehouseUuid | UUID! | Warehouse UUID |
Returns
CreatePiiMonitor
Example
mutation CreatePiiMonitor($assetSelection: AssetSelectionInput!, $scheduleConfig: ScheduleConfigInput!, $warehouseUuid: UUID!) {
createPiiMonitor(assetSelection: $assetSelection, scheduleConfig: $scheduleConfig, warehouseUuid: $warehouseUuid) {
yaml
warnings
requiresSplit
matchedTableCount
tableLimit
splitMonitorCount
}
}Types used only by createPiiMonitor
createPiiMonitorCreatePiiMonitor
CreatePiiMonitorObject type.
| Field | Type | Description |
|---|---|---|
bulkMonitor | BulkMonitor | |
bulkMonitors | [BulkMonitor!]! | |
yaml | String | MaC YAML representation (dry_run only) |
warnings | [String!]! | Advisory messages about the monitor configuration |
requiresSplit | Boolean! | |
matchedTableCount | Int | |
tableLimit | Int | |
splitMonitorCount | Int | |
splitParts | [PiiMonitorSplitPart!]! |
PiiCustomRegexInput
PiiCustomRegexInputInput object type.
| Field | Type | Description |
|---|---|---|
uuid | UUID | Stable custom regex UUID. Generated by the backend when omitted. |
name | String! | Display name for the custom PII pattern. |
pattern | String! | Regex pattern used to detect the PII. |
caseInsensitive | Boolean | Whether regex matching should be case-insensitive. Defaults to true. Default: true. |
PiiMonitorSplitPart
PiiMonitorSplitPartObject type. One monitor-sized part of a large PII monitor scope
| Field | Type | Description |
|---|---|---|
description | String! | |
tableCount | Int! |
Related types
AssetSelectionInput, AudienceConditionInput, BulkMonitor, MonitorSamplingConfigInput, PiiMonitorMode, PiiType, ScheduleConfigInput, UUID
markPiiScanFindingFalsePositive (mutation)
markPiiScanFindingFalsePositive 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
Mark a PII scan finding as not PII.
Arguments
| Argument | Type | Description |
|---|---|---|
fieldKey | String! | Column key to mark as not PII. Matching is case-insensitive. |
fullTableId | String! | Fully qualified table identifier for the finding to mark as not PII. |
piiIdentifier | String | PII identifier to mark as not PII. Accepts built-in PII type names or custom PII metric keys. Prefer this field for custom PII findings. |
piiType | PiiType | Built-in PII type to mark as not PII. |
reason | String | Optional free-text reason for marking the finding as not PII. |
warehouseUuid | UUID! | Warehouse UUID for the finding to mark as not PII. |
Returns
MarkPiiScanFindingFalsePositive
Example
mutation MarkPiiScanFindingFalsePositive($fieldKey: String!, $fullTableId: String!, $warehouseUuid: UUID!) {
markPiiScanFindingFalsePositive(fieldKey: $fieldKey, fullTableId: $fullTableId, warehouseUuid: $warehouseUuid) {
ok
}
}Types used only by markPiiScanFindingFalsePositive
markPiiScanFindingFalsePositiveMarkPiiScanFindingFalsePositive
MarkPiiScanFindingFalsePositiveObject type.
| Field | Type | Description |
|---|---|---|
ok | Boolean! | |
review | PiiScanFindingReview! | Review state created or reactivated by this mutation. |
Related types
PiiScanFindingReview, PiiType, UUID
restorePiiScanFindingFalsePositive (mutation)
restorePiiScanFindingFalsePositive 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
Restore a PII scan finding previously marked as not PII.
Arguments
| Argument | Type | Description |
|---|---|---|
fieldKey | String! | Column key to restore. Matching is case-insensitive. |
fullTableId | String! | Fully qualified table identifier for the finding to restore. |
piiIdentifier | String | PII identifier to restore. Accepts built-in PII type names or custom PII metric keys. Prefer this field for custom PII findings. |
piiType | PiiType | Built-in PII type to restore. |
warehouseUuid | UUID! | Warehouse UUID for the finding to restore. |
Returns
RestorePiiScanFindingFalsePositive
Example
mutation RestorePiiScanFindingFalsePositive($fieldKey: String!, $fullTableId: String!, $warehouseUuid: UUID!) {
restorePiiScanFindingFalsePositive(fieldKey: $fieldKey, fullTableId: $fullTableId, warehouseUuid: $warehouseUuid) {
ok
}
}Types used only by restorePiiScanFindingFalsePositive
restorePiiScanFindingFalsePositiveRestorePiiScanFindingFalsePositive
RestorePiiScanFindingFalsePositiveObject type.
| Field | Type | Description |
|---|---|---|
ok | Boolean! | |
review | PiiScanFindingReview! | Review state deactivated by this mutation. |
Related types
PiiScanFindingReview, PiiType, UUID
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
