Monitors, part 1 of 3 (GraphQL)

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

Queries

evaluateAlertConditions (query)

evaluateAlertConditions 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

Evaluates the provided metric monitor alert conditions

Arguments

ArgumentTypeDescription
connectionIdUUIDConnection UUID
dwIdUUIDWarehouse UUID
dataSourceDataSourceUnionInput!The data source
alertConditions[MetricAlertConditionInput!]!Metric monitor alert conditions
validateCustomSqlBooleanWhether to validate the custom and generated SQL by running it against the data warehouse Default: true.
highSegmentCountBooleanFlag to apply additional limits which increase the supported segment count Default: false.
aggregateByStringThe time aggregation for the monitor, if any. Determines the maximum number of segments.

Returns

ComparisonEvaluationResults

Example

query EvaluateAlertConditions($dataSource: DataSourceUnionInput!, $alertConditions: [MetricAlertConditionInput!]!) {
  evaluateAlertConditions(dataSource: $dataSource, alertConditions: $alertConditions) {
    fieldMetricTimeSeriesCount
    maxSegments
  }
}

Related types

ComparisonEvaluationResults, DataSourceUnionInput, MetricAlertConditionInput, UUID

evaluateComparisonMonitorAlertConditions (query)

evaluateComparisonMonitorAlertConditions 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

Evaluates the provided comparison monitor alert conditions

Arguments

ArgumentTypeDescription
sourceExtendedDataSourceInput!source for comparison monitor
targetExtendedDataSourceInput!target for comparison monitor
alertConditions[ComparisonAlertConditionInput!]!Comparison monitor Alert conditions

Returns

ComparisonEvaluationResults

Example

query EvaluateComparisonMonitorAlertConditions($source: ExtendedDataSourceInput!, $target: ExtendedDataSourceInput!, $alertConditions: [ComparisonAlertConditionInput!]!) {
  evaluateComparisonMonitorAlertConditions(source: $source, target: $target, alertConditions: $alertConditions) {
    fieldMetricTimeSeriesCount
    maxSegments
  }
}

Related types

ComparisonAlertConditionInput, ComparisonEvaluationResults, ExtendedDataSourceInput

evaluateComparisons (query)

evaluateComparisons 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: Use evaluateAlertConditions instead

DEPRECATED. Evaluates the provided metric monitor comparisons

Arguments

ArgumentTypeDescription
connectionIdUUIDConnection UUID
dwIdUUIDWarehouse UUID
dataSourceDataSourceUnionInput!The data source
comparisons[CustomRuleComparisonInput]!Metric monitor comparisons.
validateCustomSqlBooleanWhether to validate the custom and generated SQL by running it against the data warehouse Default: true.
highSegmentCountBooleanFlag to apply additional limits which increase the supported segment count Default: false.
aggregateByStringThe time aggregation for the monitor, if any. Determines the maximum number of segments.

Returns

ComparisonEvaluationResults

Example

query EvaluateComparisons($dataSource: DataSourceUnionInput!, $comparisons: [CustomRuleComparisonInput]!) {
  evaluateComparisons(dataSource: $dataSource, comparisons: $comparisons) {
    fieldMetricTimeSeriesCount
    maxSegments
  }
}

Related types

ComparisonEvaluationResults, CustomRuleComparisonInput, DataSourceUnionInput, UUID

getActiveMonitors (query)

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

Get all active custom monitors (one of Field Health, Distribution Tracking, or JSON Schema). Does not return custom rules.

Arguments

ArgumentTypeDescription
entitiesStringFilter by full table id or mcon
offsetInt
beforeString
afterString
firstInt
lastInt
typeString

Returns

MetricMonitoringConnection

Example

query GetActiveMonitors {
  getActiveMonitors {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

MetricMonitoringConnection

getCustomMetricTestQuery (query)

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

Build a query to test a custom metric

Arguments

ArgumentTypeDescription
customMetricQueryCustomMetricQueryInput!Custom metric query parameters

Returns

CustomMetricQuery

Example

query GetCustomMetricTestQuery($customMetricQuery: CustomMetricQueryInput!) {
  getCustomMetricTestQuery(customMetricQuery: $customMetricQuery) {
    query
  }
}

Types used only by getCustomMetricTestQuery

CustomMetricQuery

Object type.

FieldTypeDescription
queryStringSQL query to evaluate the custom metric

Related types

CustomMetricQueryInput

getManualMonitorExecutionStatus (query)

getManualMonitorExecutionStatus 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 the status of a manual monitor execution

Arguments

ArgumentTypeDescription
manualMonitorExecutionUuidUUID!

Returns

ManualMonitorExecutionStatusType

Example

query GetManualMonitorExecutionStatus($manualMonitorExecutionUuid: UUID!) {
  getManualMonitorExecutionStatus(manualMonitorExecutionUuid: $manualMonitorExecutionUuid) {
    manualMonitorExecutionUuid
    monitorUuid
    status
    consolidatingJobUuid
    breached
    completed
  }
}

Types used only by getManualMonitorExecutionStatus

ManualMonitorExecutionStatus

Enum type. Status of a manual monitor execution.

ValueDescription
QUEUED
IN_PROGRESS
FAILED
SUCCESS
CANCELLED
TIMEOUT
ManualMonitorExecutionStatusType

Object type. Status of a manual monitor execution

FieldTypeDescription
manualMonitorExecutionUuidUUID!
monitorUuidUUID!
statusManualMonitorExecutionStatus!
consolidatingJobUuidUUID
breachedBooleanWhether the run breached. Null while the run is not completed and when the run has no pass/breach result, which is always the case for metric monitors.
completedBoolean!

Related types

UUID

getMonitor (query)

getMonitor 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 information about a custom monitor (one of Field Health, Distribution Tracking, or JSON Schema). Does not return custom rules.

Arguments

ArgumentTypeDescription
uuidUUIDGet monitor by UUID
resourceIdUUIDSpecify the resource uuid (e.g. warehouse the table is contained in) when using a fullTableId
fullTableIdStringDeprecated - use mcon. Ignored if mcon is present
mconStringGet monitor by mcon
monitorTypeStringSpecify the monitor type. Required when using an mcon or full table id

Returns

MetricMonitoring

Example

query GetMonitor {
  getMonitor {
    id
    uuid
    accountUuid
    projects
    datasets
    isDeleted
    deletedAt
    description
    notes
    isTemplateManaged
    namespace
    severity
    priority
    isPaused
    pausedReason
    isDraft
    isAutoCreated
    type
    warehouseUuid
    fields
  }
}

Related types

MetricMonitoring, UUID

getMonitorComments (query)

getMonitorComments 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 comments for a monitor

Arguments

ArgumentTypeDescription
monitorUuidUUID!UUID of the monitor

Returns

[MonitorComment!]!

Example

query GetMonitorComments($monitorUuid: UUID!) {
  getMonitorComments(monitorUuid: $monitorUuid) {
    uuid
    monitorUuid
    text
    createdTime
    updatedTime
  }
}

Related types

MonitorComment, UUID

getMonitorConfiguration (query)

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

The time axis data for the monitor

Arguments

ArgumentTypeDescription
configurationDataMonitorConfigurationInput

Returns

MonitorConfiguration

Example

query GetMonitorConfiguration {
  getMonitorConfiguration {
    timeField
    aggregationType
    lookbackDays
  }
}

Types used only by getMonitorConfiguration

MonitorConfiguration

Object type.

FieldTypeDescription
timeFieldStringTime field to use for the monitor
aggregationTypeMonitorAggTimeIntervalDay or Hour
lookbackDaysIntThe history days for the monitor
MonitorConfigurationInput

Input object type.

FieldTypeDescription
mconString!MC mcon
timeFields[TimestampResult]!field and timestamp for monitor configuration
TimestampResult

Input object type.

FieldTypeDescription
fieldNameString
timestampDateTime

Related types

DateTime, MonitorAggTimeInterval

getMonitorCreators (query)

getMonitorCreators is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

List of users who are monitor creators

Arguments

ArgumentTypeDescription
monitorTypes[UserDefinedMonitors]Type of monitors to filter by, default all
statusTypes[MonitorStatusType]Type of monitor status to filter by, default all
consolidatedStatusTypes[ConsolidatedMonitorStatusType]Type of consolidated monitor status to filter by, default all
descriptionFieldOrTable[String]DEPRECATED
createdBy[String!]Filter by creator using a list of user emails
updatedBy[String!]Filter by updater using a list of user emails
priorities[String]Filter by priorities. It can include null to include monitors without a priority set
sensitivities[String]Filter by given sensitivities. Can include null to include monitors without a set sensitivity
domainIdUUIDDomain uuid to filter by
domainIds[UUID!]List of domain uuids to filter by
uuids[String]list of uuids of the monitors to filter by
createdByFiltersCreatedByFiltersDeprecated
labels[String]List of labels to filter by
search[String]Search criteria for filtering the monitors list
searchFields[UserDefinedMonitorSearchFields]Which fields to include during search
namespaces[String]filter by namespaces
isTemplateManagedBooleanFilter monitors created by code
isOotbReplacementBooleanFilter monitors which replace a default ootb detector Default: false.
includeOotbMonitorsBooleanIf set to true, OOTB monitors will be returned. They will be the first few monitors in the first page of the results Default: false.
includeOotbReplacementBooleanIf set to true and is_ootb_replacement is not specified or false, ootb_replacement monitors will be included in result Default: false.
mcons[String]Filter by warehouses, projects, datasets, or tables (MCON)
excludeMcons[String]Exclude monitors associated with these warehouses, projects, datasets, or tables (MCON)
databaseMcons[String!]Filter by databases, given as project MCONs. Returns monitors that reference at least one asset in any of the specified databases. An empty list applies no filter. At most 250 MCONs. Cannot be combined with includeOotbMonitors.
alertedOnlyBooleanEXPERIMENTAL. Filter monitors to only the ones that are breached.
noisyOnlyBooleanEXPERIMENTAL. When true, return only noisy monitors — those with a high number of distinct incidents over the trailing 7 days. When false or omitted, no noise filter is applied. Also honored by getMonitorsCount.
tags[TagKeyValuePairInput]Filter by monitor tags. It can include null to include monitors without tags
assetTags[TagKeyValuePairInput!]Filter by asset tags. Returns monitors with at least one linked table that has any of the provided tags, and the monitors on the agents of the data products whose tags are provided
excludeAssetTags[TagKeyValuePairInput!]Exclude monitors that have any linked table whose tags consist only of the provided tags. Tables with additional tags or no tags are included. Data product tags also exclude the monitors on agents held only by data products with the provided tags, unless one of the monitor's tables carries the tag of another live data product. Other tags on that table don't keep it
dataProductIds[UUID]Filter by data product IDs
dataQualityDimensions[String]Filter by data quality dimensions
agentFilters[AgentFilterInput!]Filter monitors by agent. Returns monitors associated with the specified agent(s), identified by agent_name and/or trace_table_mcon. With workflow set, a filter returns only the monitors whose agent span filter pins that workflow. AgentFilterInput.workflow lists the values it refuses.
missingRequiredFieldsBooleanFilter monitors by whether they are missing a field this account requires. When true, returns only monitors missing at least one required field; when false, only monitors that have all of them; when null, no filtering. Returns nothing when true and the account requires no fields and no tags.
createdByAgentBooleanFilter monitors by whether their creator is an agent user. When true, returns only monitors created by an agent user. When false, returns only monitors created by non-agent users. When null or omitted, no agent-creator filter is applied.
createdAfterDateTimeOnly include monitors created at or after this time (inclusive). When null or omitted, no lower-bound time filter is applied.
createdBeforeDateTimeOnly include monitors created before this time (exclusive). When null or omitted, no upper-bound time filter is applied.
lastRunWithinHoursIntOnly include monitors whose most recent run was within this many hours (e.g. 24 for a "ran in the last day" filter). Monitors that have never run are excluded. Must be positive. When null or omitted, no last-run filter is applied. Cannot be combined with includeOotbMonitors. Also honored by getMonitorsCount.
orderByStringField and direction to order monitors by
limitIntNumber of monitors to return
offsetIntFrom which monitor to return the next results

Returns

[User]

Example

query GetMonitorCreators {
  getMonitorCreators {
    id
    cognitoUserId
    email
    firstName
    lastName
    displayName
    state
    createdOn
    isSso
    ssoGroups
    ssoGroupsUpdatedAt
    tokenId
    isDeleted
    deletedAt
    deleteReason
    invalidatedAt
    persona
    role
  }
}

Related types

AgentFilterInput, ConsolidatedMonitorStatusType, CreatedByFilters, DateTime, MonitorStatusType, TagKeyValuePairInput, UUID, User, UserDefinedMonitorSearchFields, UserDefinedMonitors

getMonitorDatasets (query)

getMonitorDatasets is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

List of monitor datasets

Arguments

ArgumentTypeDescription
monitorTypes[UserDefinedMonitors]Type of monitors to filter by, default all
statusTypes[MonitorStatusType]Type of monitor status to filter by, default all
consolidatedStatusTypes[ConsolidatedMonitorStatusType]Type of consolidated monitor status to filter by, default all
descriptionFieldOrTable[String]DEPRECATED
createdBy[String!]Filter by creator using a list of user emails
updatedBy[String!]Filter by updater using a list of user emails
priorities[String]Filter by priorities. It can include null to include monitors without a priority set
sensitivities[String]Filter by given sensitivities. Can include null to include monitors without a set sensitivity
domainIdUUIDDomain uuid to filter by
domainIds[UUID!]List of domain uuids to filter by
uuids[String]list of uuids of the monitors to filter by
createdByFiltersCreatedByFiltersDeprecated
labels[String]List of labels to filter by
search[String]Search criteria for filtering the monitors list
searchFields[UserDefinedMonitorSearchFields]Which fields to include during search
namespaces[String]filter by namespaces
isTemplateManagedBooleanFilter monitors created by code
isOotbReplacementBooleanFilter monitors which replace a default ootb detector Default: false.
includeOotbMonitorsBooleanIf set to true, OOTB monitors will be returned. They will be the first few monitors in the first page of the results Default: false.
includeOotbReplacementBooleanIf set to true and is_ootb_replacement is not specified or false, ootb_replacement monitors will be included in result Default: false.
mcons[String]Filter by warehouses, projects, datasets, or tables (MCON)
excludeMcons[String]Exclude monitors associated with these warehouses, projects, datasets, or tables (MCON)
databaseMcons[String!]Filter by databases, given as project MCONs. Returns monitors that reference at least one asset in any of the specified databases. An empty list applies no filter. At most 250 MCONs. Cannot be combined with includeOotbMonitors.
alertedOnlyBooleanEXPERIMENTAL. Filter monitors to only the ones that are breached.
noisyOnlyBooleanEXPERIMENTAL. When true, return only noisy monitors — those with a high number of distinct incidents over the trailing 7 days. When false or omitted, no noise filter is applied. Also honored by getMonitorsCount.
tags[TagKeyValuePairInput]Filter by monitor tags. It can include null to include monitors without tags
assetTags[TagKeyValuePairInput!]Filter by asset tags. Returns monitors with at least one linked table that has any of the provided tags, and the monitors on the agents of the data products whose tags are provided
excludeAssetTags[TagKeyValuePairInput!]Exclude monitors that have any linked table whose tags consist only of the provided tags. Tables with additional tags or no tags are included. Data product tags also exclude the monitors on agents held only by data products with the provided tags, unless one of the monitor's tables carries the tag of another live data product. Other tags on that table don't keep it
dataProductIds[UUID]Filter by data product IDs
dataQualityDimensions[String]Filter by data quality dimensions
agentFilters[AgentFilterInput!]Filter monitors by agent. Returns monitors associated with the specified agent(s), identified by agent_name and/or trace_table_mcon. With workflow set, a filter returns only the monitors whose agent span filter pins that workflow. AgentFilterInput.workflow lists the values it refuses.
missingRequiredFieldsBooleanFilter monitors by whether they are missing a field this account requires. When true, returns only monitors missing at least one required field; when false, only monitors that have all of them; when null, no filtering. Returns nothing when true and the account requires no fields and no tags.
createdByAgentBooleanFilter monitors by whether their creator is an agent user. When true, returns only monitors created by an agent user. When false, returns only monitors created by non-agent users. When null or omitted, no agent-creator filter is applied.
createdAfterDateTimeOnly include monitors created at or after this time (inclusive). When null or omitted, no lower-bound time filter is applied.
createdBeforeDateTimeOnly include monitors created before this time (exclusive). When null or omitted, no upper-bound time filter is applied.
lastRunWithinHoursIntOnly include monitors whose most recent run was within this many hours (e.g. 24 for a "ran in the last day" filter). Monitors that have never run are excluded. Must be positive. When null or omitted, no last-run filter is applied. Cannot be combined with includeOotbMonitors. Also honored by getMonitorsCount.
orderByStringField and direction to order monitors by
limitIntNumber of monitors to return
offsetIntFrom which monitor to return the next results

Returns

[MonitorDataset!]

Example

query GetMonitorDatasets {
  getMonitorDatasets {
    displayName
    mcons
  }
}

Types used only by getMonitorDatasets

MonitorDataset

Object type. Datasets referenced by monitors, grouped by dataset name

FieldTypeDescription
displayNameString!Dataset name
mcons[String!]!List of MCONs for the datasets with this name

Related types

AgentFilterInput, ConsolidatedMonitorStatusType, CreatedByFilters, DateTime, MonitorStatusType, TagKeyValuePairInput, UUID, UserDefinedMonitorSearchFields, UserDefinedMonitors

getMonitorNamespaces (query)

getMonitorNamespaces is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

List of monitor namespaces

Arguments

ArgumentTypeDescription
monitorTypes[UserDefinedMonitors]Type of monitors to filter by, default all
statusTypes[MonitorStatusType]Type of monitor status to filter by, default all
consolidatedStatusTypes[ConsolidatedMonitorStatusType]Type of consolidated monitor status to filter by, default all
descriptionFieldOrTable[String]DEPRECATED
createdBy[String!]Filter by creator using a list of user emails
updatedBy[String!]Filter by updater using a list of user emails
priorities[String]Filter by priorities. It can include null to include monitors without a priority set
sensitivities[String]Filter by given sensitivities. Can include null to include monitors without a set sensitivity
domainIdUUIDDomain uuid to filter by
domainIds[UUID!]List of domain uuids to filter by
uuids[String]list of uuids of the monitors to filter by
createdByFiltersCreatedByFiltersDeprecated
labels[String]List of labels to filter by
search[String]Search criteria for filtering the monitors list
searchFields[UserDefinedMonitorSearchFields]Which fields to include during search
namespaces[String]filter by namespaces
isTemplateManagedBooleanFilter monitors created by code
isOotbReplacementBooleanFilter monitors which replace a default ootb detector Default: false.
includeOotbMonitorsBooleanIf set to true, OOTB monitors will be returned. They will be the first few monitors in the first page of the results Default: false.
includeOotbReplacementBooleanIf set to true and is_ootb_replacement is not specified or false, ootb_replacement monitors will be included in result Default: false.
mcons[String]Filter by warehouses, projects, datasets, or tables (MCON)
excludeMcons[String]Exclude monitors associated with these warehouses, projects, datasets, or tables (MCON)
databaseMcons[String!]Filter by databases, given as project MCONs. Returns monitors that reference at least one asset in any of the specified databases. An empty list applies no filter. At most 250 MCONs. Cannot be combined with includeOotbMonitors.
alertedOnlyBooleanEXPERIMENTAL. Filter monitors to only the ones that are breached.
noisyOnlyBooleanEXPERIMENTAL. When true, return only noisy monitors — those with a high number of distinct incidents over the trailing 7 days. When false or omitted, no noise filter is applied. Also honored by getMonitorsCount.
tags[TagKeyValuePairInput]Filter by monitor tags. It can include null to include monitors without tags
assetTags[TagKeyValuePairInput!]Filter by asset tags. Returns monitors with at least one linked table that has any of the provided tags, and the monitors on the agents of the data products whose tags are provided
excludeAssetTags[TagKeyValuePairInput!]Exclude monitors that have any linked table whose tags consist only of the provided tags. Tables with additional tags or no tags are included. Data product tags also exclude the monitors on agents held only by data products with the provided tags, unless one of the monitor's tables carries the tag of another live data product. Other tags on that table don't keep it
dataProductIds[UUID]Filter by data product IDs
dataQualityDimensions[String]Filter by data quality dimensions
agentFilters[AgentFilterInput!]Filter monitors by agent. Returns monitors associated with the specified agent(s), identified by agent_name and/or trace_table_mcon. With workflow set, a filter returns only the monitors whose agent span filter pins that workflow. AgentFilterInput.workflow lists the values it refuses.
missingRequiredFieldsBooleanFilter monitors by whether they are missing a field this account requires. When true, returns only monitors missing at least one required field; when false, only monitors that have all of them; when null, no filtering. Returns nothing when true and the account requires no fields and no tags.
createdByAgentBooleanFilter monitors by whether their creator is an agent user. When true, returns only monitors created by an agent user. When false, returns only monitors created by non-agent users. When null or omitted, no agent-creator filter is applied.
createdAfterDateTimeOnly include monitors created at or after this time (inclusive). When null or omitted, no lower-bound time filter is applied.
createdBeforeDateTimeOnly include monitors created before this time (exclusive). When null or omitted, no upper-bound time filter is applied.
lastRunWithinHoursIntOnly include monitors whose most recent run was within this many hours (e.g. 24 for a "ran in the last day" filter). Monitors that have never run are excluded. Must be positive. When null or omitted, no last-run filter is applied. Cannot be combined with includeOotbMonitors. Also honored by getMonitorsCount.
orderByStringField and direction to order monitors by
limitIntNumber of monitors to return
offsetIntFrom which monitor to return the next results

Returns

[String!]

Example

query GetMonitorNamespaces {
  getMonitorNamespaces
}

Related types

AgentFilterInput, ConsolidatedMonitorStatusType, CreatedByFilters, DateTime, MonitorStatusType, TagKeyValuePairInput, UUID, UserDefinedMonitorSearchFields, UserDefinedMonitors

getMonitorProjects (query)

getMonitorProjects is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

List of monitor projects

Arguments

ArgumentTypeDescription
monitorTypes[UserDefinedMonitors]Type of monitors to filter by, default all
statusTypes[MonitorStatusType]Type of monitor status to filter by, default all
consolidatedStatusTypes[ConsolidatedMonitorStatusType]Type of consolidated monitor status to filter by, default all
descriptionFieldOrTable[String]DEPRECATED
createdBy[String!]Filter by creator using a list of user emails
updatedBy[String!]Filter by updater using a list of user emails
priorities[String]Filter by priorities. It can include null to include monitors without a priority set
sensitivities[String]Filter by given sensitivities. Can include null to include monitors without a set sensitivity
domainIdUUIDDomain uuid to filter by
domainIds[UUID!]List of domain uuids to filter by
uuids[String]list of uuids of the monitors to filter by
createdByFiltersCreatedByFiltersDeprecated
labels[String]List of labels to filter by
search[String]Search criteria for filtering the monitors list
searchFields[UserDefinedMonitorSearchFields]Which fields to include during search
namespaces[String]filter by namespaces
isTemplateManagedBooleanFilter monitors created by code
isOotbReplacementBooleanFilter monitors which replace a default ootb detector Default: false.
includeOotbMonitorsBooleanIf set to true, OOTB monitors will be returned. They will be the first few monitors in the first page of the results Default: false.
includeOotbReplacementBooleanIf set to true and is_ootb_replacement is not specified or false, ootb_replacement monitors will be included in result Default: false.
mcons[String]Filter by warehouses, projects, datasets, or tables (MCON)
excludeMcons[String]Exclude monitors associated with these warehouses, projects, datasets, or tables (MCON)
databaseMcons[String!]Filter by databases, given as project MCONs. Returns monitors that reference at least one asset in any of the specified databases. An empty list applies no filter. At most 250 MCONs. Cannot be combined with includeOotbMonitors.
alertedOnlyBooleanEXPERIMENTAL. Filter monitors to only the ones that are breached.
noisyOnlyBooleanEXPERIMENTAL. When true, return only noisy monitors — those with a high number of distinct incidents over the trailing 7 days. When false or omitted, no noise filter is applied. Also honored by getMonitorsCount.
tags[TagKeyValuePairInput]Filter by monitor tags. It can include null to include monitors without tags
assetTags[TagKeyValuePairInput!]Filter by asset tags. Returns monitors with at least one linked table that has any of the provided tags, and the monitors on the agents of the data products whose tags are provided
excludeAssetTags[TagKeyValuePairInput!]Exclude monitors that have any linked table whose tags consist only of the provided tags. Tables with additional tags or no tags are included. Data product tags also exclude the monitors on agents held only by data products with the provided tags, unless one of the monitor's tables carries the tag of another live data product. Other tags on that table don't keep it
dataProductIds[UUID]Filter by data product IDs
dataQualityDimensions[String]Filter by data quality dimensions
agentFilters[AgentFilterInput!]Filter monitors by agent. Returns monitors associated with the specified agent(s), identified by agent_name and/or trace_table_mcon. With workflow set, a filter returns only the monitors whose agent span filter pins that workflow. AgentFilterInput.workflow lists the values it refuses.
missingRequiredFieldsBooleanFilter monitors by whether they are missing a field this account requires. When true, returns only monitors missing at least one required field; when false, only monitors that have all of them; when null, no filtering. Returns nothing when true and the account requires no fields and no tags.
createdByAgentBooleanFilter monitors by whether their creator is an agent user. When true, returns only monitors created by an agent user. When false, returns only monitors created by non-agent users. When null or omitted, no agent-creator filter is applied.
createdAfterDateTimeOnly include monitors created at or after this time (inclusive). When null or omitted, no lower-bound time filter is applied.
createdBeforeDateTimeOnly include monitors created before this time (exclusive). When null or omitted, no upper-bound time filter is applied.
lastRunWithinHoursIntOnly include monitors whose most recent run was within this many hours (e.g. 24 for a "ran in the last day" filter). Monitors that have never run are excluded. Must be positive. When null or omitted, no last-run filter is applied. Cannot be combined with includeOotbMonitors. Also honored by getMonitorsCount.
orderByStringField and direction to order monitors by
limitIntNumber of monitors to return
offsetIntFrom which monitor to return the next results

Returns

[MonitorProject!]

Example

query GetMonitorProjects {
  getMonitorProjects {
    displayName
    mcons
  }
}

Types used only by getMonitorProjects

MonitorProject

Object type. Projects referenced by monitors, grouped by project name

FieldTypeDescription
displayNameString!Project name
mcons[String!]!List of MCONs for the projects with this name

Related types

AgentFilterInput, ConsolidatedMonitorStatusType, CreatedByFilters, DateTime, MonitorStatusType, TagKeyValuePairInput, UUID, UserDefinedMonitorSearchFields, UserDefinedMonitors

getMonitorQueries (query)

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

Arguments

ArgumentTypeDescription
monitorUuidUUID!UUID of monitor
bootstrapBooleanReturn the bootstrap query
formatSqlBooleanPretty-print the SQL query Default: true.
stripMetadataCommentBooleanStrip the leading metadata comment Default: false.
allQueriesBooleanReturns all queries that will be issued when the monitor is run. If false, only the first query will be returned. Default: false.
comparisonDataSourceTypeComparisonDataSourceTypeSource type for the monitor queries. This is used for comparison monitors to fetch queries for specific source type either source or target

Returns

MonitorQueries

Example

query GetMonitorQueries($monitorUuid: UUID!) {
  getMonitorQueries(monitorUuid: $monitorUuid) {
    queries
  }
}

Types used only by getMonitorQueries

MonitorQueries

Object type. A monitor query

FieldTypeDescription
queries[String]The SQL queries executed by the monitor

Related types

ComparisonDataSourceType, UUID

getMonitors (query)

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

List of monitors

Arguments

ArgumentTypeDescription
monitorTypes[UserDefinedMonitors]Type of monitors to filter by, default all
statusTypes[MonitorStatusType]Type of monitor status to filter by, default all
consolidatedStatusTypes[ConsolidatedMonitorStatusType]Type of consolidated monitor status to filter by, default all
descriptionFieldOrTable[String]DEPRECATED
createdBy[String!]Filter by creator using a list of user emails
updatedBy[String!]Filter by updater using a list of user emails
priorities[String]Filter by priorities. It can include null to include monitors without a priority set
sensitivities[String]Filter by given sensitivities. Can include null to include monitors without a set sensitivity
domainIdUUIDDomain uuid to filter by
domainIds[UUID!]List of domain uuids to filter by
uuids[String]list of uuids of the monitors to filter by
createdByFiltersCreatedByFiltersDeprecated
labels[String]List of labels to filter by
search[String]Search criteria for filtering the monitors list
searchFields[UserDefinedMonitorSearchFields]Which fields to include during search
namespaces[String]filter by namespaces
isTemplateManagedBooleanFilter monitors created by code
isOotbReplacementBooleanFilter monitors which replace a default ootb detector Default: false.
includeOotbMonitorsBooleanIf set to true, OOTB monitors will be returned. They will be the first few monitors in the first page of the results Default: false.
includeOotbReplacementBooleanIf set to true and is_ootb_replacement is not specified or false, ootb_replacement monitors will be included in result Default: false.
mcons[String]Filter by warehouses, projects, datasets, or tables (MCON)
excludeMcons[String]Exclude monitors associated with these warehouses, projects, datasets, or tables (MCON)
databaseMcons[String!]Filter by databases, given as project MCONs. Returns monitors that reference at least one asset in any of the specified databases. An empty list applies no filter. At most 250 MCONs. Cannot be combined with includeOotbMonitors.
alertedOnlyBooleanEXPERIMENTAL. Filter monitors to only the ones that are breached.
noisyOnlyBooleanEXPERIMENTAL. When true, return only noisy monitors — those with a high number of distinct incidents over the trailing 7 days. When false or omitted, no noise filter is applied. Also honored by getMonitorsCount.
tags[TagKeyValuePairInput]Filter by monitor tags. It can include null to include monitors without tags
assetTags[TagKeyValuePairInput!]Filter by asset tags. Returns monitors with at least one linked table that has any of the provided tags, and the monitors on the agents of the data products whose tags are provided
excludeAssetTags[TagKeyValuePairInput!]Exclude monitors that have any linked table whose tags consist only of the provided tags. Tables with additional tags or no tags are included. Data product tags also exclude the monitors on agents held only by data products with the provided tags, unless one of the monitor's tables carries the tag of another live data product. Other tags on that table don't keep it
dataProductIds[UUID]Filter by data product IDs
dataQualityDimensions[String]Filter by data quality dimensions
agentFilters[AgentFilterInput!]Filter monitors by agent. Returns monitors associated with the specified agent(s), identified by agent_name and/or trace_table_mcon. With workflow set, a filter returns only the monitors whose agent span filter pins that workflow. AgentFilterInput.workflow lists the values it refuses.
missingRequiredFieldsBooleanFilter monitors by whether they are missing a field this account requires. When true, returns only monitors missing at least one required field; when false, only monitors that have all of them; when null, no filtering. Returns nothing when true and the account requires no fields and no tags.
createdByAgentBooleanFilter monitors by whether their creator is an agent user. When true, returns only monitors created by an agent user. When false, returns only monitors created by non-agent users. When null or omitted, no agent-creator filter is applied.
createdAfterDateTimeOnly include monitors created at or after this time (inclusive). When null or omitted, no lower-bound time filter is applied.
createdBeforeDateTimeOnly include monitors created before this time (exclusive). When null or omitted, no upper-bound time filter is applied.
lastRunWithinHoursIntOnly include monitors whose most recent run was within this many hours (e.g. 24 for a "ran in the last day" filter). Monitors that have never run are excluded. Must be positive. When null or omitted, no last-run filter is applied. Cannot be combined with includeOotbMonitors. Also honored by getMonitorsCount.
orderByStringField and direction to order monitors by
limitIntNumber of monitors to return
offsetIntFrom which monitor to return the next results

Returns

[Monitor]

Example

query GetMonitors {
  getMonitors {
    uuid
    monitorType
    udmType
    createdTime
    lastUpdateTime
    creatorId
    updaterId
    resourceId
    entities
    entityMcons
    entityCount
    assignedAssetMcons
    unassignedAssetMcons
    scheduleType
    name
    ruleName
    description
    notes
    labels
    failureAudiences
  }
}

Related types

AgentFilterInput, ConsolidatedMonitorStatusType, CreatedByFilters, DateTime, Monitor, MonitorStatusType, TagKeyValuePairInput, UUID, UserDefinedMonitorSearchFields, UserDefinedMonitors

getMonitorsByType (query)

getMonitorsByType 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 information on custom monitors of a given type (one of Field Health, Distribution Tracking, or JSON Schema). Does not return custom rules.

Arguments

ArgumentTypeDescription
monitorTypeString
monitorTypes[String]
offsetInt
beforeString
afterString
firstInt
lastInt
typeString

Returns

MetricMonitoringConnection

Example

query GetMonitorsByType {
  getMonitorsByType {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

MetricMonitoringConnection

getMonitorSchedulingConfiguration (query)

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

The scheduling configuration for the monitor

Arguments

ArgumentTypeDescription
mconString!mcon for table to fetch scheduling for

Returns

MonitorSchedulingConfiguration

Example

query GetMonitorSchedulingConfiguration($mcon: String!) {
  getMonitorSchedulingConfiguration(mcon: $mcon) {
    scheduleType
    intervalMinutes
    startTime
  }
}

Types used only by getMonitorSchedulingConfiguration

MonitorSchedulingConfiguration

Object type.

FieldTypeDescription
scheduleTypeStringOne of fixed/dynamic or None if cannot decide automatically
intervalMinutesIntNumber of minutes between monitor runs is schedule type is fixed
startTimeDateTimeDate to start the monitor if schedule type is fixed

Related types

DateTime

getMonitorsCount (query)

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

The number of monitors matching the filters

Arguments

ArgumentTypeDescription
monitorTypes[UserDefinedMonitors]Type of monitors to filter by, default all
statusTypes[MonitorStatusType]Type of monitor status to filter by, default all
consolidatedStatusTypes[ConsolidatedMonitorStatusType]Type of consolidated monitor status to filter by, default all
descriptionFieldOrTable[String]DEPRECATED
createdBy[String!]Filter by creator using a list of user emails
updatedBy[String!]Filter by updater using a list of user emails
priorities[String]Filter by priorities. It can include null to include monitors without a priority set
sensitivities[String]Filter by given sensitivities. Can include null to include monitors without a set sensitivity
domainIdUUIDDomain uuid to filter by
domainIds[UUID!]List of domain uuids to filter by
uuids[String]list of uuids of the monitors to filter by
createdByFiltersCreatedByFiltersDeprecated
labels[String]List of labels to filter by
search[String]Search criteria for filtering the monitors list
searchFields[UserDefinedMonitorSearchFields]Which fields to include during search
namespaces[String]filter by namespaces
isTemplateManagedBooleanFilter monitors created by code
isOotbReplacementBooleanFilter monitors which replace a default ootb detector Default: false.
includeOotbMonitorsBooleanIf set to true, OOTB monitors will be returned. They will be the first few monitors in the first page of the results Default: false.
includeOotbReplacementBooleanIf set to true and is_ootb_replacement is not specified or false, ootb_replacement monitors will be included in result Default: false.
mcons[String]Filter by warehouses, projects, datasets, or tables (MCON)
excludeMcons[String]Exclude monitors associated with these warehouses, projects, datasets, or tables (MCON)
databaseMcons[String!]Filter by databases, given as project MCONs. Returns monitors that reference at least one asset in any of the specified databases. An empty list applies no filter. At most 250 MCONs. Cannot be combined with includeOotbMonitors.
alertedOnlyBooleanEXPERIMENTAL. Filter monitors to only the ones that are breached.
noisyOnlyBooleanEXPERIMENTAL. When true, return only noisy monitors — those with a high number of distinct incidents over the trailing 7 days. When false or omitted, no noise filter is applied. Also honored by getMonitorsCount.
tags[TagKeyValuePairInput]Filter by monitor tags. It can include null to include monitors without tags
assetTags[TagKeyValuePairInput!]Filter by asset tags. Returns monitors with at least one linked table that has any of the provided tags, and the monitors on the agents of the data products whose tags are provided
excludeAssetTags[TagKeyValuePairInput!]Exclude monitors that have any linked table whose tags consist only of the provided tags. Tables with additional tags or no tags are included. Data product tags also exclude the monitors on agents held only by data products with the provided tags, unless one of the monitor's tables carries the tag of another live data product. Other tags on that table don't keep it
dataProductIds[UUID]Filter by data product IDs
dataQualityDimensions[String]Filter by data quality dimensions
agentFilters[AgentFilterInput!]Filter monitors by agent. Returns monitors associated with the specified agent(s), identified by agent_name and/or trace_table_mcon. With workflow set, a filter returns only the monitors whose agent span filter pins that workflow. AgentFilterInput.workflow lists the values it refuses.
missingRequiredFieldsBooleanFilter monitors by whether they are missing a field this account requires. When true, returns only monitors missing at least one required field; when false, only monitors that have all of them; when null, no filtering. Returns nothing when true and the account requires no fields and no tags.
createdByAgentBooleanFilter monitors by whether their creator is an agent user. When true, returns only monitors created by an agent user. When false, returns only monitors created by non-agent users. When null or omitted, no agent-creator filter is applied.
createdAfterDateTimeOnly include monitors created at or after this time (inclusive). When null or omitted, no lower-bound time filter is applied.
createdBeforeDateTimeOnly include monitors created before this time (exclusive). When null or omitted, no upper-bound time filter is applied.
lastRunWithinHoursIntOnly include monitors whose most recent run was within this many hours (e.g. 24 for a "ran in the last day" filter). Monitors that have never run are excluded. Must be positive. When null or omitted, no last-run filter is applied. Cannot be combined with includeOotbMonitors. Also honored by getMonitorsCount.
orderByStringField and direction to order monitors by
limitIntNumber of monitors to return
offsetIntFrom which monitor to return the next results

Returns

Int

Example

query GetMonitorsCount {
  getMonitorsCount
}

Related types

AgentFilterInput, ConsolidatedMonitorStatusType, CreatedByFilters, DateTime, MonitorStatusType, TagKeyValuePairInput, UUID, UserDefinedMonitorSearchFields, UserDefinedMonitors

Source: The GraphQL API reference

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