Related queries and mutations in Monitors. Each has its own section.
Queries
getBulkMonitorJobExecutions (query)
getBulkMonitorJobExecutions 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 job executions for a bulk monitor with table context
Arguments
| Argument | Type | Description |
|---|---|---|
bulkMonitorUuid | UUID! | UUID of the bulk monitor |
tableId | Int | Optional table ID to filter to a specific child |
historyDays | Int | Number of days back (default 90) |
limit | Int | Max number of executions (default 500) |
Returns
[BulkMonitorJobExecutionLog!]
Example
query GetBulkMonitorJobExecutions($bulkMonitorUuid: UUID!) {
getBulkMonitorJobExecutions(bulkMonitorUuid: $bulkMonitorUuid) {
jobExecutionUuid
startTime
status
endTime
exceptions
totalInvocationsCount
totalResultCount
totalExecutionDuration
consolidatingJobUuid
scheduledTimestamp
tableMcon
tableId
}
}Types used only by getBulkMonitorJobExecutions
getBulkMonitorJobExecutionsBulkMonitorJobExecutionLog
BulkMonitorJobExecutionLogObject type. Job execution log entry with table context for bulk monitors
| Field | Type | Description |
|---|---|---|
jobExecutionUuid | UUID! | UUID of job execution |
startTime | DateTime | When the job was scheduled |
status | JobExecutionStatus | |
endTime | DateTime | When the job was completed |
exceptions | String | Exceptions that were captured during this job execution (pre-formatted) |
exceptionsDetail | [JobExecutionException!] | Exceptions that were captured during this job execution |
totalInvocationsCount | Int | Total number of invocations for the job execution. May be null if execution has not completed. |
totalResultCount | Int | Total number of objects returned by the job execution. May be null if execution has not completed. |
totalExecutionDuration | Float | Total execution duration in seconds. May be null if execution has not completed. |
consolidatingJobUuid | UUID | UUID of the consolidating job execution |
scheduledTimestamp | DateTime | When the job was scheduled to run |
tableMcon | String | MCON of the table associated with this execution |
tableId | String | Full table ID (project:dataset.table) for this execution |
Related types
DateTime, JobExecutionException, JobExecutionStatus, UUID
getCollectorJobLimits (query)
getCollectorJobLimits 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 default job limits for a specific job type and connection type.
Arguments
| Argument | Type | Description |
|---|---|---|
dcId | UUID! | The UUID identifying the data collector. |
jobType | InternalJobType! | The type of job (e.g., METADATA, QUERY_LOGS, BI_REPORTS). |
connectionType | ConnectionTypeEnum! | Connection type (e.g., snowflake, tableau). |
connectionSubtype | ConnectionSubtypeEnum | Optional, for transactional DB subtype (e.g., sap-hana). When provided, it will be used instead of connection_type. |
Returns
Example
query GetCollectorJobLimits($dcId: UUID!, $jobType: InternalJobType!, $connectionType: ConnectionTypeEnum!) {
getCollectorJobLimits(dcId: $dcId, jobType: $jobType, connectionType: $connectionType)
}Related types
ConnectionSubtypeEnum, ConnectionTypeEnum, InternalJobType, JSONString, UUID
getJobExecutionHistoryLogs (query)
getJobExecutionHistoryLogs 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 getJobExecutions
DEPRECATED. Get the job execution logs
Arguments
| Argument | Type | Description |
|---|---|---|
jobScheduleUuid | String | UUID of job schedule |
monitorUuid | String | UUID of monitor |
customRuleUuid | String | (DEPRECATED) Use monitorUuid instead |
tableMonitorUuid | String | (DEPRECATED) Use monitorUuid instead |
historyDays | Int | Number of days back |
limit | Int | Max number of execution in the result |
bootstrapOnly | Boolean | True to return only job execution logs only to load bootstrap data (which don't follow the normal schedule). These jobs are not included in the normal job history because they are not associated with the monitor evaluation Default: false. |
includeSnoozed | Boolean | Include snoozed jobs Default: false. |
includeDataCollectionOnly | Boolean | Include data collection only jobs Default: false. |
includeBiConnections | Boolean | Include BI connection schedules Default: false. |
Returns
Example
query GetJobExecutionHistoryLogs {
getJobExecutionHistoryLogs {
jobExecutionUuid
startTime
status
endTime
exceptions
comparisonDataSourceType
tableMonitorWarning
sizeCollectionTableMcon
sizeCollectionEnabled
totalInvocationsCount
totalResultCount
totalExecutionDuration
consolidatingJobUuid
evaluatedRecordCount
evalScope
runEvaluatedRowCount
runBreachedRowCount
}
}Related types
getJobExecutions (query)
getJobExecutions 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 job execution logs
Arguments
| Argument | Type | Description |
|---|---|---|
jobScheduleUuid | String | UUID of job schedule |
monitorUuid | String | UUID of monitor |
customRuleUuid | String | (DEPRECATED) Use monitorUuid instead |
tableMonitorUuid | String | (DEPRECATED) Use monitorUuid instead |
historyDays | Int | Number of days back |
includeSnoozed | Boolean | Include snoozed jobs Default: false. |
includeDataCollectionOnly | Boolean | Include data collection only jobs Default: false. |
includeBiConnections | Boolean | Include BI connection schedules Default: false. |
consolidatingJobUuid | String | UUID of consolidating job to filter by |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
JobExecutionHistoryLogConnection
Example
query GetJobExecutions {
getJobExecutions {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Types used only by getJobExecutions
getJobExecutionsJobExecutionHistoryLogConnection
JobExecutionHistoryLogConnectionObject type. Job history log entries
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [JobExecutionHistoryLogEdge]! | Contains the nodes in this connection. |
JobExecutionHistoryLogEdge
JobExecutionHistoryLogEdgeObject type. A Relay edge containing a JobExecutionHistoryLog and its cursor.
| Field | Type | Description |
|---|---|---|
node | JobExecutionHistoryLog | The item at the end of the edge |
cursor | String! | A cursor for use in pagination |
Related types
JobExecutionHistoryLog, PageInfo
getJobSchedules (query)
getJobSchedules is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get data collector schedules for a resource (warehouse, BI tool, etc.)
Arguments
| Argument | Type | Description |
|---|---|---|
resourceUuid | String! | Resource UUID (warehouse, BI container, etc.) |
connectionUuid | String | Connection UUID (optional, filters to specific connection) |
jobTypes | [InternalJobType!] | List of job types to filter by (e.g., METADATA, QUERY_LOGS) |
scheduleType | String | DEPRECATED: Schedule type filtering is no longer supported. |
includeDeleted | Boolean | Include deleted schedules Default: false. |
Returns
[DataCollectorScheduleInfo!]!
Example
query GetJobSchedules($resourceUuid: String!) {
getJobSchedules(resourceUuid: $resourceUuid) {
uuid
resourceId
connectionId
internalJobType
limits
intervalInSeconds
}
}Types used only by getJobSchedules
getJobSchedulesDataCollectorScheduleInfo
DataCollectorScheduleInfoObject type. Detailed information about a data collector schedule
| Field | Type | Description |
|---|---|---|
uuid | UUID! | UUID of the schedule |
resourceId | String! | Resource ID (warehouse UUID) this schedule belongs to |
connectionId | String! | Connection ID this schedule belongs to |
internalJobType | InternalJobType! | Type of job (metadata, query_logs, etc.) |
limits | JSONString | Limits configuration for the job |
intervalInSeconds | Int! | Interval between job runs in seconds |
Related types
InternalJobType, JSONString, UUID
Mutations
validateCron (mutation)
validateCron 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.
Validate a CRON expression
Arguments
| Argument | Type | Description |
|---|---|---|
allowMultiple | Boolean | Allow multiple CRON expressions |
cron | String! | CRON expression |
Returns
ValidateCron
Example
mutation ValidateCron($cron: String!) {
validateCron(cron: $cron) {
success
error
}
}Types used only by validateCron
validateCronValidateCron
ValidateCronObject type. Validate a CRON expression
| Field | Type | Description |
|---|---|---|
success | Boolean | Indicates whether the CRON expression is valid |
error | String | Error message if the CRON expression is not valid |
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
