Other monitor operations (GraphQL)

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

ArgumentTypeDescription
sourceWarehouseUuidUUID!Source warehouse UUID
targetWarehouseUuidUUID!Target warehouse UUID
metricNames[String]Names of field metrics to return in the response
fieldTypeFieldTypeField type for which to return field metrics

Returns

[FieldMetricDefinition]

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

ArgumentTypeDescription
monitorUuidUUID!Filter to this monitor.
includeTerms[String!]Filter to segments where all terms are present in segment label
metricStringFilter to this metric

Returns

Int!

Example

query GetComparisonMonitorSegmentLabelCount($monitorUuid: UUID!) {
  getComparisonMonitorSegmentLabelCount(monitorUuid: $monitorUuid)
}

Related types

UUID

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

ArgumentTypeDescription
monitorUuidUUID!Filter to this monitor.
firstIntNumber of results to return. Default: 1,000. Max: 10,000.
afterStringFetch batch of 'first' results after this value.
includeTerms[String!]Filter to segments where all terms are present in segment label
metricStringFilter to this metric

Returns

SegmentLabels

Example

query GetComparisonMonitorSegmentLabels($monitorUuid: UUID!) {
  getComparisonMonitorSegmentLabels(monitorUuid: $monitorUuid) {
    timeSeriesUuids
    labels
    lastLabel
  }
}

Types used only by getComparisonMonitorSegmentLabels

SegmentLabels

Object type.

FieldTypeDescription
timeSeriesUuids[UUID!]!
labels[String!]!
lastLabelStringValue to use as 'after' for pagination

Related types

UUID

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

ArgumentTypeDescription
dwIdUUID!Warehouse the custom SQL ran in
jobExecutionUuidUUID!JobExecution to fetch the output sample for
filePartIndexIntSample file part index, if not specified, we'd use 0, the first file.
fetchAllBooleanIndicating 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

CustomSQLOutputSample

Object type.

FieldTypeDescription
columns[String]
rows[[String]]
matches[ConditionMatches]
hasCustomSqlFilterBooleanTrue if the alert condition contains custom SQL expressions
samplingDisabledBoolean
nextFileIndexIntNext file index to retrieve.
totalSamplesSizeIntTotal number of samples retrieved.
branchSampleCountsJSONStringPer-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).
branchMatchesJSONStringPer-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

ArgumentTypeDescription
warehouseUuidUUID!Warehouse UUID

Returns

DataSamplingRestrictions

Example

query GetDataSamplingRestrictions($warehouseUuid: UUID!) {
  getDataSamplingRestrictions(warehouseUuid: $warehouseUuid) {
    assignments
    excludedAssignments
    addNewDatabasesAutomatically
  }
}

Types used only by getDataSamplingRestrictions

DataSamplingRestrictions

Object type. Restrictions/controls on what data is allowed to be sampled for the related warehouse.

FieldTypeDescription
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.
addNewDatabasesAutomaticallyBooleanWhen True: all databases are auto-included and refreshed during metadata collection. When False: only explicit assignments/tags are used for inclusion.

Related types

TagKeyValuePairOutput, UUID

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

ArgumentTypeDescription
dwIdUUIDFilter by a specific warehouse

Returns

[EventMutingRule]

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

EventMutingRule, UUID

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

ArgumentTypeDescription
mconString!
maxResultsIntDefault: 20.

Returns

TableSourceSample

Example

query GetExternalSourcePathsSample($mcon: String!) {
  getExternalSourcePathsSample(mcon: $mcon) {
    sources
  }
}

Types used only by getExternalSourcePathsSample

TableSourceSample

Object type.

FieldTypeDescription
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

ArgumentTypeDescription
monitorUuidUUID!Monitor uuid is used for creating the sampling query
eventCreatedTimeDateTime!When the anomaly occurred
fieldString!The field on which the anomaly was found
metricString!The metric which measured the anomaly
dimensionStringFH segment if segmented monitor
dryRunBooleanGenerate sample query without running Default: true.
limitIntLimit 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

MetricSampling

Object type.

FieldTypeDescription
columns[String]
rows[[String]]
matches[ConditionMatches]
hasCustomSqlFilterBooleanTrue if the alert condition contains custom SQL expressions
queryString
hasErrorBoolean

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

ArgumentTypeDescription
warehouseUuidUUID!Warehouse UUID
metricNames[String]Names of field metrics to return in the response
fieldTypeFieldTypeField type for which to return field metrics
versionIntVersion of the monitor
monitorTypeStringFilter by monitor type

Returns

[FieldMetricDefinition]

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

ArgumentTypeDescription
metricNameString!Name of the metric
startTimeDateTime!Filter for data newer than this
endTimeDateTimeFilter for data older than this. Defaults to current time.
metricsFilterMetricsFilter!Filters for the metrics to be fetched
firstIntNumber of data points to retrieve. Defaults to 5000.
deduplicateValuesBooleanDeduplicate 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

MetricDimensions

Object type.

FieldTypeDescription
rankFloat
labelString
sequenceNumberInt
dataSourceUuidUUID
Metrics

Object type.

FieldTypeDescription
metrics[TableMetricV2]List of metrics. Deprecated: Use metricsJson for better performance
isPartialDateRangeBoolean
metricsJsonString!List of metrics, in JSON representation
MetricsFilter

Input object type. Filters for the metrics to be fetched

FieldTypeDescription
monitorIdUUIDUUID of the monitor or custom rule
bulkMonitorIdUUIDUUID of the bulk monitor. Returns aggregated metrics for a given table.full_table_id is required when using bulk_monitor_id
mconStringMCON of the asset tracked by the metrics to be fetched
fullTableIdStringFull table ID of the table tracked by the metrics to be fetched
dwIdUUIDWarehouse UUID of the asset tracked by the metrics to be fetched
segmentsFilter[SegmentsFilter]DEPRECATED: use whereCondition or label instead. Call will fail.
whereConditionStringFilter to the segment with this value as the whereCondition.
labelStringFilter to the segment with this value as the label.
fieldStringField name for filtering based on fields for field health monitors
ootbBooleanIndicates whether to get the datapoints for out-of-the-box metric. If this is true, then the monitor_id parameter will be ignored.
dataSourceUuidUUIDUUID of the data source associated with the metric. Used to differentiate source vs. target metric.
SegmentsFilter

Input object type. A segment key and its value

FieldTypeDescription
keyString!The segment name
valueString!Value of the segment
TableMetricV2

Object type.

FieldTypeDescription
fullTableIdString
metricString!
valueFloat!
fieldString
timestampDateTime
measurementTimestampDateTime!
dimensionsMetricDimensions
thresholds[Threshold]Thresholds
jobExecutionUuidUUIDUUID of the job execution that produced the measurement
Threshold

Object type.

FieldTypeDescription
typeThresholdType!Threshold type
upperFloatUpper threshold
lowerFloatLower threshold
reasonStringReason for missing threshold
statusThresholdStatus!Threshold status
upperHighFloatUpper High-Sensitivity threshold
lowerHighFloatLower High-Sensitivity threshold
upperMediumFloatUpper Medium-Sensitivity threshold
lowerMediumFloatLower Medium-Sensitivity threshold
upperLowFloatUpper Low-Sensitivity threshold
lowerLowFloatLower Low-Sensitivity threshold
ThresholdStatus

Enum type.

ValueDescription
INACTIVE
ACTIVE
TRAINING
ThresholdType

Enum type.

ValueDescription
FIELD_HEALTH
FRESHNESS
UNCHANGED_SIZE
SIZE_DIFF
VOLUME_CHANGE
ROWS
CUSTOM
COMPARISON

Related types

DateTime, UUID

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

ArgumentTypeDescription
orderByAgentDependencyBooleanTrue 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.
startTimeDateTime!Start of time window (inclusive) for anomaly filtering
endTimeDateTime!End of time window (exclusive) for anomaly filtering
limitIntMaximum number of results to return Default: 50.
eventLimitIntMaximum number of anomalies to return per table Default: 10.
minImportanceScoreFloatMinimum importance score threshold for filtering tables
domainIds[UUID]Filter by domain UUIDs
tags[TagKeyValuePairInput]
dataProductIds[UUID]
excludeStandardPrefixSuffixSetBooleanExclude tmp and similar prefix/suffix table and schema names
mcons[String]Filter by mcons
filterByCriticalityBooleanFilter 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

TableWithAnomalies

Object type. Warehouse table with associated anomalies

FieldTypeDescription
tableWarehouseTable!The warehouse table
events[Event]!Anomaly events associated with this table
readingAgentCountIntDistinct 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

ArgumentTypeDescription
queryStringEntity to search for
limitIntMax results Default: 50.
dataSourceDataSourceUnionInput!
domainIdUUIDFilter by domain UUID
resourceIdUUID!warehouse UUID
connectionUuidUUIDConnection UUID

Returns

CategorizedSearchResponse

Example

query SearchTablesForDynamicSchedule($dataSource: DataSourceUnionInput!, $resourceId: UUID!) {
  searchTablesForDynamicSchedule(dataSource: $dataSource, resourceId: $resourceId) {
    totalHits
  }
}

Types used only by searchTablesForDynamicSchedule

CategorizedSearchResponse

Object type. List of tables for dynamic schedule

FieldTypeDescription
totalHitsInt!Number of results
results[CategorizedSearchResult]!List of matching results
CategorizedSearchResult

Object type.

FieldTypeDescription
mconString!Monte Carlo full identifier for an entity
lineageNodeIdStringIdentifier for lineage nodes. Warning - To be deprecated soon
objectTypeString!Type of object (e.g. table, view, etc.)
objectIdString!Partial identifier (e.g. project:dataset.table)
displayNameString!Friendly name for entity
parentMconStringIdentifier for any parents (e.g. field belonging to a table)
pathStringPath to node
projectIdStringName of project (database or catalog in some warehouses)
datasetStringName of dataset (schema in some warehouses)
tableIdStringName of the table
properties[SearchResultProperty]Any attached labels
resourceIdStringResource identifier (e.g. warehouse). Warning - To be deprecated soon
warehouseDisplayNameStringName of warehouse
descriptionStringDescription of object
fieldTypeStringData 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)
isImportantBooleanWhether the table or field is important
importanceScoreFloatImportance score for tables
upstreamResourceIds[String]Upstream resource ids
biParentNameStringName of parent resource to BI asset
isMonitoredBooleanWhether the table is monitored
isMutedBooleanWhether the table is muted
etlTypeEtlTypeETL type of the job asset (if object_type=job)
supportsDataExplorerBooleanWhether the table supports data explorer
dbtProjectNameStringName of the dbt project for dbt-job assets
jobNameStringName of the parent job for task assets
objectPathStringPath of the asset within its source system, when available
categorySearchCategoryEnumName of the category for the table like: RESOLVED TABLES, ALL TABLES etc
isDynamicScheduleSupportedBooleanWhether the table is supported for dynamic scheduling
SearchCategoryEnum

Enum type.

ValueDescription
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

ArgumentTypeDescription
addNewDatabasesAutomaticallyBooleanControls 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.
warehouseUuidUUID!The warehouse's UUID

Returns

CreateOrUpdateDataSamplingRestrictions

Example

mutation CreateOrUpdateDataSamplingRestrictions($warehouseUuid: UUID!) {
  createOrUpdateDataSamplingRestrictions(warehouseUuid: $warehouseUuid) {
    success
  }
}

Types used only by createOrUpdateDataSamplingRestrictions

CreateOrUpdateDataSamplingRestrictions

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

FieldTypeDescription
successBoolean!Whether the operation was successful.

Related types

TagKeyValuePairInput, UUID

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

ArgumentTypeDescription
warehouseUuidUUID!The warehouse's UUID

Returns

RemoveDataSamplingRestrictions

Example

mutation RemoveDataSamplingRestrictions($warehouseUuid: UUID!) {
  removeDataSamplingRestrictions(warehouseUuid: $warehouseUuid) {
    success
  }
}

Types used only by removeDataSamplingRestrictions

RemoveDataSamplingRestrictions

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

FieldTypeDescription
successBoolean!Whether the operation was successful.

Related types

UUID

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

ArgumentTypeDescription
customSqlSamplingSizeInt!Sampling size for custom sql monitors. The size can't be over 5000.
warehouseIdUUID!The warehouse's UUID

Returns

SetCustomSqlSamplingSize

Example

mutation SetCustomSqlSamplingSize($customSqlSamplingSize: Int!, $warehouseId: UUID!) {
  setCustomSqlSamplingSize(customSqlSamplingSize: $customSqlSamplingSize, warehouseId: $warehouseId) {
    customSqlSamplingSize
  }
}

Types used only by setCustomSqlSamplingSize

SetCustomSqlSamplingSize

Object type. Set custom sql sampling data size.

FieldTypeDescription
customSqlSamplingSizeInt

Related types

UUID

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

ArgumentTypeDescription
disableBoolean!If true, disable the sampling data feature
dwIdUUID!The warehouse's UUID

Returns

ToggleDisableSampling

Example

mutation ToggleDisableSampling($disable: Boolean!, $dwId: UUID!) {
  toggleDisableSampling(disable: $disable, dwId: $dwId) {
    disabled
  }
}

Types used only by toggleDisableSampling

ToggleDisableSampling

Object type. Enable/disable the sampling data feature

FieldTypeDescription
disabledBoolean

Related types

UUID

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

ArgumentTypeDescription
disableBoolean!If true, disable the feature
dwIdUUID!The warehouse's UUID

Returns

ToggleDisableValueSamplingWhenTesting

Example

mutation ToggleDisableValueSamplingWhenTesting($disable: Boolean!, $dwId: UUID!) {
  toggleDisableValueSamplingWhenTesting(disable: $disable, dwId: $dwId) {
    disabled
  }
}

Types used only by toggleDisableValueSamplingWhenTesting

ToggleDisableValueSamplingWhenTesting

Object type. Enable/disable the sampling data feature when testing value-based sql rules

FieldTypeDescription
disabledBoolean

Related types

UUID

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

ArgumentTypeDescription
dwIdUUID!The warehouse's UUID
enableBoolean!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

ToggleFullDistributionMetrics

Object type. DEPRECATED

FieldTypeDescription
enabledBoolean

Related types

UUID

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

ArgumentTypeDescription
dwIdUUID!The warehouse's UUID
enableBoolean!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

ToggleRestrictSampling

Object type. Enable/disable to restrict certain roles to access sampling data

FieldTypeDescription
enableBoolean

Related types

UUID

Source: The GraphQL API reference

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