Monitors, part 2 of 3 (GraphQL)

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

Queries

getMonitorSummary (query)

getMonitorSummary 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
resourceIdUUIDFilter by resource UUID
domainIdUUIDFilter by domain UUID

Returns

MonitorSummary

Example

query GetMonitorSummary {
  getMonitorSummary {
    stats
    categories
    hourlyStats
    jsonSchema
    customSql
    tableMetric
  }
}

Types used only by getMonitorSummary

MonitorSummary

Object type.

FieldTypeDescription
resourcesTableResources
statsInt
categoriesInt
hourlyStatsIntHourly stats monitors (DEPRECATED)
jsonSchemaInt
customSqlInt
tableMetricInt
TableResources

Object type.

FieldTypeDescription
tableInt
viewInt
externalInt
wildcardTableInt

Related types

UUID

getMonitorTables (query)

getMonitorTables 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 tables

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

[MonitorTable!]

Example

query GetMonitorTables {
  getMonitorTables {
    displayName
    mcons
  }
}

Types used only by getMonitorTables

MonitorTable

Object type. Tables referenced by monitors, grouped by table identifier

FieldTypeDescription
displayNameString!Table identifier
mcons[String!]!List of MCONs for the tables with this identifier

Related types

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

getMonitorUpdaters (query)

getMonitorUpdaters 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 last modified the 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

[User]

Example

query GetMonitorUpdaters {
  getMonitorUpdaters {
    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

getMonitorWarehouses (query)

getMonitorWarehouses 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 warehouses

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

[MonitorWarehouse!]

Example

query GetMonitorWarehouses {
  getMonitorWarehouses {
    displayName
    mcons
  }
}

Types used only by getMonitorWarehouses

MonitorWarehouse

Object type. Warehouse assets referenced by monitors, grouped by name

FieldTypeDescription
displayNameString!Warehouse name
mcons[String!]!List of MCONs for the warehouses with this name

Related types

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

getNotificationAudiencesForTable (query)

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

Status: General availability

Get notification audiences for table

Arguments

ArgumentTypeDescription
mconString!MCON that specifies a table

Returns

[NotificationAudience]!

Example

query GetNotificationAudiencesForTable($mcon: String!) {
  getNotificationAudiencesForTable(mcon: $mcon) {
    uuid
    accountUuid
    label
    defaultFailureAudience
    routingRulesCount
    customMonitorsCount
    notificationServices
    notificationSettingsCount
    incidentCount
  }
}

Related types

NotificationAudience

getNotificationSettingsForMonitorsWith (query)

getNotificationSettingsForMonitorsWith 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 getNotificationSettingsForAudience instead

DEPRECATED. The notification settings that will be used in a monitor with the specified data

Arguments

ArgumentTypeDescription
monitorTypeString!Monitor type.
labelNames[String]Label names.
mconStringMCON of the table associated with the monitor.

Returns

[AccountNotificationSetting]

Example

query GetNotificationSettingsForMonitorsWith($monitorType: String!) {
  getNotificationSettingsForMonitorsWith(monitorType: $monitorType) {
    id
    deletedAt
    uuid
    createdTime
    lastUpdateTime
    name
    isTemplateManaged
    namespace
    type
    recipients
    extra
    notificationScheduleType
    notificationEnabled
    recipientDisplayName
    recipientsDisplayNames
    permalink
    alertSubTypes
    customMessage
    integrationId
    channelUrl
  }
}

Related types

AccountNotificationSetting

getSegmentCountQuery (query)

getSegmentCountQuery 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 collect segment count

Arguments

ArgumentTypeDescription
segmentCountQuerySegmentCountQueryInput!Segment count query parameters

Returns

SegmentCountQuery

Example

query GetSegmentCountQuery($segmentCountQuery: SegmentCountQueryInput!) {
  getSegmentCountQuery(segmentCountQuery: $segmentCountQuery) {
    query
  }
}

Types used only by getSegmentCountQuery

SegmentCountQuery

Object type.

FieldTypeDescription
queryStringSQL query to collect segment count

Related types

SegmentCountQueryInput

getTimeAxisSqlExpressions (query)

getTimeAxisSqlExpressions 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 SQL expressions used in time axis in monitors for the account

Returns

[SqlExpression]

Example

query GetTimeAxisSqlExpressions {
  getTimeAxisSqlExpressions {
    expression
  }
}

Types used only by getTimeAxisSqlExpressions

SqlExpression

Object type.

FieldTypeDescription
expressionString

runCustomMetricTestQuery (query)

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

Run a query to test a custom metric

Arguments

ArgumentTypeDescription
customMetricQueryCustomMetricQueryInput!Custom metric query parameters

Returns

SQLResponse

Example

query RunCustomMetricTestQuery($customMetricQuery: CustomMetricQueryInput!) {
  runCustomMetricTestQuery(customMetricQuery: $customMetricQuery) {
    columns
    rows
    hasCustomSqlFilter
    query
    hasError
    error
    samplingDisabled
    samplingRestricted
    contentWithheldReason
    rateLimitExceeded
    idempotentStatus
    downloadUrl
    queryExecutionId
  }
}

Related types

CustomMetricQueryInput, SQLResponse

runSegmentCountQuery (query)

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

Run a query to collect segment count

Arguments

ArgumentTypeDescription
segmentCountQuerySegmentCountQueryInput!Segment count query parameters
timeoutIntTimeout in seconds

Returns

SQLResponse

Example

query RunSegmentCountQuery($segmentCountQuery: SegmentCountQueryInput!) {
  runSegmentCountQuery(segmentCountQuery: $segmentCountQuery) {
    columns
    rows
    hasCustomSqlFilter
    query
    hasError
    error
    samplingDisabled
    samplingRestricted
    contentWithheldReason
    rateLimitExceeded
    idempotentStatus
    downloadUrl
    queryExecutionId
  }
}

Related types

SQLResponse, SegmentCountQueryInput

testMonitorQueries (query)

testMonitorQueries 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
allQueriesBooleanRuns all the queries that will be issued when the monitor is run. If false, only the first query will be executed. 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

MonitorQueriesResults

Example

query TestMonitorQueries($monitorUuid: UUID!) {
  testMonitorQueries(monitorUuid: $monitorUuid) {
    queries {
      columns
      rows
      hasCustomSqlFilter
      query
      hasError
      error
      samplingDisabled
      samplingRestricted
      contentWithheldReason
      rateLimitExceeded
      idempotentStatus
      downloadUrl
      queryExecutionId
    }
  }
}

Types used only by testMonitorQueries

MonitorQueriesResults

Object type. Result of executing a monitor query for test purposes

FieldTypeDescription
queries[SQLResponse]The SQL queries results

Related types

ComparisonDataSourceType, SQLResponse, UUID

Mutations

bulkAssignMonitorsDomain (mutation)

bulkAssignMonitorsDomain 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

Bulk assign monitors to a domain

Arguments

ArgumentTypeDescription
domainUuidUUID!UUID of the domain to assign monitors to
monitorUuids[UUID!]!UUIDs of the monitors to assign to the domain

Returns

BulkMonitorDomainAssignment

Example

mutation BulkAssignMonitorsDomain($domainUuid: UUID!, $monitorUuids: [UUID!]!) {
  bulkAssignMonitorsDomain(domainUuid: $domainUuid, monitorUuids: $monitorUuids) {
    success
    updatedMonitorUuids
  }
}

Types used only by bulkAssignMonitorsDomain

BulkMonitorDomainAssignment

Object type. Assign multiple monitors to a single domain, with partial success support.

FieldTypeDescription
successBoolean!
updatedMonitorUuids[UUID]Monitors successfully updated
failedMonitors[BulkMonitorDomainAssignmentError]Monitors that failed with error details
BulkMonitorDomainAssignmentError

Object type. Error detail for a single monitor that failed bulk domain assignment.

FieldTypeDescription
monitorUuidUUID!UUID of the monitor that failed
errorString!Reason for failure

Related types

UUID

createOrUpdateMonitor (mutation)

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

Arguments

ArgumentTypeDescription
aggSelectExpressionString(DEPRECATED) Option will be ignored
aggTimeIntervalMonitorAggTimeIntervalFor field health and dimension monitoring, the aggregation time interval to use. Either HOUR or DAY (defaults to HOUR)
audienceConditions[AudienceConditionInput!]Narrows individual audiences to the triage priorities that reach them. Always a full replace: omitting the argument (or passing null) makes every audience unconditional, the same as passing an empty list; a non-empty list replaces the conditions wholesale. Every audience named here must also appear in this mutation's audience list (audiences, or labels on the mutations that spell it that way), which stays the monitor's full audience set — a condition narrows when one of them is notified, it does not add one.
autoTriageBooleanPer-monitor automated-triage override. true forces triage on for this monitor, false forces it off, and null (or omitting the argument) clears the override so the monitor inherits the domain/account setting. Because omitting the argument clears the override, an update call that does not send this field will reset any previously set override, including a deliberate false, back to inherit. Honored for metric (stats) monitors only; ignored for other types.
autoTuningBooleanPer-monitor auto-apply-tuning override. true forces auto-apply tuning on for this monitor, false forces it off, and null (or omitting the argument) clears the override so the monitor inherits the domain/account setting. Because omitting the argument clears the override, an update call that does not send this field will reset any previously set override, including a deliberate false, back to inherit. Honored for metric (stats) monitors only; ignored for other types.
comparisons[CustomRuleComparisonInput]Metric evaluator configuration.
connectionIdUUIDSpecify a connection (e.g. query-engine) to use
dataQualityDimensionStringData quality dimension on the custom rule.
dataSourceDataSourceUnionInput
descriptionStringUsed as the name in the UI
disableLookBackBootstrapBooleanThe flag decides whether to disable look back bootstrap for new monitors. By default, it's False Default: false.
domainUuids[UUID!]Please provide one and only one valid domain uuid.
failOnResetBooleanReturn an error if the update is a significant change that would require a monitor reset. Default: false.
failedScheduleAccountNotificationIdUUIDAccount notification to be used when the monitor's scheduled executions fail.
failureAudiences[String!]The audiences to notify on failure
fields[String]Fields to monitor. DEPRECATED, use select_expressions instead.
fullTableIdStringDeprecated - use mcon. Ignored if mcon is present
highSegmentCountBooleanFlag to apply additional limits which increase the supported segment count Default: false.
labels[String]The monitor labels
lookbackDaysIntLook-back period in days (to be applied by time axis) Default: 1.
mconStringMcon of table to create monitor for
minSegmentSizeIntMinimum number of rows for a segment to be retrieved. Segments with less rows than this will be discarded.
monitorTypeStringType of monitor to create
notesStringAdditional context for the monitor Default: "".
notifyRuleRunFailureBooleanDEPRECATED: Completely ignored. This field has no effect on anything. Use failure_audiences to determine who is notified when run failures occur.
priorityStringThe default priority for alerts involving this monitor
resourceIdUUIDResource (e.g. warehouse) the table is contained in. Required when using a fullTableId
scheduleConfigScheduleConfigInputSchedule of monitor
segmentationTypeSegmentationTypeThe type of segmentation specified in segmented_expressions. For instance field or custom_sql_expression.
segmentedExpressions[String]Fields or expressions used to segment the monitored field (currently supports one such value)
selectExpressions[MonitorSelectExpressionInput]Monitor select expressions
selectedMetrics[FieldHealthMetrics]Only monitor the selected metrics. If empty, all metrics will be monitored. Only available for Field Health monitors.
severityStringDEPRECATED. Use priority instead. The default severity for incidents involving this monitor
skipResetBooleanDo not reset monitor if the update is a significant change that would normally cause the monitor to be reset. Learned model might not match the new monitor configuration and false positives might be detected for up to 35 days Default: false.
tags[TagKeyValuePairInput]The monitor tags.
timeAxisNameStringTime axis name
timeAxisTypeStringTime axis type
unnestFields[String]Fields to unnest
usePartitionClauseBooleanWhether to use automatic partition filter in query Default: false.
uuidUUIDUUID of the monitor. If specified, it means the request is for update
whereConditionStringSQL WHERE condition to apply to query

Returns

CreateOrUpdateMonitor

Example

mutation CreateOrUpdateMonitor {
  createOrUpdateMonitor {
    monitor {
      id
      uuid
      accountUuid
      projects
      datasets
      isDeleted
      deletedAt
      description
      notes
      isTemplateManaged
      namespace
      severity
      priority
      isPaused
      pausedReason
      isDraft
      isAutoCreated
      type
      warehouseUuid
      fields
    }
  }
}

Types used only by createOrUpdateMonitor

CreateOrUpdateMonitor

Object type.

FieldTypeDescription
monitorMetricMonitoring
MonitorSelectExpressionInput

Input object type.

FieldTypeDescription
expressionString!SQL select expression, could be a raw column name or a more complex expression
dataTypeStringData type of expression. Required if expression is a complex expression and not a raw column name

Related types

AudienceConditionInput, CustomRuleComparisonInput, DataSourceUnionInput, FieldHealthMetrics, MetricMonitoring, MonitorAggTimeInterval, ScheduleConfigInput, SegmentationType, TagKeyValuePairInput, UUID

createOrUpdateMonitorComment (mutation)

createOrUpdateMonitorComment 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

Creates or updates a comment on a monitor

Arguments

ArgumentTypeDescription
commentUuidUUIDUUID of the comment. If set, this call is for updating the comment
monitorUuidUUID!The monitor's UUID
textString!Content of the comment

Returns

CreateOrUpdateMonitorComment

Example

mutation CreateOrUpdateMonitorComment($monitorUuid: UUID!, $text: String!) {
  createOrUpdateMonitorComment(monitorUuid: $monitorUuid, text: $text) {
    comment {
      uuid
      monitorUuid
      text
      createdTime
      updatedTime
    }
  }
}

Types used only by createOrUpdateMonitorComment

CreateOrUpdateMonitorComment

Object type. Creates or updates a comment on a monitor.

FieldTypeDescription
commentMonitorCommentThe created or updated comment

Related types

MonitorComment, UUID

deleteMonitor (mutation)

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

Deletes a monitor

Arguments

ArgumentTypeDescription
monitorIdUUID

Returns

DeleteMonitor

Example

mutation DeleteMonitor {
  deleteMonitor {
    success
  }
}

Types used only by deleteMonitor

DeleteMonitor

Object type.

FieldTypeDescription
successBoolean

Related types

UUID

deleteMonitorComment (mutation)

deleteMonitorComment 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

Deletes a monitor comment

Arguments

ArgumentTypeDescription
commentUuidUUID!UUID of the comment to delete

Returns

DeleteMonitorComment

Example

mutation DeleteMonitorComment($commentUuid: UUID!) {
  deleteMonitorComment(commentUuid: $commentUuid) {
    success
  }
}

Types used only by deleteMonitorComment

DeleteMonitorComment

Object type. Deletes a monitor comment.

FieldTypeDescription
successBoolean!

Related types

UUID

deleteMonitors (mutation)

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

Delete monitors

Arguments

ArgumentTypeDescription
monitorUuids[UUID!]!UUIDs of the metric monitor or custom rule

Returns

DeleteMonitors

Example

mutation DeleteMonitors($monitorUuids: [UUID!]!) {
  deleteMonitors(monitorUuids: $monitorUuids) {
    success
  }
}

Types used only by deleteMonitors

DeleteMonitors

Object type.

FieldTypeDescription
successBoolean

Related types

UUID

pauseMonitor (mutation)

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

Pause a monitor from collecting data.'

Arguments

ArgumentTypeDescription
pauseBoolean!Pause state of the monitor.
reasonStringJustification for the change, recorded as a monitor comment.
uuidUUID!UUID of the monitor whose skip status is being changed.

Returns

PauseMonitor

Example

mutation PauseMonitor($pause: Boolean!, $uuid: UUID!) {
  pauseMonitor(pause: $pause, uuid: $uuid) {
    monitor {
      id
      uuid
      accountUuid
      projects
      datasets
      isDeleted
      deletedAt
      description
      notes
      isTemplateManaged
      namespace
      severity
      priority
      isPaused
      pausedReason
      isDraft
      isAutoCreated
      type
      warehouseUuid
      fields
    }
  }
}

Types used only by pauseMonitor

PauseMonitor

Object type. Pause a monitor from collecting data.'

FieldTypeDescription
monitorMetricMonitoringThe monitor whose pause property has been toggled.

Related types

MetricMonitoring, UUID

pauseMonitorBootstrap (mutation)

pauseMonitorBootstrap 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

Pause the monitor bootstrapping process

Arguments

ArgumentTypeDescription
uuidUUID!UUID of the monitor to pause bootstrapping.

Returns

PauseMonitorBootstrap

Example

mutation PauseMonitorBootstrap($uuid: UUID!) {
  pauseMonitorBootstrap(uuid: $uuid) {
    monitor {
      id
      uuid
      accountUuid
      projects
      datasets
      isDeleted
      deletedAt
      description
      notes
      isTemplateManaged
      namespace
      severity
      priority
      isPaused
      pausedReason
      isDraft
      isAutoCreated
      type
      warehouseUuid
      fields
    }
  }
}

Types used only by pauseMonitorBootstrap

PauseMonitorBootstrap

Object type. Pause the monitor bootstrapping process to stop executing new jobs that collect historical data.

FieldTypeDescription
monitorMetricMonitoringThe monitor whose bootstrapping was paused

Related types

MetricMonitoring, UUID

pauseMonitors (mutation)

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

Pause/unpause monitors

Arguments

ArgumentTypeDescription
monitorUuids[UUID!]!UUIDs of the metric monitor or custom rule
pauseBoolean!Pause state of the monitors
reasonStringJustification for the change, recorded as a comment on each monitor.

Returns

PauseMonitors

Example

mutation PauseMonitors($monitorUuids: [UUID!]!, $pause: Boolean!) {
  pauseMonitors(monitorUuids: $monitorUuids, pause: $pause) {
    success
  }
}

Types used only by pauseMonitors

PauseMonitors

Object type.

FieldTypeDescription
successBoolean

Related types

UUID

restoreMonitors (mutation)

restoreMonitors 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

Restore monitors, optionally re-pointing to a new connection

Arguments

ArgumentTypeDescription
connectionUuidUUIDOptional connection UUID. When provided, the monitors will be re-pointed to this connection prior to restore.
monitorUuids[UUID!]!UUIDs of the custom rules, metric monitors or job monitors to restore
renameOnConflictBooleanControls how a name collision on restore is handled. A monitor recovers its original name when restored; if a metric monitor with that name was recreated while this one was deleted, the restore would collide. When false (the default) the restore fails with a validation error so the collision can be resolved deliberately. When true, the colliding monitor is restored under a '-restored-<timestamp>' name instead, leaving the existing monitor in place. Default: false.

Returns

RestoreMonitors

Example

mutation RestoreMonitors($monitorUuids: [UUID!]!) {
  restoreMonitors(monitorUuids: $monitorUuids) {
    restoredUuids
  }
}

Types used only by restoreMonitors

RestoreMonitors

Object type. Restore one or more soft-deleted monitors (custom rules, metric monitors or job monitors). When connectionUuid is provided, monitors that were soft-deleted as a side-effect of their connection being deleted are re-pointed to the new connection before being un-tombstoned. The new connection must live in the same warehouse as each monitor, share the original connection's type, and support a superset of its job types. All monitors are restored atomically — if any monitor fails to restore, the entire batch is rolled back and the call raises. When connectionUuid is provided, every monitor must have been soft-deleted as a side-effect of a connection deletion; passing a monitor that was not orphaned this way raises and rolls back the batch. connectionUuid does not apply to job monitors. Table monitors and bulk monitors are not supported and will raise.

FieldTypeDescription
restoredUuids[UUID!]!

Related types

UUID

resumeMonitorBootstrap (mutation)

resumeMonitorBootstrap 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

Resume the monitor bootstrapping process

Arguments

ArgumentTypeDescription
ignoreLimitsBooleanUpdate bootstrap configuration to ignore table-size & segment cardinality limits
uuidUUID!UUID of the monitor to resume bootstrapping.

Returns

ResumeMonitorBootstrap

Example

mutation ResumeMonitorBootstrap($uuid: UUID!) {
  resumeMonitorBootstrap(uuid: $uuid) {
    monitor {
      id
      uuid
      accountUuid
      projects
      datasets
      isDeleted
      deletedAt
      description
      notes
      isTemplateManaged
      namespace
      severity
      priority
      isPaused
      pausedReason
      isDraft
      isAutoCreated
      type
      warehouseUuid
      fields
    }
  }
}

Types used only by resumeMonitorBootstrap

ResumeMonitorBootstrap

Object type. Resume the monitor bootstrapping process (for example, to continue loading historical data after an error occurs)

FieldTypeDescription
monitorMetricMonitoringThe monitor whose bootstrapping was resumed

Related types

MetricMonitoring, UUID

runMonitor (mutation)

runMonitor 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

Run a monitor manually

Arguments

ArgumentTypeDescription
monitorUuidUUID!Monitor UUID to run
periodFromDateTimeInclusive start of an agent evaluation backfill window
periodToDateTimeExclusive end of an agent evaluation backfill window, at most seven days after its start
runtimeVariables[RuntimeVariableValueInput!]Runtime variable values for parameterized execution

Returns

RunMonitor

Example

mutation RunMonitor($monitorUuid: UUID!) {
  runMonitor(monitorUuid: $monitorUuid) {
    success
    manualMonitorExecutionUuid
  }
}

Types used only by runMonitor

RunMonitor

Object type. Run a monitor manually

FieldTypeDescription
successBoolean!
manualMonitorExecutionUuidUUIDUUID of the ManualMonitorExecutionModel created for this run

Related types

DateTime, RuntimeVariableValueInput, UUID

runMonitors (mutation)

runMonitors 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

Run the specified monitors now

Arguments

ArgumentTypeDescription
monitorUuids[UUID!]!Monitor UUIDs to run

Returns

RunMonitors

Example

mutation RunMonitors($monitorUuids: [UUID!]!) {
  runMonitors(monitorUuids: $monitorUuids) {
    success
    manualMonitorExecutionUuids
  }
}

Types used only by runMonitors

RunMonitors

Object type.

FieldTypeDescription
successBoolean!
manualMonitorExecutionUuids[UUID]UUIDs of ManualMonitorExecutionModels created for each run

Related types

UUID

setMonitorVisibilityForAsset (mutation)

setMonitorVisibilityForAsset 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 monitor visibility for a specific asset

Arguments

ArgumentTypeDescription
assetMconString!MCON of the asset for which to set monitor visibility
isHiddenBoolean!True to hide the monitor, False to unhide it
monitorUuidUUID!UUID of the monitor to hide or unhide

Returns

SetMonitorVisibilityForAsset

Example

mutation SetMonitorVisibilityForAsset($assetMcon: String!, $isHidden: Boolean!, $monitorUuid: UUID!) {
  setMonitorVisibilityForAsset(assetMcon: $assetMcon, isHidden: $isHidden, monitorUuid: $monitorUuid) {
    success
  }
}

Types used only by setMonitorVisibilityForAsset

SetMonitorVisibilityForAsset

Object type. Sets whether a monitor should be hidden when viewing a specific asset.

FieldTypeDescription
successBoolean!

Related types

UUID

stopMonitor (mutation)

stopMonitor 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: Use DeleteMonitor instead.

Deletes a monitor

Arguments

ArgumentTypeDescription
monitorIdUUID

Returns

StopMonitor

Example

mutation StopMonitor {
  stopMonitor {
    success
  }
}

Types used only by stopMonitor

StopMonitor

Object type. Deprecated: use DeleteMonitor instead

FieldTypeDescription
successBoolean

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.