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
| Argument | Type | Description |
|---|---|---|
connectionId | UUID | Connection UUID |
dwId | UUID | Warehouse UUID |
dataSource | DataSourceUnionInput! | The data source |
alertConditions | [MetricAlertConditionInput!]! | Metric monitor alert conditions |
validateCustomSql | Boolean | Whether to validate the custom and generated SQL by running it against the data warehouse Default: true. |
highSegmentCount | Boolean | Flag to apply additional limits which increase the supported segment count Default: false. |
aggregateBy | String | The time aggregation for the monitor, if any. Determines the maximum number of segments. |
Returns
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
| Argument | Type | Description |
|---|---|---|
source | ExtendedDataSourceInput! | source for comparison monitor |
target | ExtendedDataSourceInput! | target for comparison monitor |
alertConditions | [ComparisonAlertConditionInput!]! | Comparison monitor Alert conditions |
Returns
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
| Argument | Type | Description |
|---|---|---|
connectionId | UUID | Connection UUID |
dwId | UUID | Warehouse UUID |
dataSource | DataSourceUnionInput! | The data source |
comparisons | [CustomRuleComparisonInput]! | Metric monitor comparisons. |
validateCustomSql | Boolean | Whether to validate the custom and generated SQL by running it against the data warehouse Default: true. |
highSegmentCount | Boolean | Flag to apply additional limits which increase the supported segment count Default: false. |
aggregateBy | String | The time aggregation for the monitor, if any. Determines the maximum number of segments. |
Returns
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
| Argument | Type | Description |
|---|---|---|
entities | String | Filter by full table id or mcon |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int | |
type | String |
Returns
Example
query GetActiveMonitors {
getActiveMonitors {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
customMetricQuery | CustomMetricQueryInput! | Custom metric query parameters |
Returns
CustomMetricQuery
Example
query GetCustomMetricTestQuery($customMetricQuery: CustomMetricQueryInput!) {
getCustomMetricTestQuery(customMetricQuery: $customMetricQuery) {
query
}
}Types used only by getCustomMetricTestQuery
getCustomMetricTestQueryCustomMetricQuery
CustomMetricQueryObject type.
| Field | Type | Description |
|---|---|---|
query | String | SQL query to evaluate the custom metric |
Related types
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
| Argument | Type | Description |
|---|---|---|
manualMonitorExecutionUuid | UUID! |
Returns
ManualMonitorExecutionStatusType
Example
query GetManualMonitorExecutionStatus($manualMonitorExecutionUuid: UUID!) {
getManualMonitorExecutionStatus(manualMonitorExecutionUuid: $manualMonitorExecutionUuid) {
manualMonitorExecutionUuid
monitorUuid
status
consolidatingJobUuid
breached
completed
}
}Types used only by getManualMonitorExecutionStatus
getManualMonitorExecutionStatusManualMonitorExecutionStatus
ManualMonitorExecutionStatusEnum type. Status of a manual monitor execution.
| Value | Description |
|---|---|
QUEUED | |
IN_PROGRESS | |
FAILED | |
SUCCESS | |
CANCELLED | |
TIMEOUT |
ManualMonitorExecutionStatusType
ManualMonitorExecutionStatusTypeObject type. Status of a manual monitor execution
| Field | Type | Description |
|---|---|---|
manualMonitorExecutionUuid | UUID! | |
monitorUuid | UUID! | |
status | ManualMonitorExecutionStatus! | |
consolidatingJobUuid | UUID | |
breached | Boolean | Whether 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. |
completed | Boolean! |
Related types
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
| Argument | Type | Description |
|---|---|---|
uuid | UUID | Get monitor by UUID |
resourceId | UUID | Specify the resource uuid (e.g. warehouse the table is contained in) when using a fullTableId |
fullTableId | String | Deprecated - use mcon. Ignored if mcon is present |
mcon | String | Get monitor by mcon |
monitorType | String | Specify the monitor type. Required when using an mcon or full table id |
Returns
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
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
| Argument | Type | Description |
|---|---|---|
monitorUuid | UUID! | UUID of the monitor |
Returns
[MonitorComment!]!
Example
query GetMonitorComments($monitorUuid: UUID!) {
getMonitorComments(monitorUuid: $monitorUuid) {
uuid
monitorUuid
text
createdTime
updatedTime
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
configurationData | MonitorConfigurationInput |
Returns
MonitorConfiguration
Example
query GetMonitorConfiguration {
getMonitorConfiguration {
timeField
aggregationType
lookbackDays
}
}Types used only by getMonitorConfiguration
getMonitorConfigurationMonitorConfiguration
MonitorConfigurationObject type.
| Field | Type | Description |
|---|---|---|
timeField | String | Time field to use for the monitor |
aggregationType | MonitorAggTimeInterval | Day or Hour |
lookbackDays | Int | The history days for the monitor |
MonitorConfigurationInput
MonitorConfigurationInputInput object type.
| Field | Type | Description |
|---|---|---|
mcon | String! | MC mcon |
timeFields | [TimestampResult]! | field and timestamp for monitor configuration |
TimestampResult
TimestampResultInput object type.
| Field | Type | Description |
|---|---|---|
fieldName | String | |
timestamp | DateTime |
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
| 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 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
| 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
[MonitorDataset!]
Example
query GetMonitorDatasets {
getMonitorDatasets {
displayName
mcons
}
}Types used only by getMonitorDatasets
getMonitorDatasetsMonitorDataset
MonitorDatasetObject type. Datasets referenced by monitors, grouped by dataset name
| Field | Type | Description |
|---|---|---|
displayName | String! | 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
| 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
[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
| 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
[MonitorProject!]
Example
query GetMonitorProjects {
getMonitorProjects {
displayName
mcons
}
}Types used only by getMonitorProjects
getMonitorProjectsMonitorProject
MonitorProjectObject type. Projects referenced by monitors, grouped by project name
| Field | Type | Description |
|---|---|---|
displayName | String! | 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
| Argument | Type | Description |
|---|---|---|
monitorUuid | UUID! | UUID of monitor |
bootstrap | Boolean | Return the bootstrap query |
formatSql | Boolean | Pretty-print the SQL query Default: true. |
stripMetadataComment | Boolean | Strip the leading metadata comment Default: false. |
allQueries | Boolean | Returns all queries that will be issued when the monitor is run. If false, only the first query will be returned. 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
MonitorQueries
Example
query GetMonitorQueries($monitorUuid: UUID!) {
getMonitorQueries(monitorUuid: $monitorUuid) {
queries
}
}Types used only by getMonitorQueries
getMonitorQueriesMonitorQueries
MonitorQueriesObject type. A monitor query
| Field | Type | Description |
|---|---|---|
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
| 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
[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
| Argument | Type | Description |
|---|---|---|
monitorType | String | |
monitorTypes | [String] | |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int | |
type | String |
Returns
Example
query GetMonitorsByType {
getMonitorsByType {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
mcon | String! | 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
getMonitorSchedulingConfigurationMonitorSchedulingConfiguration
MonitorSchedulingConfigurationObject type.
| Field | Type | Description |
|---|---|---|
scheduleType | String | One of fixed/dynamic or None if cannot decide automatically |
intervalMinutes | Int | Number of minutes between monitor runs is schedule type is fixed |
startTime | DateTime | Date to start the monitor if schedule type is fixed |
Related types
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
| 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
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.
