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
Returns
MonitorSummary
Example
query GetMonitorSummary {
getMonitorSummary {
stats
categories
hourlyStats
jsonSchema
customSql
tableMetric
}
}Types used only by getMonitorSummary
getMonitorSummaryMonitorSummary
MonitorSummaryObject type.
| Field | Type | Description |
|---|---|---|
resources | TableResources | |
stats | Int | |
categories | Int | |
hourlyStats | Int | Hourly stats monitors (DEPRECATED) |
jsonSchema | Int | |
customSql | Int | |
tableMetric | Int |
TableResources
TableResourcesObject type.
| Field | Type | Description |
|---|---|---|
table | Int | |
view | Int | |
external | Int | |
wildcardTable | Int |
Related types
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
| Argument | Type | Description |
|---|---|---|
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 |
domainId | UUID | Domain uuid to filter by |
domainIds | [UUID!] | List of domain uuids to filter by |
uuids | [String] | list of uuids of the monitors to filter by |
createdByFilters | CreatedByFilters | Deprecated |
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 |
isTemplateManaged | Boolean | Filter monitors created by code |
isOotbReplacement | Boolean | Filter monitors which replace a default ootb detector Default: false. |
includeOotbMonitors | Boolean | If set to true, OOTB monitors will be returned. They will be the first few monitors in the first page of the results Default: false. |
includeOotbReplacement | Boolean | If 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. |
alertedOnly | Boolean | EXPERIMENTAL. Filter monitors to only the ones that are breached. |
noisyOnly | Boolean | EXPERIMENTAL. 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. |
missingRequiredFields | Boolean | Filter 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. |
createdByAgent | Boolean | Filter 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. |
createdAfter | DateTime | Only include monitors created at or after this time (inclusive). When null or omitted, no lower-bound time filter is applied. |
createdBefore | DateTime | Only include monitors created before this time (exclusive). When null or omitted, no upper-bound time filter is applied. |
lastRunWithinHours | Int | Only 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. |
orderBy | String | Field and direction to order monitors by |
limit | Int | Number of monitors to return |
offset | Int | From which monitor to return the next results |
Returns
[MonitorTable!]
Example
query GetMonitorTables {
getMonitorTables {
displayName
mcons
}
}Types used only by getMonitorTables
getMonitorTablesMonitorTable
MonitorTableObject type. Tables referenced by monitors, grouped by table identifier
| Field | Type | Description |
|---|---|---|
displayName | String! | 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
| Argument | Type | Description |
|---|---|---|
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 |
domainId | UUID | Domain uuid to filter by |
domainIds | [UUID!] | List of domain uuids to filter by |
uuids | [String] | list of uuids of the monitors to filter by |
createdByFilters | CreatedByFilters | Deprecated |
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 |
isTemplateManaged | Boolean | Filter monitors created by code |
isOotbReplacement | Boolean | Filter monitors which replace a default ootb detector Default: false. |
includeOotbMonitors | Boolean | If set to true, OOTB monitors will be returned. They will be the first few monitors in the first page of the results Default: false. |
includeOotbReplacement | Boolean | If 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. |
alertedOnly | Boolean | EXPERIMENTAL. Filter monitors to only the ones that are breached. |
noisyOnly | Boolean | EXPERIMENTAL. 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. |
missingRequiredFields | Boolean | Filter 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. |
createdByAgent | Boolean | Filter 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. |
createdAfter | DateTime | Only include monitors created at or after this time (inclusive). When null or omitted, no lower-bound time filter is applied. |
createdBefore | DateTime | Only include monitors created before this time (exclusive). When null or omitted, no upper-bound time filter is applied. |
lastRunWithinHours | Int | Only 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. |
orderBy | String | Field and direction to order monitors by |
limit | Int | Number of monitors to return |
offset | Int | From 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
| Argument | Type | Description |
|---|---|---|
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 |
domainId | UUID | Domain uuid to filter by |
domainIds | [UUID!] | List of domain uuids to filter by |
uuids | [String] | list of uuids of the monitors to filter by |
createdByFilters | CreatedByFilters | Deprecated |
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 |
isTemplateManaged | Boolean | Filter monitors created by code |
isOotbReplacement | Boolean | Filter monitors which replace a default ootb detector Default: false. |
includeOotbMonitors | Boolean | If set to true, OOTB monitors will be returned. They will be the first few monitors in the first page of the results Default: false. |
includeOotbReplacement | Boolean | If 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. |
alertedOnly | Boolean | EXPERIMENTAL. Filter monitors to only the ones that are breached. |
noisyOnly | Boolean | EXPERIMENTAL. 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. |
missingRequiredFields | Boolean | Filter 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. |
createdByAgent | Boolean | Filter 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. |
createdAfter | DateTime | Only include monitors created at or after this time (inclusive). When null or omitted, no lower-bound time filter is applied. |
createdBefore | DateTime | Only include monitors created before this time (exclusive). When null or omitted, no upper-bound time filter is applied. |
lastRunWithinHours | Int | Only 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. |
orderBy | String | Field and direction to order monitors by |
limit | Int | Number of monitors to return |
offset | Int | From which monitor to return the next results |
Returns
[MonitorWarehouse!]
Example
query GetMonitorWarehouses {
getMonitorWarehouses {
displayName
mcons
}
}Types used only by getMonitorWarehouses
getMonitorWarehousesMonitorWarehouse
MonitorWarehouseObject type. Warehouse assets referenced by monitors, grouped by name
| Field | Type | Description |
|---|---|---|
displayName | String! | 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
| Argument | Type | Description |
|---|---|---|
mcon | String! | MCON that specifies a table |
Returns
Example
query GetNotificationAudiencesForTable($mcon: String!) {
getNotificationAudiencesForTable(mcon: $mcon) {
uuid
accountUuid
label
defaultFailureAudience
routingRulesCount
customMonitorsCount
notificationServices
notificationSettingsCount
incidentCount
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
monitorType | String! | Monitor type. |
labelNames | [String] | Label names. |
mcon | String | MCON of the table associated with the monitor. |
Returns
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
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
| Argument | Type | Description |
|---|---|---|
segmentCountQuery | SegmentCountQueryInput! | Segment count query parameters |
Returns
SegmentCountQuery
Example
query GetSegmentCountQuery($segmentCountQuery: SegmentCountQueryInput!) {
getSegmentCountQuery(segmentCountQuery: $segmentCountQuery) {
query
}
}Types used only by getSegmentCountQuery
getSegmentCountQuerySegmentCountQuery
SegmentCountQueryObject type.
| Field | Type | Description |
|---|---|---|
query | String | SQL query to collect segment count |
Related types
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
getTimeAxisSqlExpressionsSqlExpression
SqlExpressionObject type.
| Field | Type | Description |
|---|---|---|
expression | String |
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
| Argument | Type | Description |
|---|---|---|
customMetricQuery | CustomMetricQueryInput! | Custom metric query parameters |
Returns
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
| Argument | Type | Description |
|---|---|---|
segmentCountQuery | SegmentCountQueryInput! | Segment count query parameters |
timeout | Int | Timeout in seconds |
Returns
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
| Argument | Type | Description |
|---|---|---|
monitorUuid | UUID! | UUID of monitor |
allQueries | Boolean | Runs all the queries that will be issued when the monitor is run. If false, only the first query will be executed. Default: false. |
comparisonDataSourceType | ComparisonDataSourceType | Source 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
testMonitorQueriesMonitorQueriesResults
MonitorQueriesResultsObject type. Result of executing a monitor query for test purposes
| Field | Type | Description |
|---|---|---|
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
Returns
BulkMonitorDomainAssignment
Example
mutation BulkAssignMonitorsDomain($domainUuid: UUID!, $monitorUuids: [UUID!]!) {
bulkAssignMonitorsDomain(domainUuid: $domainUuid, monitorUuids: $monitorUuids) {
success
updatedMonitorUuids
}
}Types used only by bulkAssignMonitorsDomain
bulkAssignMonitorsDomainBulkMonitorDomainAssignment
BulkMonitorDomainAssignmentObject type. Assign multiple monitors to a single domain, with partial success support.
| Field | Type | Description |
|---|---|---|
success | Boolean! | |
updatedMonitorUuids | [UUID] | Monitors successfully updated |
failedMonitors | [BulkMonitorDomainAssignmentError] | Monitors that failed with error details |
BulkMonitorDomainAssignmentError
BulkMonitorDomainAssignmentErrorObject type. Error detail for a single monitor that failed bulk domain assignment.
| Field | Type | Description |
|---|---|---|
monitorUuid | UUID! | UUID of the monitor that failed |
error | String! | Reason for failure |
Related types
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
| Argument | Type | Description |
|---|---|---|
aggSelectExpression | String | (DEPRECATED) Option will be ignored |
aggTimeInterval | MonitorAggTimeInterval | For 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. |
autoTriage | Boolean | Per-monitor automated-triage override. true forces triage on for this monitor, false forces it off, and null (or omitting the argument) clears the override so the monitor inherits the domain/account setting. Because omitting the argument clears the override, an update call that does not send this field will reset any previously set override, including a deliberate false, back to inherit. Honored for metric (stats) monitors only; ignored for other types. |
autoTuning | Boolean | Per-monitor auto-apply-tuning override. true forces auto-apply tuning on for this monitor, false forces it off, and null (or omitting the argument) clears the override so the monitor inherits the domain/account setting. Because omitting the argument clears the override, an update call that does not send this field will reset any previously set override, including a deliberate false, back to inherit. Honored for metric (stats) monitors only; ignored for other types. |
comparisons | [CustomRuleComparisonInput] | Metric evaluator configuration. |
connectionId | UUID | Specify a connection (e.g. query-engine) to use |
dataQualityDimension | String | Data quality dimension on the custom rule. |
dataSource | DataSourceUnionInput | |
description | String | Used as the name in the UI |
disableLookBackBootstrap | Boolean | The 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. |
failOnReset | Boolean | Return an error if the update is a significant change that would require a monitor reset. Default: false. |
failedScheduleAccountNotificationId | UUID | Account 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. |
fullTableId | String | Deprecated - use mcon. Ignored if mcon is present |
highSegmentCount | Boolean | Flag to apply additional limits which increase the supported segment count Default: false. |
labels | [String] | The monitor labels |
lookbackDays | Int | Look-back period in days (to be applied by time axis) Default: 1. |
mcon | String | Mcon of table to create monitor for |
minSegmentSize | Int | Minimum number of rows for a segment to be retrieved. Segments with less rows than this will be discarded. |
monitorType | String | Type of monitor to create |
notes | String | Additional context for the monitor Default: "". |
notifyRuleRunFailure | Boolean | DEPRECATED: Completely ignored. This field has no effect on anything. Use failure_audiences to determine who is notified when run failures occur. |
priority | String | The default priority for alerts involving this monitor |
resourceId | UUID | Resource (e.g. warehouse) the table is contained in. Required when using a fullTableId |
scheduleConfig | ScheduleConfigInput | Schedule of monitor |
segmentationType | SegmentationType | The 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. |
severity | String | DEPRECATED. Use priority instead. The default severity for incidents involving this monitor |
skipReset | Boolean | Do 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. |
timeAxisName | String | Time axis name |
timeAxisType | String | Time axis type |
unnestFields | [String] | Fields to unnest |
usePartitionClause | Boolean | Whether to use automatic partition filter in query Default: false. |
uuid | UUID | UUID of the monitor. If specified, it means the request is for update |
whereCondition | String | SQL 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
createOrUpdateMonitorCreateOrUpdateMonitor
CreateOrUpdateMonitorObject type.
| Field | Type | Description |
|---|---|---|
monitor | MetricMonitoring |
MonitorSelectExpressionInput
MonitorSelectExpressionInputInput object type.
| Field | Type | Description |
|---|---|---|
expression | String! | SQL select expression, could be a raw column name or a more complex expression |
dataType | String | Data 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
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
createOrUpdateMonitorCommentCreateOrUpdateMonitorComment
CreateOrUpdateMonitorCommentObject type. Creates or updates a comment on a monitor.
| Field | Type | Description |
|---|---|---|
comment | MonitorComment | The created or updated comment |
Related types
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
| Argument | Type | Description |
|---|---|---|
monitorId | UUID |
Returns
DeleteMonitor
Example
mutation DeleteMonitor {
deleteMonitor {
success
}
}Types used only by deleteMonitor
deleteMonitorDeleteMonitor
DeleteMonitorObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
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
| Argument | Type | Description |
|---|---|---|
commentUuid | UUID! | UUID of the comment to delete |
Returns
DeleteMonitorComment
Example
mutation DeleteMonitorComment($commentUuid: UUID!) {
deleteMonitorComment(commentUuid: $commentUuid) {
success
}
}Types used only by deleteMonitorComment
deleteMonitorCommentDeleteMonitorComment
DeleteMonitorCommentObject type. Deletes a monitor comment.
| Field | Type | Description |
|---|---|---|
success | Boolean! |
Related types
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
| Argument | Type | Description |
|---|---|---|
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
deleteMonitorsDeleteMonitors
DeleteMonitorsObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
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
| Argument | Type | Description |
|---|---|---|
pause | Boolean! | Pause state of the monitor. |
reason | String | Justification for the change, recorded as a monitor comment. |
uuid | UUID! | 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
pauseMonitorPauseMonitor
PauseMonitorObject type. Pause a monitor from collecting data.'
| Field | Type | Description |
|---|---|---|
monitor | MetricMonitoring | The monitor whose pause property has been toggled. |
Related types
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
| Argument | Type | Description |
|---|---|---|
uuid | UUID! | 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
pauseMonitorBootstrapPauseMonitorBootstrap
PauseMonitorBootstrapObject type. Pause the monitor bootstrapping process to stop executing new jobs that collect historical data.
| Field | Type | Description |
|---|---|---|
monitor | MetricMonitoring | The monitor whose bootstrapping was paused |
Related types
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
| Argument | Type | Description |
|---|---|---|
monitorUuids | [UUID!]! | UUIDs of the metric monitor or custom rule |
pause | Boolean! | Pause state of the monitors |
reason | String | Justification 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
pauseMonitorsPauseMonitors
PauseMonitorsObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
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
| Argument | Type | Description |
|---|---|---|
connectionUuid | UUID | Optional 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 |
renameOnConflict | Boolean | Controls 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
restoreMonitorsRestoreMonitors
RestoreMonitorsObject 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.
| Field | Type | Description |
|---|---|---|
restoredUuids | [UUID!]! |
Related types
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
| Argument | Type | Description |
|---|---|---|
ignoreLimits | Boolean | Update bootstrap configuration to ignore table-size & segment cardinality limits |
uuid | UUID! | 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
resumeMonitorBootstrapResumeMonitorBootstrap
ResumeMonitorBootstrapObject type. Resume the monitor bootstrapping process (for example, to continue loading historical data after an error occurs)
| Field | Type | Description |
|---|---|---|
monitor | MetricMonitoring | The monitor whose bootstrapping was resumed |
Related types
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
| Argument | Type | Description |
|---|---|---|
monitorUuid | UUID! | Monitor UUID to run |
periodFrom | DateTime | Inclusive start of an agent evaluation backfill window |
periodTo | DateTime | Exclusive 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
runMonitorRunMonitor
RunMonitorObject type. Run a monitor manually
| Field | Type | Description |
|---|---|---|
success | Boolean! | |
manualMonitorExecutionUuid | UUID | UUID 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
| Argument | Type | Description |
|---|---|---|
monitorUuids | [UUID!]! | Monitor UUIDs to run |
Returns
RunMonitors
Example
mutation RunMonitors($monitorUuids: [UUID!]!) {
runMonitors(monitorUuids: $monitorUuids) {
success
manualMonitorExecutionUuids
}
}Types used only by runMonitors
runMonitorsRunMonitors
RunMonitorsObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean! | |
manualMonitorExecutionUuids | [UUID] | UUIDs of ManualMonitorExecutionModels created for each run |
Related types
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
| Argument | Type | Description |
|---|---|---|
assetMcon | String! | MCON of the asset for which to set monitor visibility |
isHidden | Boolean! | True to hide the monitor, False to unhide it |
monitorUuid | UUID! | 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
setMonitorVisibilityForAssetSetMonitorVisibilityForAsset
SetMonitorVisibilityForAssetObject type. Sets whether a monitor should be hidden when viewing a specific asset.
| Field | Type | Description |
|---|---|---|
success | Boolean! |
Related types
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
| Argument | Type | Description |
|---|---|---|
monitorId | UUID |
Returns
StopMonitor
Example
mutation StopMonitor {
stopMonitor {
success
}
}Types used only by stopMonitor
stopMonitorStopMonitor
StopMonitorObject type. Deprecated: use DeleteMonitor instead
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
