Related queries and mutations in Monitors. Each has its own section.
Queries
getComparisonMonitorFieldMetricDefinitions (query)
getComparisonMonitorFieldMetricDefinitions 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
Retrieves definitions of the list of available field metrics common to both source and target warehouses optionally filtering them by name.
Arguments
Returns
Example
query GetComparisonMonitorFieldMetricDefinitions($sourceWarehouseUuid: UUID!, $targetWarehouseUuid: UUID!) {
getComparisonMonitorFieldMetricDefinitions(sourceWarehouseUuid: $sourceWarehouseUuid, targetWarehouseUuid: $targetWarehouseUuid) {
name
displayName
description
category
isPercentage
fieldTypes
deprecated
supportsManualThreshold
supportsAutoThreshold
supportsAutoHighThreshold
supportsAutoLowThreshold
isGrouped
isFieldLevel
supportsAllFields
requiredFieldCount
requiresBaseline
supportsBinningFieldTypes
}
}Related types
FieldMetricDefinition, FieldType, UUID
getComparisonMonitorSegmentLabelCount (query)
getComparisonMonitorSegmentLabelCount 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 segment label count for a comparison monitor
Arguments
| Argument | Type | Description |
|---|---|---|
monitorUuid | UUID! | Filter to this monitor. |
includeTerms | [String!] | Filter to segments where all terms are present in segment label |
metric | String | Filter to this metric |
Returns
Int!
Example
query GetComparisonMonitorSegmentLabelCount($monitorUuid: UUID!) {
getComparisonMonitorSegmentLabelCount(monitorUuid: $monitorUuid)
}Related types
getComparisonMonitorSegmentLabels (query)
getComparisonMonitorSegmentLabels 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 segment labels for a comparison monitor
Arguments
| Argument | Type | Description |
|---|---|---|
monitorUuid | UUID! | Filter to this monitor. |
first | Int | Number of results to return. Default: 1,000. Max: 10,000. |
after | String | Fetch batch of 'first' results after this value. |
includeTerms | [String!] | Filter to segments where all terms are present in segment label |
metric | String | Filter to this metric |
Returns
SegmentLabels
Example
query GetComparisonMonitorSegmentLabels($monitorUuid: UUID!) {
getComparisonMonitorSegmentLabels(monitorUuid: $monitorUuid) {
timeSeriesUuids
labels
lastLabel
}
}Types used only by getComparisonMonitorSegmentLabels
getComparisonMonitorSegmentLabelsSegmentLabels
SegmentLabelsObject type.
| Field | Type | Description |
|---|---|---|
timeSeriesUuids | [UUID!]! | |
labels | [String!]! | |
lastLabel | String | Value to use as 'after' for pagination |
Related types
getCustomSqlOutputSample (query)
getCustomSqlOutputSample 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.
Retrieve output sample for custom SQL job execution
Arguments
| Argument | Type | Description |
|---|---|---|
dwId | UUID! | Warehouse the custom SQL ran in |
jobExecutionUuid | UUID! | JobExecution to fetch the output sample for |
filePartIndex | Int | Sample file part index, if not specified, we'd use 0, the first file. |
fetchAll | Boolean | Indicating whether to fetch all samples in one call. If this is true, thefile_part_index is ignored. |
Returns
CustomSQLOutputSample
Example
query GetCustomSqlOutputSample($dwId: UUID!, $jobExecutionUuid: UUID!) {
getCustomSqlOutputSample(dwId: $dwId, jobExecutionUuid: $jobExecutionUuid) {
columns
rows
hasCustomSqlFilter
samplingDisabled
nextFileIndex
totalSamplesSize
branchSampleCounts
branchMatches
}
}Types used only by getCustomSqlOutputSample
getCustomSqlOutputSampleCustomSQLOutputSample
CustomSQLOutputSampleObject type.
| Field | Type | Description |
|---|---|---|
columns | [String] | |
rows | [[String]] | |
matches | [ConditionMatches] | |
hasCustomSqlFilter | Boolean | True if the alert condition contains custom SQL expressions |
samplingDisabled | Boolean | |
nextFileIndex | Int | Next file index to retrieve. |
totalSamplesSize | Int | Total number of samples retrieved. |
branchSampleCounts | JSONString | Per-branch breach counts over the drawn sample row set. Keys are branch metric names matching conditionBreakdown entry names; values are the number of sample rows where that branch predicate evaluated to true. Null when the sample does not carry per-branch indicator data (non-multi-condition monitors or monitors without sampling enabled). |
branchMatches | JSONString | Per-branch row indices into the drawn sample. Keys are branch metric names (matching conditionBreakdown entry names); values are arrays of 0-based row indices from rows where that branch predicate evaluated to true. Use this to filter the sample drawer to only rows matching a selected condition. Null when the sample does not carry per-branch indicator data. |
Related types
ConditionMatches, JSONString, UUID
getDataSamplingRestrictions (query)
getDataSamplingRestrictions 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 data sampling restrictions for a warehouse. These restrictions apply to all users in the account. Returns null if no restrictions are configured.
Arguments
| Argument | Type | Description |
|---|---|---|
warehouseUuid | UUID! | Warehouse UUID |
Returns
DataSamplingRestrictions
Example
query GetDataSamplingRestrictions($warehouseUuid: UUID!) {
getDataSamplingRestrictions(warehouseUuid: $warehouseUuid) {
assignments
excludedAssignments
addNewDatabasesAutomatically
}
}Types used only by getDataSamplingRestrictions
getDataSamplingRestrictionsDataSamplingRestrictions
DataSamplingRestrictionsObject type. Restrictions/controls on what data is allowed to be sampled for the related warehouse.
| Field | Type | Description |
|---|---|---|
assignments | [String] | Assets (as MCONs) currently included in sampled data. When addNewDatabasesAutomatically is True, this contains all databases in the warehouse (minus excluded ones). |
excludedAssignments | [String] | Assets (as MCONs) excluded from sampled data. |
tags | [TagKeyValuePairOutput] | Asset tag key/value pairs to match for inclusion in sampled data. Only used when addNewDatabasesAutomatically is False. |
excludedTags | [TagKeyValuePairOutput] | Asset tag key/value pairs to match for exclusion from sampled data. Data for assets matching these tags will not be sampled. |
addNewDatabasesAutomatically | Boolean | When True: all databases are auto-included and refreshed during metadata collection. When False: only explicit assignments/tags are used for inclusion. |
Related types
getEventMutingRules (query)
getEventMutingRules 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: Deprecated: Muting rules are no longer supported
Get muting rules in the account
Arguments
| Argument | Type | Description |
|---|---|---|
dwId | UUID | Filter by a specific warehouse |
Returns
Example
query GetEventMutingRules {
getEventMutingRules {
warehouse {
id
createdTime
updatedTime
uuid
name
connectionType
credentialsS3Key
bqProjectId
createdOn
isDeleted
deletedAt
config
userHasAccessToSampleData
dataSamplingEnabled
dataSamplingRestricted
valueIngestionEnabled
valueBasedThresholdEnabled
labeledValueBasedThresholdEnabled
customSqlSamplingSupported
customSqlSamplingEnabled
}
}
}Related types
getExternalSourcePathsSample (query)
getExternalSourcePathsSample 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.
Gets sample of table sources, typically external files
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String! | |
maxResults | Int | Default: 20. |
Returns
TableSourceSample
Example
query GetExternalSourcePathsSample($mcon: String!) {
getExternalSourcePathsSample(mcon: $mcon) {
sources
}
}Types used only by getExternalSourcePathsSample
getExternalSourcePathsSampleTableSourceSample
TableSourceSampleObject type.
| Field | Type | Description |
|---|---|---|
sources | [String] | List of unique sources |
getFhSampling (query)
getFhSampling 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.
Generates and/or runs a FH sampling query
Arguments
| Argument | Type | Description |
|---|---|---|
monitorUuid | UUID! | Monitor uuid is used for creating the sampling query |
eventCreatedTime | DateTime! | When the anomaly occurred |
field | String! | The field on which the anomaly was found |
metric | String! | The metric which measured the anomaly |
dimension | String | FH segment if segmented monitor |
dryRun | Boolean | Generate sample query without running Default: true. |
limit | Int | Limit results |
Returns
MetricSampling
Example
query GetFhSampling($monitorUuid: UUID!, $eventCreatedTime: DateTime!, $field: String!, $metric: String!) {
getFhSampling(monitorUuid: $monitorUuid, eventCreatedTime: $eventCreatedTime, field: $field, metric: $metric) {
columns
rows
hasCustomSqlFilter
query
hasError
}
}Types used only by getFhSampling
getFhSamplingMetricSampling
MetricSamplingObject type.
| Field | Type | Description |
|---|---|---|
columns | [String] | |
rows | [[String]] | |
matches | [ConditionMatches] | |
hasCustomSqlFilter | Boolean | True if the alert condition contains custom SQL expressions |
query | String | |
hasError | Boolean |
Related types
ConditionMatches, DateTime, UUID
getFieldMetricDefinitions (query)
getFieldMetricDefinitions 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.
Retrieves definitions of the list of available field metrics, optionally filtering them by name.
Arguments
Returns
Example
query GetFieldMetricDefinitions($warehouseUuid: UUID!) {
getFieldMetricDefinitions(warehouseUuid: $warehouseUuid) {
name
displayName
description
category
isPercentage
fieldTypes
deprecated
supportsManualThreshold
supportsAutoThreshold
supportsAutoHighThreshold
supportsAutoLowThreshold
isGrouped
isFieldLevel
supportsAllFields
requiredFieldCount
requiresBaseline
supportsBinningFieldTypes
}
}Related types
FieldMetricDefinition, FieldType, UUID
getMetricsV4 (query)
getMetricsV4 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.
Retrieves metric data points by time range and filters
Arguments
| Argument | Type | Description |
|---|---|---|
metricName | String! | Name of the metric |
startTime | DateTime! | Filter for data newer than this |
endTime | DateTime | Filter for data older than this. Defaults to current time. |
metricsFilter | MetricsFilter! | Filters for the metrics to be fetched |
first | Int | Number of data points to retrieve. Defaults to 5000. |
deduplicateValues | Boolean | Deduplicate the data points by value. Defaults to false. |
Returns
Metrics
Example
query GetMetricsV4($metricName: String!, $startTime: DateTime!, $metricsFilter: MetricsFilter!) {
getMetricsV4(metricName: $metricName, startTime: $startTime, metricsFilter: $metricsFilter) {
isPartialDateRange
metricsJson
}
}Types used only by getMetricsV4
getMetricsV4MetricDimensions
MetricDimensionsObject type.
| Field | Type | Description |
|---|---|---|
rank | Float | |
label | String | |
sequenceNumber | Int | |
dataSourceUuid | UUID |
Metrics
MetricsObject type.
| Field | Type | Description |
|---|---|---|
metrics | [TableMetricV2] | List of metrics. Deprecated: Use metricsJson for better performance |
isPartialDateRange | Boolean | |
metricsJson | String! | List of metrics, in JSON representation |
MetricsFilter
MetricsFilterInput object type. Filters for the metrics to be fetched
| Field | Type | Description |
|---|---|---|
monitorId | UUID | UUID of the monitor or custom rule |
bulkMonitorId | UUID | UUID of the bulk monitor. Returns aggregated metrics for a given table.full_table_id is required when using bulk_monitor_id |
mcon | String | MCON of the asset tracked by the metrics to be fetched |
fullTableId | String | Full table ID of the table tracked by the metrics to be fetched |
dwId | UUID | Warehouse UUID of the asset tracked by the metrics to be fetched |
segmentsFilter | [SegmentsFilter] | DEPRECATED: use whereCondition or label instead. Call will fail. |
whereCondition | String | Filter to the segment with this value as the whereCondition. |
label | String | Filter to the segment with this value as the label. |
field | String | Field name for filtering based on fields for field health monitors |
ootb | Boolean | Indicates whether to get the datapoints for out-of-the-box metric. If this is true, then the monitor_id parameter will be ignored. |
dataSourceUuid | UUID | UUID of the data source associated with the metric. Used to differentiate source vs. target metric. |
SegmentsFilter
SegmentsFilterInput object type. A segment key and its value
| Field | Type | Description |
|---|---|---|
key | String! | The segment name |
value | String! | Value of the segment |
TableMetricV2
TableMetricV2Object type.
Threshold
ThresholdObject type.
| Field | Type | Description |
|---|---|---|
type | ThresholdType! | Threshold type |
upper | Float | Upper threshold |
lower | Float | Lower threshold |
reason | String | Reason for missing threshold |
status | ThresholdStatus! | Threshold status |
upperHigh | Float | Upper High-Sensitivity threshold |
lowerHigh | Float | Lower High-Sensitivity threshold |
upperMedium | Float | Upper Medium-Sensitivity threshold |
lowerMedium | Float | Lower Medium-Sensitivity threshold |
upperLow | Float | Upper Low-Sensitivity threshold |
lowerLow | Float | Lower Low-Sensitivity threshold |
ThresholdStatus
ThresholdStatusEnum type.
| Value | Description |
|---|---|
INACTIVE | |
ACTIVE | |
TRAINING |
ThresholdType
ThresholdTypeEnum type.
| Value | Description |
|---|---|
FIELD_HEALTH | |
FRESHNESS | |
UNCHANGED_SIZE | |
SIZE_DIFF | |
VOLUME_CHANGE | |
ROWS | |
CUSTOM | |
COMPARISON |
Related types
getUnmonitoredTablesWithAnomalies (query)
getUnmonitoredTablesWithAnomalies 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
Search for unmonitored tables with muted OOTB table-monitor anomalies in a time window, ordered by importance score. The time window can be at most 31 days long.
Arguments
| Argument | Type | Description |
|---|---|---|
orderByAgentDependency | Boolean | True ranks eligible tables by distinct reading agents before limiting. It enforces minImportanceScore of at least 0.85, enables standard prefix/suffix exclusions, and disables filterByCriticality. Requires Assets and Lineage access; dependency failures raise an error. False or null keeps the default order. Default: false. |
startTime | DateTime! | Start of time window (inclusive) for anomaly filtering |
endTime | DateTime! | End of time window (exclusive) for anomaly filtering |
limit | Int | Maximum number of results to return Default: 50. |
eventLimit | Int | Maximum number of anomalies to return per table Default: 10. |
minImportanceScore | Float | Minimum importance score threshold for filtering tables |
domainIds | [UUID] | Filter by domain UUIDs |
tags | [TagKeyValuePairInput] | |
dataProductIds | [UUID] | |
excludeStandardPrefixSuffixSet | Boolean | Exclude tmp and similar prefix/suffix table and schema names |
mcons | [String] | Filter by mcons |
filterByCriticality | Boolean | Filter tables by criticality score. Defaults to True when the criticality_score feature flag is enabled for the account. Pass False to opt out (e.g. when viewing a specific asset regardless of criticality). |
Returns
[TableWithAnomalies]
Example
query GetUnmonitoredTablesWithAnomalies($startTime: DateTime!, $endTime: DateTime!) {
getUnmonitoredTablesWithAnomalies(startTime: $startTime, endTime: $endTime) {
readingAgentCount
}
}Types used only by getUnmonitoredTablesWithAnomalies
getUnmonitoredTablesWithAnomaliesTableWithAnomalies
TableWithAnomaliesObject type. Warehouse table with associated anomalies
| Field | Type | Description |
|---|---|---|
table | WarehouseTable! | The warehouse table |
events | [Event]! | Anomaly events associated with this table |
readingAgentCount | Int | Distinct visible agents with a known direct dependency on this table. Null when unavailable or not requested. |
Related types
DateTime, Event, TagKeyValuePairInput, UUID, WarehouseTable
searchTablesForDynamicSchedule (query)
searchTablesForDynamicSchedule 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
This is to fetch tables for dynamic schedule
Arguments
| Argument | Type | Description |
|---|---|---|
query | String | Entity to search for |
limit | Int | Max results Default: 50. |
dataSource | DataSourceUnionInput! | |
domainId | UUID | Filter by domain UUID |
resourceId | UUID! | warehouse UUID |
connectionUuid | UUID | Connection UUID |
Returns
CategorizedSearchResponse
Example
query SearchTablesForDynamicSchedule($dataSource: DataSourceUnionInput!, $resourceId: UUID!) {
searchTablesForDynamicSchedule(dataSource: $dataSource, resourceId: $resourceId) {
totalHits
}
}Types used only by searchTablesForDynamicSchedule
searchTablesForDynamicScheduleCategorizedSearchResponse
CategorizedSearchResponseObject type. List of tables for dynamic schedule
| Field | Type | Description |
|---|---|---|
totalHits | Int! | Number of results |
results | [CategorizedSearchResult]! | List of matching results |
CategorizedSearchResult
CategorizedSearchResultObject type.
| Field | Type | Description |
|---|---|---|
mcon | String! | Monte Carlo full identifier for an entity |
lineageNodeId | String | Identifier for lineage nodes. Warning - To be deprecated soon |
objectType | String! | Type of object (e.g. table, view, etc.) |
objectId | String! | Partial identifier (e.g. project:dataset.table) |
displayName | String! | Friendly name for entity |
parentMcon | String | Identifier for any parents (e.g. field belonging to a table) |
path | String | Path to node |
projectId | String | Name of project (database or catalog in some warehouses) |
dataset | String | Name of dataset (schema in some warehouses) |
tableId | String | Name of the table |
properties | [SearchResultProperty] | Any attached labels |
resourceId | String | Resource identifier (e.g. warehouse). Warning - To be deprecated soon |
warehouseDisplayName | String | Name of warehouse |
description | String | Description of object |
fieldType | String | Data type of field. Only populated if object_type=field |
highlight | [HighlightSnippets] | Highlight snippets |
highlightProperties | [NestedHighlightSnippets] | Highlight snippets for object properties |
fieldNames | [String] | Field names (if object_type=table) |
isImportant | Boolean | Whether the table or field is important |
importanceScore | Float | Importance score for tables |
upstreamResourceIds | [String] | Upstream resource ids |
biParentName | String | Name of parent resource to BI asset |
isMonitored | Boolean | Whether the table is monitored |
isMuted | Boolean | Whether the table is muted |
etlType | EtlType | ETL type of the job asset (if object_type=job) |
supportsDataExplorer | Boolean | Whether the table supports data explorer |
dbtProjectName | String | Name of the dbt project for dbt-job assets |
jobName | String | Name of the parent job for task assets |
objectPath | String | Path of the asset within its source system, when available |
category | SearchCategoryEnum | Name of the category for the table like: RESOLVED TABLES, ALL TABLES etc |
isDynamicScheduleSupported | Boolean | Whether the table is supported for dynamic scheduling |
SearchCategoryEnum
SearchCategoryEnumEnum type.
| Value | Description |
|---|---|
RESOLVED_TABLES | |
ALL_OTHER_TABLES |
Related types
DataSourceUnionInput, EtlType, HighlightSnippets, NestedHighlightSnippets, SearchResultProperty, UUID
Mutations
createOrUpdateDataSamplingRestrictions (mutation)
createOrUpdateDataSamplingRestrictions 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 data sampling restrictions for a warehouse.
Arguments
| Argument | Type | Description |
|---|---|---|
addNewDatabasesAutomatically | Boolean | Controls inclusion behavior. Defaults to True. When True: all databases in the warehouse are auto-included; assignments and tags are ignored. Use excluded_assignments and excluded_tags to exclude specific databases. New databases discovered during metadata collection are automatically added. When False: only explicitly provided assignments and/or tags are included. |
assignments | [String] | A list of assets (as MCONs) to include. Only used when addNewDatabasesAutomatically is False. When True (default), all databases are auto-included and this parameter is ignored. |
excludedAssignments | [String] | A list of assets (as MCONs). Use to prevent sampling data from the given assets in the related warehouse. |
excludedTags | [TagKeyValuePairInput] | Asset tag key/value pairs to match for exclusion from sampled data.in the related warehouse. Only used when addNewDatabasesAutomatically is False. |
tags | [TagKeyValuePairInput] | Asset tag key/value pairs to match for inclusion in sampled data. Only used when addNewDatabasesAutomatically is False. When True (default), all databases are auto-included and this parameter is ignored. |
warehouseUuid | UUID! | The warehouse's UUID |
Returns
CreateOrUpdateDataSamplingRestrictions
Example
mutation CreateOrUpdateDataSamplingRestrictions($warehouseUuid: UUID!) {
createOrUpdateDataSamplingRestrictions(warehouseUuid: $warehouseUuid) {
success
}
}Types used only by createOrUpdateDataSamplingRestrictions
createOrUpdateDataSamplingRestrictionsCreateOrUpdateDataSamplingRestrictions
CreateOrUpdateDataSamplingRestrictionsObject type. Create or update data sampling restrictions for a warehouse. This restricts what data is allowed to be sampled from the related warehouse for all users. By default addNewDatabasesAutomatically is True, so all databases are included and you use exclusions to narrow down. Set addNewDatabasesAutomatically to False to use explicit assignments/tags instead. Use removeDataSamplingRestrictions mutation to remove all sampling restrictions.
| Field | Type | Description |
|---|---|---|
success | Boolean! | Whether the operation was successful. |
Related types
removeDataSamplingRestrictions (mutation)
removeDataSamplingRestrictions 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
Remove all data sampling restrictions from a warehouse.
Arguments
| Argument | Type | Description |
|---|---|---|
warehouseUuid | UUID! | The warehouse's UUID |
Returns
RemoveDataSamplingRestrictions
Example
mutation RemoveDataSamplingRestrictions($warehouseUuid: UUID!) {
removeDataSamplingRestrictions(warehouseUuid: $warehouseUuid) {
success
}
}Types used only by removeDataSamplingRestrictions
removeDataSamplingRestrictionsRemoveDataSamplingRestrictions
RemoveDataSamplingRestrictionsObject type. Remove all data sampling restrictions from a warehouse. After removal, all data in the warehouse can be sampled without restrictions. The data sampling enable/disable warehouse setting is still respected.
| Field | Type | Description |
|---|---|---|
success | Boolean! | Whether the operation was successful. |
Related types
setCustomSqlSamplingSize (mutation)
setCustomSqlSamplingSize 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
Set the custom sql data sampling size in the warehouse.
Arguments
| Argument | Type | Description |
|---|---|---|
customSqlSamplingSize | Int! | Sampling size for custom sql monitors. The size can't be over 5000. |
warehouseId | UUID! | The warehouse's UUID |
Returns
SetCustomSqlSamplingSize
Example
mutation SetCustomSqlSamplingSize($customSqlSamplingSize: Int!, $warehouseId: UUID!) {
setCustomSqlSamplingSize(customSqlSamplingSize: $customSqlSamplingSize, warehouseId: $warehouseId) {
customSqlSamplingSize
}
}Types used only by setCustomSqlSamplingSize
setCustomSqlSamplingSizeSetCustomSqlSamplingSize
SetCustomSqlSamplingSizeObject type. Set custom sql sampling data size.
| Field | Type | Description |
|---|---|---|
customSqlSamplingSize | Int |
Related types
toggleDisableSampling (mutation)
toggleDisableSampling 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.
Enable/disable the sampling data feature
Arguments
| Argument | Type | Description |
|---|---|---|
disable | Boolean! | If true, disable the sampling data feature |
dwId | UUID! | The warehouse's UUID |
Returns
ToggleDisableSampling
Example
mutation ToggleDisableSampling($disable: Boolean!, $dwId: UUID!) {
toggleDisableSampling(disable: $disable, dwId: $dwId) {
disabled
}
}Types used only by toggleDisableSampling
toggleDisableSamplingToggleDisableSampling
ToggleDisableSamplingObject type. Enable/disable the sampling data feature
| Field | Type | Description |
|---|---|---|
disabled | Boolean |
Related types
toggleDisableValueSamplingWhenTesting (mutation)
toggleDisableValueSamplingWhenTesting 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.
Enable/disable the sampling data feature when testing value-based sql rules
Arguments
| Argument | Type | Description |
|---|---|---|
disable | Boolean! | If true, disable the feature |
dwId | UUID! | The warehouse's UUID |
Returns
ToggleDisableValueSamplingWhenTesting
Example
mutation ToggleDisableValueSamplingWhenTesting($disable: Boolean!, $dwId: UUID!) {
toggleDisableValueSamplingWhenTesting(disable: $disable, dwId: $dwId) {
disabled
}
}Types used only by toggleDisableValueSamplingWhenTesting
toggleDisableValueSamplingWhenTestingToggleDisableValueSamplingWhenTesting
ToggleDisableValueSamplingWhenTestingObject type. Enable/disable the sampling data feature when testing value-based sql rules
| Field | Type | Description |
|---|---|---|
disabled | Boolean |
Related types
toggleEnableFullDistributionMetrics (mutation)
toggleEnableFullDistributionMetrics 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: Deprecated: You can now select metrics in the monitor configuration
DEPRECATED. End of life: August 12, 2024. DEPRECATED
Arguments
| Argument | Type | Description |
|---|---|---|
dwId | UUID! | The warehouse's UUID |
enable | Boolean! | If true, enable full distribution metrics |
Returns
ToggleFullDistributionMetrics
Example
mutation ToggleEnableFullDistributionMetrics($dwId: UUID!, $enable: Boolean!) {
toggleEnableFullDistributionMetrics(dwId: $dwId, enable: $enable) {
enabled
}
}Types used only by toggleEnableFullDistributionMetrics
toggleEnableFullDistributionMetricsToggleFullDistributionMetrics
ToggleFullDistributionMetricsObject type. DEPRECATED
| Field | Type | Description |
|---|---|---|
enabled | Boolean |
Related types
toggleRestrictSampling (mutation)
toggleRestrictSampling 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.
Enable/disable to restrict certain roles to access sampling data
Arguments
| Argument | Type | Description |
|---|---|---|
dwId | UUID! | The warehouse's UUID |
enable | Boolean! | If true, restrict certain roles to access sampling data |
Returns
ToggleRestrictSampling
Example
mutation ToggleRestrictSampling($dwId: UUID!, $enable: Boolean!) {
toggleRestrictSampling(dwId: $dwId, enable: $enable) {
enable
}
}Types used only by toggleRestrictSampling
toggleRestrictSamplingToggleRestrictSampling
ToggleRestrictSamplingObject type. Enable/disable to restrict certain roles to access sampling data
| Field | Type | Description |
|---|---|---|
enable | Boolean |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
