Table monitors, part 1 of 2 (GraphQL)

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

Queries

getDefaultMonitorConfiguration (query)

getDefaultMonitorConfiguration 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.

Fetches monitor configuration for a table

Arguments

ArgumentTypeDescription
mconString!

Returns

TableMonitorConfiguration

Example

query GetDefaultMonitorConfiguration($mcon: String!) {
  getDefaultMonitorConfiguration(mcon: $mcon) {
    allRecords
    timeField
    aggregationType
    timeFieldType
    lookbackDays
    scheduleType
    intervalMinutes
    collectionLagHours
    startTime
    lowCardinalitySuggestions
    badCardinalityFields
    status
    referenceMonitorUuid
  }
}

Related types

TableMonitorConfiguration

getFreshnessTableMonitor (query)

getFreshnessTableMonitor 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 freshness table monitor configuration for an asset

Arguments

ArgumentTypeDescription
mconStringMC unique identifier of the object

Returns

FreshnessTableMonitorConfigOutput

Example

query GetFreshnessTableMonitor {
  getFreshnessTableMonitor {
    uuid
    status
    metric
    mostRecentValue
    supportsExplicitAlertCondition
    dataQualityDimension
  }
}

Types used only by getFreshnessTableMonitor

FreshnessAlertConditionOutput

Union type.

One of: FreshnessAutomatedAlertConditionOutput, FreshnessExplicitAlertConditionOutput

FreshnessAutomatedAlertConditionOutput

Object type.

FieldTypeDescription
sensitivityLevelSensitivityLevels!Sensitivity for automated thresholds
FreshnessDetectorThresholdOutput

Object type.

FieldTypeDescription
valueThresholdLMHType!Thresholds in minutes
FreshnessExplicitAlertConditionOutput

Object type.

FieldTypeDescription
startTimeDateTimeStart time of the collection
intervalMinutesIntCollection interval in minutes
intervalCrontab[String]Collection interval in crontab format
intervalCrontabDayOrBooleanIf true, use default cron behavior and run when day-of-month OR day-of-week match. If false, use alternate behavior and run when day-of-month AND day-of-week match.
timezoneStringTimezone for daylight savings and interpreting cron expressions
isAutoScheduleConfigBoolean!True if auto schedule configuration is used
thresholdInt!Explicit freshness threshold in minutes
FreshnessTableMonitorConfigOutput

Object type.

FieldTypeDescription
uuidUUIDUUID of the underlying OOTB replacement rule
statusConsolidatedMonitorStatusType!Detection status
metricString!Name of metric for which the detector is active
mostRecentValueFloatMost recent value change analyzed by the detector
collectionStatusCollectionStatusOutput!Collection status information
supportsExplicitAlertConditionBoolean!True if using the explicit alert condition is supported
tags[TagKeyValuePairOutput]Tags for the alert condition
dataQualityDimensionStringData quality dimension for the alert condition
effectiveTableMonitorEffectiveTableMonitorOutputActive table monitor whose sensitivity this asset-level monitor inherits, or null if no table monitor covers this asset. Populated regardless of whether an asset-level sensitivity override is in effect — isOverridden signals which case applies.
alertConditionFreshnessAlertConditionOutput!Alert condition configuration
detectorThresholdFreshnessDetectorThresholdOutput!Detector freshness threshold

Related types

CollectionStatusOutput, ConsolidatedMonitorStatusType, DateTime, EffectiveTableMonitorOutput, SensitivityLevels, TagKeyValuePairOutput, ThresholdLMHType, UUID

getTableMonitor (query)

getTableMonitor 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: General availability

Get a table monitor

Arguments

ArgumentTypeDescription
monitorUuidUUID!

Returns

TableMonitor

Example

query GetTableMonitor($monitorUuid: UUID!) {
  getTableMonitor(monitorUuid: $monitorUuid) {
    createdTime
    updatedTime
    uuid
    accountUuid
    isDeleted
    deletedAt
    description
    notes
    isTemplateManaged
    namespace
    priority
    isPaused
    isDraft
    warehouseUuid
    monitorName
    domainRestrictions
    enableRowCountCollectionLimit
    id
    sensitivity
    autoTuning
  }
}

Related types

TableMonitor, UUID

getTableMonitorConfiguration (query)

getTableMonitorConfiguration 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.

Fetches the suggested configuration for a table

Arguments

ArgumentTypeDescription
mconString

Returns

TableMonitorConfiguration

Example

query GetTableMonitorConfiguration {
  getTableMonitorConfiguration {
    allRecords
    timeField
    aggregationType
    timeFieldType
    lookbackDays
    scheduleType
    intervalMinutes
    collectionLagHours
    startTime
    lowCardinalitySuggestions
    badCardinalityFields
    status
    referenceMonitorUuid
  }
}

Related types

TableMonitorConfiguration

getTableMonitorCoverage (query)

getTableMonitorCoverage 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 table monitor coverage information

Arguments

ArgumentTypeDescription
monitorUuidUUIDUUID of the table monitor (for single monitor mode). Cannot be used with monitor_uuids.
monitorUuids[UUID!]List of table monitor UUIDs (for bulk deletion mode). Cannot be used with monitor_uuid.
searchStringSearch for tables by name, database, or schema (case-insensitive substring match)
monitorsSearchStringSearch for monitors by description (case-insensitive substring match)

Returns

TableMonitorCoverage

Example

query GetTableMonitorCoverage {
  getTableMonitorCoverage {
    tablesAtRiskCount
    nonTableMonitorsAtRiskCount
  }
}

Types used only by getTableMonitorCoverage

MonitorAtRisk

Object type. Monitor that could be affected if this table monitor is deleted

FieldTypeDescription
uuidUUID!Monitor UUID
descriptionString!Monitor description
creatorStringID of user who created the monitor
createdTimeDateTime!When the monitor was created
monitorTypeUserDefinedMonitors!Type of monitor
MonitorAtRiskConnection

Object type. Relay connection for monitors at risk

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[MonitorAtRiskEdge]!Contains the nodes in this connection.
MonitorAtRiskEdge

Object type. A Relay edge containing a MonitorAtRisk and its cursor.

FieldTypeDescription
nodeMonitorAtRiskThe item at the end of the edge
cursorString!A cursor for use in pagination
TableMonitorCoverage

Object type. Coverage information for a table monitor

FieldTypeDescription
tablesAtRiskWarehouseTableConnectionPaginated list of tables that are only covered by this monitor and would become unmonitored if this monitor is deleted
tablesAtRiskCountInt!Number of tables that will become unmonitored if this monitor is deleted (tables only covered by this monitor)
nonTableMonitorsAtRiskMonitorAtRiskConnectionPaginated list of monitors that cover tables which are only covered by this monitor. These monitors are at risk of covering unmonitored tables if this monitor is deleted. Sorted by creation date descending.
nonTableMonitorsAtRiskCountInt!Number of non-table monitors that cover tables which are only covered by this monitor (monitors at risk of covering unmonitored tables if this monitor is deleted)

Related types

DateTime, PageInfo, UUID, UserDefinedMonitors, WarehouseTableConnection

getTableMonitorValidationStatuses (query)

getTableMonitorValidationStatuses 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.

Fetches the status of all validations performed on account tables

Arguments

ArgumentTypeDescription
firstIntWhen paging forward: the number of items to return (page size)
afterStringWhen paging forward: the cursor of the last item on the previous page of results
lastIntWhen paging backward: the number of items to return (page size)
beforeStringWhen paging backward: the cursor of the first item on the next page of results

Returns

TableMonitorStatuses

Example

query GetTableMonitorValidationStatuses {
  getTableMonitorValidationStatuses {
    tableMonitorStatuses {
      fullTableId
      timeFields
      fieldRowCounts
      cardinalityFields
      updatedTime
      status
    }
  }
}

Types used only by getTableMonitorValidationStatuses

TableMonitorStatus

Object type.

FieldTypeDescription
fullTableIdString
timeFieldsBooleanWhether time fields have been fetched
fieldRowCountsBooleanWhether row counts have been fetched
cardinalityFieldsBooleanWhether field cardinality has been fetched
updatedTimeDateTimeLast time the table configuration was validated
statusStringCurrent status of the table
TableMonitorStatuses

Object type.

FieldTypeDescription
tableMonitorStatuses[TableMonitorStatus]

Related types

DateTime

getTimeAxisRecommendation (query)

getTimeAxisRecommendation 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

Resolves the best usable time axis for a table, for the given purpose

Arguments

ArgumentTypeDescription
mconString!
purposeTimeAxisPurpose!
maxCandidatesIntHow many axes to return in candidates, including the top pick, for a caller that validates axes against the warehouse and falls to the next one on rejection. Capped at 8 Default: 1.

Returns

TimeAxisRecommendation

Example

query GetTimeAxisRecommendation($mcon: String!, $purpose: TimeAxisPurpose!) {
  getTimeAxisRecommendation(mcon: $mcon, purpose: $purpose) {
    rung
    form
    fieldName
    warehouseType
    referenceMonitorUuid
    castExpression
    spanCheckSql
  }
}

Types used only by getTimeAxisRecommendation

TimeAxisCandidate

Object type. One usable time axis for a table, in preference order

FieldTypeDescription
rungTimeAxisRung!Where the axis came from; NONE when no usable axis was resolved
formTimeAxisFormNATIVE_COLUMN for a bare column, SQL_EXPRESSION for an axis usable only through a cast; unset when the rung is NONE
fieldNameStringThe axis column name, or the SQL expression when the form is SQL_EXPRESSION
warehouseTypeStringNormalized uppercased type for a native column; the raw warehouse type for a castable axis
referenceMonitorUuidUUIDMonitor the axis came from, when the rung is SIBLING_MONITOR
castExpressionStringThe axis wrapped in the warehouse dialect's default cast to timestamp, for SQL_EXPRESSION forms. A candidate the caller must validate against the warehouse before relying on it
spanCheckSqlStringA predicate-free SELECT MIN(axis), MAX(axis) over the table in the warehouse's dialect, for validating the axis is live and spans more than one day before committing to it. The result columns are aliased axis_min and axis_max; warehouses that fold unquoted identifiers return them uppercased, so match them case-insensitively
TimeAxisForm

Enum type. The shape of the resolved axis, which decides who can consume it.

ValueDescription
NATIVE_COLUMN
SQL_EXPRESSION
TimeAxisPurpose

Enum type. What the caller intends to do with the axis.

Each purpose maps to a form set and a rung preference order in
_PURPOSE_SPECS; adding a purpose means adding both.

ValueDescription
SEGMENT_COUNT_PROBE
BOUNDED_SQL
FRESHNESS_PROBE
DEPLOYED_MONITOR
TimeAxisRecommendation

Object type. The resolved time axis for a table, for a given caller purpose

FieldTypeDescription
rungTimeAxisRung!Where the axis came from; NONE when no usable axis was resolved
formTimeAxisFormNATIVE_COLUMN for a bare column, SQL_EXPRESSION for an axis usable only through a cast; unset when the rung is NONE
fieldNameStringThe axis column name, or the SQL expression when the form is SQL_EXPRESSION
warehouseTypeStringNormalized uppercased type for a native column; the raw warehouse type for a castable axis
referenceMonitorUuidUUIDMonitor the axis came from, when the rung is SIBLING_MONITOR
castExpressionStringThe axis wrapped in the warehouse dialect's default cast to timestamp, for SQL_EXPRESSION forms. A candidate the caller must validate against the warehouse before relying on it
spanCheckSqlStringA predicate-free SELECT MIN(axis), MAX(axis) over the table in the warehouse's dialect, for validating the axis is live and spans more than one day before committing to it. The result columns are aliased axis_min and axis_max; warehouses that fold unquoted identifiers return them uppercased, so match them case-insensitively
candidates[TimeAxisCandidate!]!Every usable axis, up to maxCandidates, ordered by rung then field name; the top fields above are the first entry. Empty when no usable axis was resolved
TimeAxisRung

Enum type. Where a resolved time axis came from, best-evidence first.

ValueDescription
SIBLING_MONITOR
PARTITION_KEY
NATIVE
CASTABLE_PARTITION_KEY
CASTABLE
NONE

Related types

UUID

getUcsTableMonitor (query)

getUcsTableMonitor 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 ucs table monitor configuration for an asset

Arguments

ArgumentTypeDescription
mconStringMC unique identifier of the object

Returns

UCSTableMonitorConfigOutput

Example

query GetUcsTableMonitor {
  getUcsTableMonitor {
    uuid
    status
    metric
    mostRecentValue
    supportsExplicitAlertCondition
    dataQualityDimension
  }
}

Types used only by getUcsTableMonitor

UCSAlertConditionOutput

Union type.

One of: UCSAutomatedAlertConditionOutput, UCSExplicitAlertConditionOutput

UCSAutomatedAlertConditionOutput

Object type.

FieldTypeDescription
sensitivityLevelSensitivityLevels!Sensitivity for automated thresholds
UCSDetectorThresholdOutput

Object type.

FieldTypeDescription
valueThresholdLMHType!Thresholds in minutes
UCSExplicitAlertConditionOutput

Object type.

FieldTypeDescription
startTimeDateTimeStart time of the collection
intervalMinutesIntCollection interval in minutes
intervalCrontab[String]Collection interval in crontab format
intervalCrontabDayOrBooleanIf true, use default cron behavior and run when day-of-month OR day-of-week match. If false, use alternate behavior and run when day-of-month AND day-of-week match.
timezoneStringTimezone for daylight savings and interpreting cron expressions
isAutoScheduleConfigBoolean!True if auto schedule configuration is used
thresholdInt!Explicit freshness threshold in minutes
UCSTableMonitorConfigOutput

Object type.

FieldTypeDescription
uuidUUIDUUID of the underlying OOTB replacement rule
statusConsolidatedMonitorStatusType!Detection status
metricString!Name of metric for which the detector is active
mostRecentValueFloatMost recent value change analyzed by the detector
collectionStatusCollectionStatusOutput!Collection status information
supportsExplicitAlertConditionBoolean!True if using the explicit alert condition is supported
tags[TagKeyValuePairOutput]Tags for the alert condition
dataQualityDimensionStringData quality dimension for the alert condition
effectiveTableMonitorEffectiveTableMonitorOutputActive table monitor whose sensitivity this asset-level monitor inherits, or null if no table monitor covers this asset. Populated regardless of whether an asset-level sensitivity override is in effect — isOverridden signals which case applies.
alertConditionUCSAlertConditionOutput!Alert condition configuration
detectorThresholdUCSDetectorThresholdOutput!Detector freshness threshold

Related types

CollectionStatusOutput, ConsolidatedMonitorStatusType, DateTime, EffectiveTableMonitorOutput, SensitivityLevels, TagKeyValuePairOutput, ThresholdLMHType, UUID

getVolumeChangeTableMonitor (query)

getVolumeChangeTableMonitor 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 volume change table monitor configuration for an asset

Arguments

ArgumentTypeDescription
mconStringMC unique identifier of the object

Returns

VolumeChangeTableMonitorConfigOutput

Example

query GetVolumeChangeTableMonitor {
  getVolumeChangeTableMonitor {
    uuid
    status
    metric
    mostRecentValue
    supportsExplicitAlertCondition
    dataQualityDimension
    mostRecentTotalSize
  }
}

Types used only by getVolumeChangeTableMonitor

VolumeChangeAlertConditionOutput

Union type.

One of: VolumeChangeAutomatedAlertConditionOutput, VolumeChangeExplicitAlertConditionOutput

VolumeChangeAutomatedAlertConditionOutput

Object type.

FieldTypeDescription
sensitivityLevelSensitivityLevels!Sensitivity for automated thresholds
VolumeChangeDetectorThresholdOutput

Object type.

FieldTypeDescription
upperThresholdLMHType!Upper thresholds in percent
lowerThresholdLMHType!Lower thresholds in percent
VolumeChangeExplicitAlertConditionOutput

Object type.

FieldTypeDescription
startTimeDateTimeStart time of the collection
intervalMinutesIntCollection interval in minutes
intervalCrontab[String]Collection interval in crontab format
intervalCrontabDayOrBooleanIf true, use default cron behavior and run when day-of-month OR day-of-week match. If false, use alternate behavior and run when day-of-month AND day-of-week match.
timezoneStringTimezone for daylight savings and interpreting cron expressions
upperThresholdFloat!Upper threshold in percent
lowerThresholdFloat!Lower threshold in percent
thresholdLookbackMinutesInt!Threshold lookback in minutes
VolumeChangeTableMonitorConfigOutput

Object type.

FieldTypeDescription
uuidUUIDUUID of the underlying OOTB replacement rule
statusConsolidatedMonitorStatusType!Detection status
metricString!Name of metric for which the detector is active
mostRecentValueFloatMost recent value change analyzed by the detector
collectionStatusCollectionStatusOutput!Collection status information
supportsExplicitAlertConditionBoolean!True if using the explicit alert condition is supported
tags[TagKeyValuePairOutput]Tags for the alert condition
dataQualityDimensionStringData quality dimension for the alert condition
effectiveTableMonitorEffectiveTableMonitorOutputActive table monitor whose sensitivity this asset-level monitor inherits, or null if no table monitor covers this asset. Populated regardless of whether an asset-level sensitivity override is in effect — isOverridden signals which case applies.
alertConditionVolumeChangeAlertConditionOutput!Alert condition configuration
detectorThresholdVolumeChangeDetectorThresholdOutput!Detector volume change threshold
mostRecentTotalSizeFloatMost recent total size value collected

Related types

CollectionStatusOutput, ConsolidatedMonitorStatusType, DateTime, EffectiveTableMonitorOutput, SensitivityLevels, TagKeyValuePairOutput, ThresholdLMHType, UUID

Mutations

createOrUpdateTableMonitor (mutation)

createOrUpdateTableMonitor 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 Table monitor

Arguments

ArgumentTypeDescription
alertConditions[TableMonitorAlertConditionInput!]Alert conditions for the table monitor
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!]The monitor notification audiences
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.
autoTuningBooleanPer-monitor auto-apply-tuning override. true forces auto-apply tuning 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.
dataQualityDimensionStringData quality dimension of the monitor.
descriptionString!Description of rule
domainRestrictions[UUID!]The domains to restrict to
dryRunBooleanDry run the monitor creation or update and return the YAML and queries. Default: false.
enableRowCountCollectionBooleanEnable row count collection for tables that require it. Default: false.
enableRowCountCollectionLimitIntMaximum number of tables to enable row count collection for. If not provided, uses the default limit.
failureAudiences[String!]The audiences to notify on failure
isDraftBooleanMake target a draft monitor. Default: false.
notesStringAdditional context for the monitor Default: "".
priorityStringThe default priority for alerts involving this monitor
sensitivitySensitivityLevelsSensitivity level for the table monitor. Defaults to MEDIUM on create. Omitting on update preserves the existing value.
tags[TagKeyValuePairInput!]The monitor tags.
uuidUUIDUUID of the table monitor, to update existing monito
warehouseUuidUUID!Warehouse UUID

Returns

CreateOrUpdateTableMonitor

Example

mutation CreateOrUpdateTableMonitor($assetSelection: AssetSelectionInput!, $description: String!, $warehouseUuid: UUID!) {
  createOrUpdateTableMonitor(assetSelection: $assetSelection, description: $description, warehouseUuid: $warehouseUuid) {
    yaml
    persistBlockedBy
    spendGuardrailMessage
  }
}

Types used only by createOrUpdateTableMonitor

CreateOrUpdateTableMonitor

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

FieldTypeDescription
tableMonitorTableMonitor
yamlStringYAML representation of the monitor (only returned for dry_run)
estimatedCreditsEstimatedCreditsSpec-derived daily credit estimate. Computed from the provided input config, not from persisted DB state — so dry-run, draft, and full create/update all return a consistent preview. Only populated for accounts on the per-monitor credit consumption pricing model; null otherwise.
persistBlockedByStringSet on dry runs only. Says why saving this monitor would not give the result the preview shows. A permission path, such as monitors/management/metric/edit, means the caller lacks it and the save would be refused. The caller can still save the monitor as a draft if it has the monitor type's draft permission. SPEND_GUARDRAIL means a spend guardrail is reached, so the save would create this new monitor as a draft instead of live. spendGuardrailMessage names the guardrail. When both apply, the permission path is returned. Null when the save would go through as previewed, and on requests that are not dry runs.
spendGuardrailMessageStringSet when a reached spend guardrail makes the save create this new monitor as a draft instead of live: on a dry run, when the save would do so, and on the save itself, when it did. A sentence for the user that names the guardrail (the account's or a domain's), its amount and when it resets, and says that an Account Owner can raise it. On a dry run whose persistBlockedBy is a permission path, the save is refused instead, so read that first. Null otherwise, including for a monitor saved as a draft on request, and for updates to an existing monitor.

Related types

AlertGroupingInput, AssetSelectionInput, AudienceConditionInput, EstimatedCredits, SensitivityLevels, TableMonitor, TableMonitorAlertConditionInput, TagKeyValuePairInput, UUID

createOrUpdateTableMonitorV2 (mutation)

createOrUpdateTableMonitorV2 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 Table monitor with explicit joiners

Arguments

ArgumentTypeDescription
alertConditions[TableMonitorAlertConditionInput!]Alert conditions for the table monitor
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).
assetSelectionAssetSelectionV2Input!
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!]The monitor notification audiences
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.
autoTuningBooleanPer-monitor auto-apply-tuning override. true forces auto-apply tuning 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.
dataQualityDimensionStringData quality dimension of the monitor.
descriptionString!Description of rule
domainRestrictions[UUID!]The domains to restrict to
dryRunBooleanDry run the monitor creation or update and return the YAML and queries. Default: false.
enableRowCountCollectionBooleanEnable row count collection for tables that require it. Default: false.
enableRowCountCollectionLimitIntMaximum number of tables to enable row count collection for. If not provided, uses the default limit.
failureAudiences[String!]The audiences to notify on failure
isDraftBooleanMake target a draft monitor. Default: false.
notesStringAdditional context for the monitor Default: "".
priorityStringThe default priority for alerts involving this monitor
sensitivitySensitivityLevelsSensitivity level for the table monitor. Defaults to MEDIUM on create. Omitting on update preserves the existing value.
tags[TagKeyValuePairInput!]The monitor tags.
uuidUUIDUUID of the table monitor, to update existing monito
warehouseUuidUUID!Warehouse UUID

Returns

CreateOrUpdateTableMonitorV2

Example

mutation CreateOrUpdateTableMonitorV2($assetSelection: AssetSelectionV2Input!, $description: String!, $warehouseUuid: UUID!) {
  createOrUpdateTableMonitorV2(assetSelection: $assetSelection, description: $description, warehouseUuid: $warehouseUuid) {
    yaml
    persistBlockedBy
    spendGuardrailMessage
  }
}

Types used only by createOrUpdateTableMonitorV2

AssetSelectionV2Input

Input object type.

FieldTypeDescription
databases[AssetIncludeDatabaseInput!]
filters[AssetFilterUnionInput!]
filtersJoinerAssetFilterJoiner!How the include filter rows combine. OR: a table is in scope when it matches any row. AND: a table is in scope only when it matches every row, so the selection narrows as rows are added.
exclusions[AssetFilterUnionInput!]
exclusionsJoinerAssetFilterJoiner!How the exclude filter rows combine. OR: a table is excluded when it matches any row. AND: a table is excluded only when it matches every row, so the selection widens as rows are added.
CreateOrUpdateTableMonitorV2

Object type. Create or update a table monitor. Identical to createOrUpdateTableMonitor, except assetSelection is an AssetSelectionV2Input: both joiners are required, so callers state explicitly how filter rows combine. Updates therefore always state both joiners explicitly; no stored values are preserved for omitted keys.

FieldTypeDescription
tableMonitorTableMonitor
yamlStringYAML representation of the monitor (only returned for dry_run)
estimatedCreditsEstimatedCreditsSpec-derived daily credit estimate. Computed from the provided input config, not from persisted DB state — so dry-run, draft, and full create/update all return a consistent preview. Only populated for accounts on the per-monitor credit consumption pricing model; null otherwise.
persistBlockedByStringSet on dry runs only. Says why saving this monitor would not give the result the preview shows. A permission path, such as monitors/management/metric/edit, means the caller lacks it and the save would be refused. The caller can still save the monitor as a draft if it has the monitor type's draft permission. SPEND_GUARDRAIL means a spend guardrail is reached, so the save would create this new monitor as a draft instead of live. spendGuardrailMessage names the guardrail. When both apply, the permission path is returned. Null when the save would go through as previewed, and on requests that are not dry runs.
spendGuardrailMessageStringSet when a reached spend guardrail makes the save create this new monitor as a draft instead of live: on a dry run, when the save would do so, and on the save itself, when it did. A sentence for the user that names the guardrail (the account's or a domain's), its amount and when it resets, and says that an Account Owner can raise it. On a dry run whose persistBlockedBy is a permission path, the save is refused instead, so read that first. Null otherwise, including for a monitor saved as a draft on request, and for updates to an existing monitor.

Related types

AlertGroupingInput, AssetFilterJoiner, AssetFilterUnionInput, AssetIncludeDatabaseInput, AudienceConditionInput, EstimatedCredits, SensitivityLevels, TableMonitor, TableMonitorAlertConditionInput, TagKeyValuePairInput, UUID

createSingleTableMonitoringNotification (mutation)

createSingleTableMonitoringNotification 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

Record a single-table monitoring enablement event

Arguments

ArgumentTypeDescription
mconString!MCON of the table for which monitoring was enabled
tableMonitorUuidUUIDUUID of the TableMonitor that enabled monitoring for this table.
usageRuleIdIntDeprecated: monitoring rules were removed. Passing this raises a validation error; provide tableMonitorUuid instead.

Returns

CreateSingleTableMonitoringNotification

Example

mutation CreateSingleTableMonitoringNotification($mcon: String!) {
  createSingleTableMonitoringNotification(mcon: $mcon) {
    success
  }
}

Types used only by createSingleTableMonitoringNotification

CreateSingleTableMonitoringNotification

Object type. Record that monitoring was enabled for a single table.

Must provide the table mcon and the table monitor UUID.

FieldTypeDescription
successBoolean!True if the event was recorded

Related types

UUID

deleteTableMonitor (mutation)

deleteTableMonitor 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 Table monitor

Arguments

ArgumentTypeDescription
monitorUuidUUID!UUID of the table monitor to delete

Returns

DeleteTableMonitor

Example

mutation DeleteTableMonitor($monitorUuid: UUID!) {
  deleteTableMonitor(monitorUuid: $monitorUuid) {
    success
  }
}

Types used only by deleteTableMonitor

DeleteTableMonitor

Object type. Delete a table monitor

FieldTypeDescription
successBoolean!

Related types

UUID

disableFreshnessTableMonitor (mutation)

disableFreshnessTableMonitor 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

Disable freshness table monitoring for an asset

Arguments

ArgumentTypeDescription
mconString!MC unique identifier for asset

Returns

DisableFreshnessTableMonitor

Example

mutation DisableFreshnessTableMonitor($mcon: String!) {
  disableFreshnessTableMonitor(mcon: $mcon) {
    uuid
  }
}

Types used only by disableFreshnessTableMonitor

DisableFreshnessTableMonitor

Object type.

FieldTypeDescription
uuidUUIDUUID of the underlying OOTB replacement rule

Related types

UUID

disableUcsTableMonitor (mutation)

disableUcsTableMonitor 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

Disable unchanged size table monitoring for an asset

Arguments

ArgumentTypeDescription
mconString!MC unique identifier for asset

Returns

DisableUCSTableMonitor

Example

mutation DisableUcsTableMonitor($mcon: String!) {
  disableUcsTableMonitor(mcon: $mcon) {
    uuid
  }
}

Types used only by disableUcsTableMonitor

DisableUCSTableMonitor

Object type.

FieldTypeDescription
uuidUUIDUUID of the underlying OOTB replacement rule

Related types

UUID

disableVolumeChangeTableMonitor (mutation)

disableVolumeChangeTableMonitor 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

Disable volume change table monitoring for an asset

Arguments

ArgumentTypeDescription
mconString!MC unique identifier for asset

Returns

DisableVolumeChangeTableMonitor

Example

mutation DisableVolumeChangeTableMonitor($mcon: String!) {
  disableVolumeChangeTableMonitor(mcon: $mcon) {
    uuid
  }
}

Types used only by disableVolumeChangeTableMonitor

DisableVolumeChangeTableMonitor

Object type.

FieldTypeDescription
uuidUUIDUUID of the underlying OOTB replacement rule

Related types

UUID

enableAutomatedFreshnessTableMonitor (mutation)

enableAutomatedFreshnessTableMonitor 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

Enable automated freshness table monitoring an given asset

Arguments

ArgumentTypeDescription
alertConditionFreshnessAutomatedAlertConditionInput!Alert condition
dataQualityDimensionStringData quality dimension for the alert condition
mconString!MC unique identifier for asset
tags[TagKeyValuePairInput]Tags for the alert condition Default: [].

Returns

EnableAutomatedFreshnessTableMonitor

Example

mutation EnableAutomatedFreshnessTableMonitor($alertCondition: FreshnessAutomatedAlertConditionInput!, $mcon: String!) {
  enableAutomatedFreshnessTableMonitor(alertCondition: $alertCondition, mcon: $mcon) {
    uuid
  }
}

Types used only by enableAutomatedFreshnessTableMonitor

EnableAutomatedFreshnessTableMonitor

Object type.

FieldTypeDescription
uuidUUIDUUID of the underlying OOTB replacement rule
FreshnessAutomatedAlertConditionInput

Input object type.

FieldTypeDescription
sensitivityLevelSensitivityLevels!Sensitivity for automated thresholds

Related types

SensitivityLevels, TagKeyValuePairInput, UUID

enableAutomatedUcsTableMonitor (mutation)

enableAutomatedUcsTableMonitor 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

Enable automated unchanged size table monitoring an given asset

Arguments

ArgumentTypeDescription
alertConditionUCSAutomatedAlertConditionInput!Alert condition
dataQualityDimensionStringData quality dimension for the alert condition
mconString!MC unique identifier for asset
tags[TagKeyValuePairInput]Tags for the alert condition Default: [].

Returns

EnableAutomatedUCSTableMonitor

Example

mutation EnableAutomatedUcsTableMonitor($alertCondition: UCSAutomatedAlertConditionInput!, $mcon: String!) {
  enableAutomatedUcsTableMonitor(alertCondition: $alertCondition, mcon: $mcon) {
    uuid
  }
}

Types used only by enableAutomatedUcsTableMonitor

EnableAutomatedUCSTableMonitor

Object type.

FieldTypeDescription
uuidUUIDUUID of the underlying OOTB replacement rule
UCSAutomatedAlertConditionInput

Input object type.

FieldTypeDescription
sensitivityLevelSensitivityLevels!Sensitivity for automated thresholds

Related types

SensitivityLevels, TagKeyValuePairInput, UUID

enableAutomatedVolumeChangeTableMonitor (mutation)

enableAutomatedVolumeChangeTableMonitor 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

Enable automated volume change table monitoring an given asset

Arguments

ArgumentTypeDescription
alertConditionVolumeChangeAutomatedAlertConditionInput!Alert condition
dataQualityDimensionStringData quality dimension for the alert condition
mconString!MC unique identifier for asset
tags[TagKeyValuePairInput]Tags for the alert condition Default: [].

Returns

EnableAutomatedVolumeChangeTableMonitor

Example

mutation EnableAutomatedVolumeChangeTableMonitor($alertCondition: VolumeChangeAutomatedAlertConditionInput!, $mcon: String!) {
  enableAutomatedVolumeChangeTableMonitor(alertCondition: $alertCondition, mcon: $mcon) {
    uuid
  }
}

Types used only by enableAutomatedVolumeChangeTableMonitor

EnableAutomatedVolumeChangeTableMonitor

Object type.

FieldTypeDescription
uuidUUIDUUID of the underlying OOTB replacement rule
VolumeChangeAutomatedAlertConditionInput

Input object type.

FieldTypeDescription
sensitivityLevelSensitivityLevels!Sensitivity for automated thresholds

Related types

SensitivityLevels, TagKeyValuePairInput, UUID

enableExplicitFreshnessTableMonitor (mutation)

enableExplicitFreshnessTableMonitor 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

Enable explicit freshness table monitoring an given asset

Arguments

ArgumentTypeDescription
alertConditionFreshnessExplicitAlertConditionInput!Alert condition
dataQualityDimensionStringData quality dimension for the alert condition
mconString!MC unique identifier for asset
tags[TagKeyValuePairInput]Tags for the alert condition Default: [].

Returns

EnableExplicitFreshnessTableMonitor

Example

mutation EnableExplicitFreshnessTableMonitor($alertCondition: FreshnessExplicitAlertConditionInput!, $mcon: String!) {
  enableExplicitFreshnessTableMonitor(alertCondition: $alertCondition, mcon: $mcon) {
    uuid
  }
}

Types used only by enableExplicitFreshnessTableMonitor

EnableExplicitFreshnessTableMonitor

Object type.

FieldTypeDescription
uuidUUIDUUID of the underlying OOTB replacement rule
FreshnessExplicitAlertConditionInput

Input object type.

FieldTypeDescription
startTimeDateTimeStart time of the collection
intervalMinutesIntCollection interval in minutes
intervalCrontab[String]Collection interval in crontab format
intervalCrontabDayOrBooleanIf true, use default cron behavior and run when day-of-month OR day-of-week match. If false, use alternate behavior and run when day-of-month AND day-of-week match.
timezoneStringTimezone for daylight savings and interpreting cron expressions
isAutoScheduleConfigBooleanSet to true to use auto schedule configuration Default: false.
thresholdInt!Explicit freshness threshold in minutes

Related types

DateTime, TagKeyValuePairInput, UUID

enableExplicitUcsTableMonitor (mutation)

enableExplicitUcsTableMonitor 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

Enable explicit unchanged size table monitoring an given asset

Arguments

ArgumentTypeDescription
alertConditionUCSExplicitAlertConditionInput!Alert condition
dataQualityDimensionStringData quality dimension for the alert condition
mconString!MC unique identifier for asset
metricString!Metric to monitor
tags[TagKeyValuePairInput]Tags for the alert condition Default: [].

Returns

EnableExplicitUCSTableMonitor

Example

mutation EnableExplicitUcsTableMonitor($alertCondition: UCSExplicitAlertConditionInput!, $mcon: String!, $metric: String!) {
  enableExplicitUcsTableMonitor(alertCondition: $alertCondition, mcon: $mcon, metric: $metric) {
    uuid
  }
}

Types used only by enableExplicitUcsTableMonitor

EnableExplicitUCSTableMonitor

Object type.

FieldTypeDescription
uuidUUIDUUID of the underlying OOTB replacement rule
UCSExplicitAlertConditionInput

Input object type.

FieldTypeDescription
startTimeDateTimeStart time of the collection
intervalMinutesIntCollection interval in minutes
intervalCrontab[String]Collection interval in crontab format
intervalCrontabDayOrBooleanIf true, use default cron behavior and run when day-of-month OR day-of-week match. If false, use alternate behavior and run when day-of-month AND day-of-week match.
timezoneStringTimezone for daylight savings and interpreting cron expressions
isAutoScheduleConfigBooleanSet to true to use auto schedule configuration Default: false.
thresholdInt!Explicit freshness threshold in minutes

Related types

DateTime, TagKeyValuePairInput, UUID

enableExplicitVolumeChangeTableMonitor (mutation)

enableExplicitVolumeChangeTableMonitor 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

Enable explicit volume change table monitoring an given asset

Arguments

ArgumentTypeDescription
alertConditionVolumeChangeExplicitAlertConditionInput!Alert condition
dataQualityDimensionStringData quality dimension for the alert condition
mconString!MC unique identifier for asset
metricString!Metric to monitor
tags[TagKeyValuePairInput]Tags for the alert condition Default: [].

Returns

EnableExplicitVolumeChangeTableMonitor

Example

mutation EnableExplicitVolumeChangeTableMonitor($alertCondition: VolumeChangeExplicitAlertConditionInput!, $mcon: String!, $metric: String!) {
  enableExplicitVolumeChangeTableMonitor(alertCondition: $alertCondition, mcon: $mcon, metric: $metric) {
    uuid
  }
}

Types used only by enableExplicitVolumeChangeTableMonitor

EnableExplicitVolumeChangeTableMonitor

Object type.

FieldTypeDescription
uuidUUIDUUID of the underlying OOTB replacement rule
VolumeChangeExplicitAlertConditionInput

Input object type.

FieldTypeDescription
startTimeDateTimeStart time of the collection
intervalMinutesIntCollection interval in minutes
intervalCrontab[String]Collection interval in crontab format
intervalCrontabDayOrBooleanIf true, use default cron behavior and run when day-of-month OR day-of-week match. If false, use alternate behavior and run when day-of-month AND day-of-week match.
timezoneStringTimezone for daylight savings and interpreting cron expressions
thresholdLookbackMinutesInt!Threshold lookback in minutes
upperThresholdFloat!Upper threshold in percent
lowerThresholdFloat!Lower threshold in percent

Related types

DateTime, TagKeyValuePairInput, UUID

Source: The GraphQL API reference

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