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
| Argument | Type | Description |
|---|---|---|
mcon | String! |
Returns
Example
query GetDefaultMonitorConfiguration($mcon: String!) {
getDefaultMonitorConfiguration(mcon: $mcon) {
allRecords
timeField
aggregationType
timeFieldType
lookbackDays
scheduleType
intervalMinutes
collectionLagHours
startTime
lowCardinalitySuggestions
badCardinalityFields
status
referenceMonitorUuid
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
mcon | String | MC unique identifier of the object |
Returns
FreshnessTableMonitorConfigOutput
Example
query GetFreshnessTableMonitor {
getFreshnessTableMonitor {
uuid
status
metric
mostRecentValue
supportsExplicitAlertCondition
dataQualityDimension
}
}Types used only by getFreshnessTableMonitor
getFreshnessTableMonitorFreshnessAlertConditionOutput
FreshnessAlertConditionOutputUnion type.
One of: FreshnessAutomatedAlertConditionOutput, FreshnessExplicitAlertConditionOutput
FreshnessAutomatedAlertConditionOutput
FreshnessAutomatedAlertConditionOutputObject type.
| Field | Type | Description |
|---|---|---|
sensitivityLevel | SensitivityLevels! | Sensitivity for automated thresholds |
FreshnessDetectorThresholdOutput
FreshnessDetectorThresholdOutputObject type.
| Field | Type | Description |
|---|---|---|
value | ThresholdLMHType! | Thresholds in minutes |
FreshnessExplicitAlertConditionOutput
FreshnessExplicitAlertConditionOutputObject type.
| Field | Type | Description |
|---|---|---|
startTime | DateTime | Start time of the collection |
intervalMinutes | Int | Collection interval in minutes |
intervalCrontab | [String] | Collection interval in crontab format |
intervalCrontabDayOr | Boolean | If 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. |
timezone | String | Timezone for daylight savings and interpreting cron expressions |
isAutoScheduleConfig | Boolean! | True if auto schedule configuration is used |
threshold | Int! | Explicit freshness threshold in minutes |
FreshnessTableMonitorConfigOutput
FreshnessTableMonitorConfigOutputObject type.
| Field | Type | Description |
|---|---|---|
uuid | UUID | UUID of the underlying OOTB replacement rule |
status | ConsolidatedMonitorStatusType! | Detection status |
metric | String! | Name of metric for which the detector is active |
mostRecentValue | Float | Most recent value change analyzed by the detector |
collectionStatus | CollectionStatusOutput! | Collection status information |
supportsExplicitAlertCondition | Boolean! | True if using the explicit alert condition is supported |
tags | [TagKeyValuePairOutput] | Tags for the alert condition |
dataQualityDimension | String | Data quality dimension for the alert condition |
effectiveTableMonitor | EffectiveTableMonitorOutput | Active 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. |
alertCondition | FreshnessAlertConditionOutput! | Alert condition configuration |
detectorThreshold | FreshnessDetectorThresholdOutput! | 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
| Argument | Type | Description |
|---|---|---|
monitorUuid | UUID! |
Returns
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
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
| Argument | Type | Description |
|---|---|---|
mcon | String |
Returns
Example
query GetTableMonitorConfiguration {
getTableMonitorConfiguration {
allRecords
timeField
aggregationType
timeFieldType
lookbackDays
scheduleType
intervalMinutes
collectionLagHours
startTime
lowCardinalitySuggestions
badCardinalityFields
status
referenceMonitorUuid
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
monitorUuid | UUID | UUID 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. |
search | String | Search for tables by name, database, or schema (case-insensitive substring match) |
monitorsSearch | String | Search for monitors by description (case-insensitive substring match) |
Returns
TableMonitorCoverage
Example
query GetTableMonitorCoverage {
getTableMonitorCoverage {
tablesAtRiskCount
nonTableMonitorsAtRiskCount
}
}Types used only by getTableMonitorCoverage
getTableMonitorCoverageMonitorAtRisk
MonitorAtRiskObject type. Monitor that could be affected if this table monitor is deleted
| Field | Type | Description |
|---|---|---|
uuid | UUID! | Monitor UUID |
description | String! | Monitor description |
creator | String | ID of user who created the monitor |
createdTime | DateTime! | When the monitor was created |
monitorType | UserDefinedMonitors! | Type of monitor |
MonitorAtRiskConnection
MonitorAtRiskConnectionObject type. Relay connection for monitors at risk
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [MonitorAtRiskEdge]! | Contains the nodes in this connection. |
MonitorAtRiskEdge
MonitorAtRiskEdgeObject type. A Relay edge containing a MonitorAtRisk and its cursor.
| Field | Type | Description |
|---|---|---|
node | MonitorAtRisk | The item at the end of the edge |
cursor | String! | A cursor for use in pagination |
TableMonitorCoverage
TableMonitorCoverageObject type. Coverage information for a table monitor
| Field | Type | Description |
|---|---|---|
tablesAtRisk | WarehouseTableConnection | Paginated list of tables that are only covered by this monitor and would become unmonitored if this monitor is deleted |
tablesAtRiskCount | Int! | Number of tables that will become unmonitored if this monitor is deleted (tables only covered by this monitor) |
nonTableMonitorsAtRisk | MonitorAtRiskConnection | Paginated 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. |
nonTableMonitorsAtRiskCount | Int! | 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
| Argument | Type | Description |
|---|---|---|
first | Int | When paging forward: the number of items to return (page size) |
after | String | When paging forward: the cursor of the last item on the previous page of results |
last | Int | When paging backward: the number of items to return (page size) |
before | String | When 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
getTableMonitorValidationStatusesTableMonitorStatus
TableMonitorStatusObject type.
| Field | Type | Description |
|---|---|---|
fullTableId | String | |
timeFields | Boolean | Whether time fields have been fetched |
fieldRowCounts | Boolean | Whether row counts have been fetched |
cardinalityFields | Boolean | Whether field cardinality has been fetched |
updatedTime | DateTime | Last time the table configuration was validated |
status | String | Current status of the table |
TableMonitorStatuses
TableMonitorStatusesObject type.
| Field | Type | Description |
|---|---|---|
tableMonitorStatuses | [TableMonitorStatus] |
Related types
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
| Argument | Type | Description |
|---|---|---|
mcon | String! | |
purpose | TimeAxisPurpose! | |
maxCandidates | Int | How 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
getTimeAxisRecommendationTimeAxisCandidate
TimeAxisCandidateObject type. One usable time axis for a table, in preference order
| Field | Type | Description |
|---|---|---|
rung | TimeAxisRung! | Where the axis came from; NONE when no usable axis was resolved |
form | TimeAxisForm | NATIVE_COLUMN for a bare column, SQL_EXPRESSION for an axis usable only through a cast; unset when the rung is NONE |
fieldName | String | The axis column name, or the SQL expression when the form is SQL_EXPRESSION |
warehouseType | String | Normalized uppercased type for a native column; the raw warehouse type for a castable axis |
referenceMonitorUuid | UUID | Monitor the axis came from, when the rung is SIBLING_MONITOR |
castExpression | String | The 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 |
spanCheckSql | String | A 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
TimeAxisFormEnum type. The shape of the resolved axis, which decides who can consume it.
| Value | Description |
|---|---|
NATIVE_COLUMN | |
SQL_EXPRESSION |
TimeAxisPurpose
TimeAxisPurposeEnum 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.
| Value | Description |
|---|---|
SEGMENT_COUNT_PROBE | |
BOUNDED_SQL | |
FRESHNESS_PROBE | |
DEPLOYED_MONITOR |
TimeAxisRecommendation
TimeAxisRecommendationObject type. The resolved time axis for a table, for a given caller purpose
| Field | Type | Description |
|---|---|---|
rung | TimeAxisRung! | Where the axis came from; NONE when no usable axis was resolved |
form | TimeAxisForm | NATIVE_COLUMN for a bare column, SQL_EXPRESSION for an axis usable only through a cast; unset when the rung is NONE |
fieldName | String | The axis column name, or the SQL expression when the form is SQL_EXPRESSION |
warehouseType | String | Normalized uppercased type for a native column; the raw warehouse type for a castable axis |
referenceMonitorUuid | UUID | Monitor the axis came from, when the rung is SIBLING_MONITOR |
castExpression | String | The 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 |
spanCheckSql | String | A 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
TimeAxisRungEnum type. Where a resolved time axis came from, best-evidence first.
| Value | Description |
|---|---|
SIBLING_MONITOR | |
PARTITION_KEY | |
NATIVE | |
CASTABLE_PARTITION_KEY | |
CASTABLE | |
NONE |
Related types
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
| Argument | Type | Description |
|---|---|---|
mcon | String | MC unique identifier of the object |
Returns
UCSTableMonitorConfigOutput
Example
query GetUcsTableMonitor {
getUcsTableMonitor {
uuid
status
metric
mostRecentValue
supportsExplicitAlertCondition
dataQualityDimension
}
}Types used only by getUcsTableMonitor
getUcsTableMonitorUCSAlertConditionOutput
UCSAlertConditionOutputUnion type.
One of: UCSAutomatedAlertConditionOutput, UCSExplicitAlertConditionOutput
UCSAutomatedAlertConditionOutput
UCSAutomatedAlertConditionOutputObject type.
| Field | Type | Description |
|---|---|---|
sensitivityLevel | SensitivityLevels! | Sensitivity for automated thresholds |
UCSDetectorThresholdOutput
UCSDetectorThresholdOutputObject type.
| Field | Type | Description |
|---|---|---|
value | ThresholdLMHType! | Thresholds in minutes |
UCSExplicitAlertConditionOutput
UCSExplicitAlertConditionOutputObject type.
| Field | Type | Description |
|---|---|---|
startTime | DateTime | Start time of the collection |
intervalMinutes | Int | Collection interval in minutes |
intervalCrontab | [String] | Collection interval in crontab format |
intervalCrontabDayOr | Boolean | If 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. |
timezone | String | Timezone for daylight savings and interpreting cron expressions |
isAutoScheduleConfig | Boolean! | True if auto schedule configuration is used |
threshold | Int! | Explicit freshness threshold in minutes |
UCSTableMonitorConfigOutput
UCSTableMonitorConfigOutputObject type.
| Field | Type | Description |
|---|---|---|
uuid | UUID | UUID of the underlying OOTB replacement rule |
status | ConsolidatedMonitorStatusType! | Detection status |
metric | String! | Name of metric for which the detector is active |
mostRecentValue | Float | Most recent value change analyzed by the detector |
collectionStatus | CollectionStatusOutput! | Collection status information |
supportsExplicitAlertCondition | Boolean! | True if using the explicit alert condition is supported |
tags | [TagKeyValuePairOutput] | Tags for the alert condition |
dataQualityDimension | String | Data quality dimension for the alert condition |
effectiveTableMonitor | EffectiveTableMonitorOutput | Active 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. |
alertCondition | UCSAlertConditionOutput! | Alert condition configuration |
detectorThreshold | UCSDetectorThresholdOutput! | 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
| Argument | Type | Description |
|---|---|---|
mcon | String | MC unique identifier of the object |
Returns
VolumeChangeTableMonitorConfigOutput
Example
query GetVolumeChangeTableMonitor {
getVolumeChangeTableMonitor {
uuid
status
metric
mostRecentValue
supportsExplicitAlertCondition
dataQualityDimension
mostRecentTotalSize
}
}Types used only by getVolumeChangeTableMonitor
getVolumeChangeTableMonitorVolumeChangeAlertConditionOutput
VolumeChangeAlertConditionOutputUnion type.
One of: VolumeChangeAutomatedAlertConditionOutput, VolumeChangeExplicitAlertConditionOutput
VolumeChangeAutomatedAlertConditionOutput
VolumeChangeAutomatedAlertConditionOutputObject type.
| Field | Type | Description |
|---|---|---|
sensitivityLevel | SensitivityLevels! | Sensitivity for automated thresholds |
VolumeChangeDetectorThresholdOutput
VolumeChangeDetectorThresholdOutputObject type.
| Field | Type | Description |
|---|---|---|
upper | ThresholdLMHType! | Upper thresholds in percent |
lower | ThresholdLMHType! | Lower thresholds in percent |
VolumeChangeExplicitAlertConditionOutput
VolumeChangeExplicitAlertConditionOutputObject type.
| Field | Type | Description |
|---|---|---|
startTime | DateTime | Start time of the collection |
intervalMinutes | Int | Collection interval in minutes |
intervalCrontab | [String] | Collection interval in crontab format |
intervalCrontabDayOr | Boolean | If 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. |
timezone | String | Timezone for daylight savings and interpreting cron expressions |
upperThreshold | Float! | Upper threshold in percent |
lowerThreshold | Float! | Lower threshold in percent |
thresholdLookbackMinutes | Int! | Threshold lookback in minutes |
VolumeChangeTableMonitorConfigOutput
VolumeChangeTableMonitorConfigOutputObject type.
| Field | Type | Description |
|---|---|---|
uuid | UUID | UUID of the underlying OOTB replacement rule |
status | ConsolidatedMonitorStatusType! | Detection status |
metric | String! | Name of metric for which the detector is active |
mostRecentValue | Float | Most recent value change analyzed by the detector |
collectionStatus | CollectionStatusOutput! | Collection status information |
supportsExplicitAlertCondition | Boolean! | True if using the explicit alert condition is supported |
tags | [TagKeyValuePairOutput] | Tags for the alert condition |
dataQualityDimension | String | Data quality dimension for the alert condition |
effectiveTableMonitor | EffectiveTableMonitorOutput | Active 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. |
alertCondition | VolumeChangeAlertConditionOutput! | Alert condition configuration |
detectorThreshold | VolumeChangeDetectorThresholdOutput! | Detector volume change threshold |
mostRecentTotalSize | Float | Most 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
| Argument | Type | Description |
|---|---|---|
alertConditions | [TableMonitorAlertConditionInput!] | Alert conditions for the table monitor |
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!] | The monitor notification audiences |
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. |
autoTuning | Boolean | Per-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. |
dataQualityDimension | String | Data quality dimension of the monitor. |
description | String! | Description of rule |
domainRestrictions | [UUID!] | The domains to restrict to |
dryRun | Boolean | Dry run the monitor creation or update and return the YAML and queries. Default: false. |
enableRowCountCollection | Boolean | Enable row count collection for tables that require it. Default: false. |
enableRowCountCollectionLimit | Int | Maximum number of tables to enable row count collection for. If not provided, uses the default limit. |
failureAudiences | [String!] | The audiences to notify on failure |
isDraft | Boolean | Make target a draft monitor. Default: false. |
notes | String | Additional context for the monitor Default: "". |
priority | String | The default priority for alerts involving this monitor |
sensitivity | SensitivityLevels | Sensitivity level for the table monitor. Defaults to MEDIUM on create. Omitting on update preserves the existing value. |
tags | [TagKeyValuePairInput!] | The monitor tags. |
uuid | UUID | UUID of the table monitor, to update existing monito |
warehouseUuid | UUID! | 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
createOrUpdateTableMonitorCreateOrUpdateTableMonitor
CreateOrUpdateTableMonitorObject type. Create or update a table monitor. On update, assetSelection joiner keys left out of the input keep the stored monitor's values.
| Field | Type | Description |
|---|---|---|
tableMonitor | TableMonitor | |
yaml | String | YAML representation of the monitor (only returned for dry_run) |
estimatedCredits | EstimatedCredits | Spec-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. |
persistBlockedBy | String | Set 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. |
spendGuardrailMessage | String | Set 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
| Argument | Type | Description |
|---|---|---|
alertConditions | [TableMonitorAlertConditionInput!] | Alert conditions for the table monitor |
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 | AssetSelectionV2Input! | |
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 |
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. |
autoTuning | Boolean | Per-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. |
dataQualityDimension | String | Data quality dimension of the monitor. |
description | String! | Description of rule |
domainRestrictions | [UUID!] | The domains to restrict to |
dryRun | Boolean | Dry run the monitor creation or update and return the YAML and queries. Default: false. |
enableRowCountCollection | Boolean | Enable row count collection for tables that require it. Default: false. |
enableRowCountCollectionLimit | Int | Maximum number of tables to enable row count collection for. If not provided, uses the default limit. |
failureAudiences | [String!] | The audiences to notify on failure |
isDraft | Boolean | Make target a draft monitor. Default: false. |
notes | String | Additional context for the monitor Default: "". |
priority | String | The default priority for alerts involving this monitor |
sensitivity | SensitivityLevels | Sensitivity level for the table monitor. Defaults to MEDIUM on create. Omitting on update preserves the existing value. |
tags | [TagKeyValuePairInput!] | The monitor tags. |
uuid | UUID | UUID of the table monitor, to update existing monito |
warehouseUuid | UUID! | 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
createOrUpdateTableMonitorV2AssetSelectionV2Input
AssetSelectionV2InputInput object type.
| Field | Type | Description |
|---|---|---|
databases | [AssetIncludeDatabaseInput!] | |
filters | [AssetFilterUnionInput!] | |
filtersJoiner | AssetFilterJoiner! | 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!] | |
exclusionsJoiner | AssetFilterJoiner! | 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
CreateOrUpdateTableMonitorV2Object 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.
| Field | Type | Description |
|---|---|---|
tableMonitor | TableMonitor | |
yaml | String | YAML representation of the monitor (only returned for dry_run) |
estimatedCredits | EstimatedCredits | Spec-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. |
persistBlockedBy | String | Set 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. |
spendGuardrailMessage | String | Set 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
| Argument | Type | Description |
|---|---|---|
mcon | String! | MCON of the table for which monitoring was enabled |
tableMonitorUuid | UUID | UUID of the TableMonitor that enabled monitoring for this table. |
usageRuleId | Int | Deprecated: 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
createSingleTableMonitoringNotificationCreateSingleTableMonitoringNotification
CreateSingleTableMonitoringNotificationObject type. Record that monitoring was enabled for a single table.
Must provide the table mcon and the table monitor UUID.
| Field | Type | Description |
|---|---|---|
success | Boolean! | True if the event was recorded |
Related types
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
| Argument | Type | Description |
|---|---|---|
monitorUuid | UUID! | UUID of the table monitor to delete |
Returns
DeleteTableMonitor
Example
mutation DeleteTableMonitor($monitorUuid: UUID!) {
deleteTableMonitor(monitorUuid: $monitorUuid) {
success
}
}Types used only by deleteTableMonitor
deleteTableMonitorDeleteTableMonitor
DeleteTableMonitorObject type. Delete a table monitor
| Field | Type | Description |
|---|---|---|
success | Boolean! |
Related types
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
| Argument | Type | Description |
|---|---|---|
mcon | String! | MC unique identifier for asset |
Returns
DisableFreshnessTableMonitor
Example
mutation DisableFreshnessTableMonitor($mcon: String!) {
disableFreshnessTableMonitor(mcon: $mcon) {
uuid
}
}Types used only by disableFreshnessTableMonitor
disableFreshnessTableMonitorDisableFreshnessTableMonitor
DisableFreshnessTableMonitorObject type.
| Field | Type | Description |
|---|---|---|
uuid | UUID | UUID of the underlying OOTB replacement rule |
Related types
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
| Argument | Type | Description |
|---|---|---|
mcon | String! | MC unique identifier for asset |
Returns
DisableUCSTableMonitor
Example
mutation DisableUcsTableMonitor($mcon: String!) {
disableUcsTableMonitor(mcon: $mcon) {
uuid
}
}Types used only by disableUcsTableMonitor
disableUcsTableMonitorDisableUCSTableMonitor
DisableUCSTableMonitorObject type.
| Field | Type | Description |
|---|---|---|
uuid | UUID | UUID of the underlying OOTB replacement rule |
Related types
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
| Argument | Type | Description |
|---|---|---|
mcon | String! | MC unique identifier for asset |
Returns
DisableVolumeChangeTableMonitor
Example
mutation DisableVolumeChangeTableMonitor($mcon: String!) {
disableVolumeChangeTableMonitor(mcon: $mcon) {
uuid
}
}Types used only by disableVolumeChangeTableMonitor
disableVolumeChangeTableMonitorDisableVolumeChangeTableMonitor
DisableVolumeChangeTableMonitorObject type.
| Field | Type | Description |
|---|---|---|
uuid | UUID | UUID of the underlying OOTB replacement rule |
Related types
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
| Argument | Type | Description |
|---|---|---|
alertCondition | FreshnessAutomatedAlertConditionInput! | Alert condition |
dataQualityDimension | String | Data quality dimension for the alert condition |
mcon | String! | 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
enableAutomatedFreshnessTableMonitorEnableAutomatedFreshnessTableMonitor
EnableAutomatedFreshnessTableMonitorObject type.
| Field | Type | Description |
|---|---|---|
uuid | UUID | UUID of the underlying OOTB replacement rule |
FreshnessAutomatedAlertConditionInput
FreshnessAutomatedAlertConditionInputInput object type.
| Field | Type | Description |
|---|---|---|
sensitivityLevel | SensitivityLevels! | 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
| Argument | Type | Description |
|---|---|---|
alertCondition | UCSAutomatedAlertConditionInput! | Alert condition |
dataQualityDimension | String | Data quality dimension for the alert condition |
mcon | String! | 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
enableAutomatedUcsTableMonitorEnableAutomatedUCSTableMonitor
EnableAutomatedUCSTableMonitorObject type.
| Field | Type | Description |
|---|---|---|
uuid | UUID | UUID of the underlying OOTB replacement rule |
UCSAutomatedAlertConditionInput
UCSAutomatedAlertConditionInputInput object type.
| Field | Type | Description |
|---|---|---|
sensitivityLevel | SensitivityLevels! | 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
| Argument | Type | Description |
|---|---|---|
alertCondition | VolumeChangeAutomatedAlertConditionInput! | Alert condition |
dataQualityDimension | String | Data quality dimension for the alert condition |
mcon | String! | 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
enableAutomatedVolumeChangeTableMonitorEnableAutomatedVolumeChangeTableMonitor
EnableAutomatedVolumeChangeTableMonitorObject type.
| Field | Type | Description |
|---|---|---|
uuid | UUID | UUID of the underlying OOTB replacement rule |
VolumeChangeAutomatedAlertConditionInput
VolumeChangeAutomatedAlertConditionInputInput object type.
| Field | Type | Description |
|---|---|---|
sensitivityLevel | SensitivityLevels! | 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
| Argument | Type | Description |
|---|---|---|
alertCondition | FreshnessExplicitAlertConditionInput! | Alert condition |
dataQualityDimension | String | Data quality dimension for the alert condition |
mcon | String! | 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
enableExplicitFreshnessTableMonitorEnableExplicitFreshnessTableMonitor
EnableExplicitFreshnessTableMonitorObject type.
| Field | Type | Description |
|---|---|---|
uuid | UUID | UUID of the underlying OOTB replacement rule |
FreshnessExplicitAlertConditionInput
FreshnessExplicitAlertConditionInputInput object type.
| Field | Type | Description |
|---|---|---|
startTime | DateTime | Start time of the collection |
intervalMinutes | Int | Collection interval in minutes |
intervalCrontab | [String] | Collection interval in crontab format |
intervalCrontabDayOr | Boolean | If 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. |
timezone | String | Timezone for daylight savings and interpreting cron expressions |
isAutoScheduleConfig | Boolean | Set to true to use auto schedule configuration Default: false. |
threshold | Int! | 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
| Argument | Type | Description |
|---|---|---|
alertCondition | UCSExplicitAlertConditionInput! | Alert condition |
dataQualityDimension | String | Data quality dimension for the alert condition |
mcon | String! | MC unique identifier for asset |
metric | String! | 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
enableExplicitUcsTableMonitorEnableExplicitUCSTableMonitor
EnableExplicitUCSTableMonitorObject type.
| Field | Type | Description |
|---|---|---|
uuid | UUID | UUID of the underlying OOTB replacement rule |
UCSExplicitAlertConditionInput
UCSExplicitAlertConditionInputInput object type.
| Field | Type | Description |
|---|---|---|
startTime | DateTime | Start time of the collection |
intervalMinutes | Int | Collection interval in minutes |
intervalCrontab | [String] | Collection interval in crontab format |
intervalCrontabDayOr | Boolean | If 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. |
timezone | String | Timezone for daylight savings and interpreting cron expressions |
isAutoScheduleConfig | Boolean | Set to true to use auto schedule configuration Default: false. |
threshold | Int! | 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
| Argument | Type | Description |
|---|---|---|
alertCondition | VolumeChangeExplicitAlertConditionInput! | Alert condition |
dataQualityDimension | String | Data quality dimension for the alert condition |
mcon | String! | MC unique identifier for asset |
metric | String! | 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
enableExplicitVolumeChangeTableMonitorEnableExplicitVolumeChangeTableMonitor
EnableExplicitVolumeChangeTableMonitorObject type.
| Field | Type | Description |
|---|---|---|
uuid | UUID | UUID of the underlying OOTB replacement rule |
VolumeChangeExplicitAlertConditionInput
VolumeChangeExplicitAlertConditionInputInput object type.
| Field | Type | Description |
|---|---|---|
startTime | DateTime | Start time of the collection |
intervalMinutes | Int | Collection interval in minutes |
intervalCrontab | [String] | Collection interval in crontab format |
intervalCrontabDayOr | Boolean | If 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. |
timezone | String | Timezone for daylight savings and interpreting cron expressions |
thresholdLookbackMinutes | Int! | Threshold lookback in minutes |
upperThreshold | Float! | Upper threshold in percent |
lowerThreshold | Float! | 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.
