Schedules and job runs (GraphQL)

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

ArgumentTypeDescription
bulkMonitorUuidUUID!UUID of the bulk monitor
tableIdIntOptional table ID to filter to a specific child
historyDaysIntNumber of days back (default 90)
limitIntMax 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

BulkMonitorJobExecutionLog

Object type. Job execution log entry with table context for bulk monitors

FieldTypeDescription
jobExecutionUuidUUID!UUID of job execution
startTimeDateTimeWhen the job was scheduled
statusJobExecutionStatus
endTimeDateTimeWhen the job was completed
exceptionsStringExceptions that were captured during this job execution (pre-formatted)
exceptionsDetail[JobExecutionException!]Exceptions that were captured during this job execution
totalInvocationsCountIntTotal number of invocations for the job execution. May be null if execution has not completed.
totalResultCountIntTotal number of objects returned by the job execution. May be null if execution has not completed.
totalExecutionDurationFloatTotal execution duration in seconds. May be null if execution has not completed.
consolidatingJobUuidUUIDUUID of the consolidating job execution
scheduledTimestampDateTimeWhen the job was scheduled to run
tableMconStringMCON of the table associated with this execution
tableIdStringFull 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

ArgumentTypeDescription
dcIdUUID!The UUID identifying the data collector.
jobTypeInternalJobType!The type of job (e.g., METADATA, QUERY_LOGS, BI_REPORTS).
connectionTypeConnectionTypeEnum!Connection type (e.g., snowflake, tableau).
connectionSubtypeConnectionSubtypeEnumOptional, for transactional DB subtype (e.g., sap-hana). When provided, it will be used instead of connection_type.

Returns

JSONString

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

ArgumentTypeDescription
jobScheduleUuidStringUUID of job schedule
monitorUuidStringUUID of monitor
customRuleUuidString(DEPRECATED) Use monitorUuid instead
tableMonitorUuidString(DEPRECATED) Use monitorUuid instead
historyDaysIntNumber of days back
limitIntMax number of execution in the result
bootstrapOnlyBooleanTrue 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.
includeSnoozedBooleanInclude snoozed jobs Default: false.
includeDataCollectionOnlyBooleanInclude data collection only jobs Default: false.
includeBiConnectionsBooleanInclude BI connection schedules Default: false.

Returns

[JobExecutionHistoryLog]

Example

query GetJobExecutionHistoryLogs {
  getJobExecutionHistoryLogs {
    jobExecutionUuid
    startTime
    status
    endTime
    exceptions
    comparisonDataSourceType
    tableMonitorWarning
    sizeCollectionTableMcon
    sizeCollectionEnabled
    totalInvocationsCount
    totalResultCount
    totalExecutionDuration
    consolidatingJobUuid
    evaluatedRecordCount
    evalScope
    runEvaluatedRowCount
    runBreachedRowCount
  }
}

Related types

JobExecutionHistoryLog

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

ArgumentTypeDescription
jobScheduleUuidStringUUID of job schedule
monitorUuidStringUUID of monitor
customRuleUuidString(DEPRECATED) Use monitorUuid instead
tableMonitorUuidString(DEPRECATED) Use monitorUuid instead
historyDaysIntNumber of days back
includeSnoozedBooleanInclude snoozed jobs Default: false.
includeDataCollectionOnlyBooleanInclude data collection only jobs Default: false.
includeBiConnectionsBooleanInclude BI connection schedules Default: false.
consolidatingJobUuidStringUUID of consolidating job to filter by
beforeString
afterString
firstInt
lastInt

Returns

JobExecutionHistoryLogConnection

Example

query GetJobExecutions {
  getJobExecutions {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Types used only by getJobExecutions

JobExecutionHistoryLogConnection

Object type. Job history log entries

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[JobExecutionHistoryLogEdge]!Contains the nodes in this connection.
JobExecutionHistoryLogEdge

Object type. A Relay edge containing a JobExecutionHistoryLog and its cursor.

FieldTypeDescription
nodeJobExecutionHistoryLogThe item at the end of the edge
cursorString!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

ArgumentTypeDescription
resourceUuidString!Resource UUID (warehouse, BI container, etc.)
connectionUuidStringConnection UUID (optional, filters to specific connection)
jobTypes[InternalJobType!]List of job types to filter by (e.g., METADATA, QUERY_LOGS)
scheduleTypeStringDEPRECATED: Schedule type filtering is no longer supported.
includeDeletedBooleanInclude 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

DataCollectorScheduleInfo

Object type. Detailed information about a data collector schedule

FieldTypeDescription
uuidUUID!UUID of the schedule
resourceIdString!Resource ID (warehouse UUID) this schedule belongs to
connectionIdString!Connection ID this schedule belongs to
internalJobTypeInternalJobType!Type of job (metadata, query_logs, etc.)
limitsJSONStringLimits configuration for the job
intervalInSecondsInt!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

ArgumentTypeDescription
allowMultipleBooleanAllow multiple CRON expressions
cronString!CRON expression

Returns

ValidateCron

Example

mutation ValidateCron($cron: String!) {
  validateCron(cron: $cron) {
    success
    error
  }
}

Types used only by validateCron

ValidateCron

Object type. Validate a CRON expression

FieldTypeDescription
successBooleanIndicates whether the CRON expression is valid
errorStringError 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.