ETL jobs (GraphQL)

Related queries and mutations in Integrations and connections. Each has its own section.

Queries

etlJobRerunAvailability (query)

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

Status: Experimental

Whether the caller may re-run the job now, after the same checks as rerunEtlJob and the cooldown on a Power BI dataflow. A refusal comes back as a reason, not an error, so a re-run button can show why it is disabled.

Arguments

ArgumentTypeDescription
jobMconString!MCON of the ETL job to re-run.

Returns

EtlJobRerunAvailability!

Example

query EtlJobRerunAvailability($jobMcon: String!) {
  etlJobRerunAvailability(jobMcon: $jobMcon) {
    available
    reason
    integration
    action
  }
}

Types used only by etlJobRerunAvailability

EtlJobRerunAvailability

Object type. Whether the caller may re-run the job now, and why not when they may not.

FieldTypeDescription
availableBoolean!
reasonStringWhy the job cannot be re-run, in words for the person. Null when it can.
integrationStringThe integration the job belongs to, when a rerun of it is supported.
actionEtlRerunActionWhat a rerun would do.

Related types

EtlRerunAction

etlJobRerunTarget (query)

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

Status: Experimental

What re-running the job would act on, after the same checks as rerunEtlJob. For confirming a rerun with the user before it runs.

Arguments

ArgumentTypeDescription
jobMconString!MCON of the ETL job to re-run.
runGlobalIdStringThe run's globalId, the run reads already return. Omitted, the whole job re-runs.

Returns

EtlJobRerunTarget!

Example

query EtlJobRerunTarget($jobMcon: String!) {
  etlJobRerunTarget(jobMcon: $jobMcon) {
    jobName
    integration
    action
    runStartedAt
  }
}

Types used only by etlJobRerunTarget

EtlJobRerunTarget

Object type. What a rerun of the job would act on. Read from Monte Carlo; calls no vendor.

FieldTypeDescription
jobNameString!The job's name.
integrationString!The integration the job belongs to (its ETL type).
actionEtlRerunAction!
runStartedAtDateTimeWhen the run to re-run started, when a run was given.

Related types

DateTime, EtlRerunAction

etlJobRunStatus (query)

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

Status: Experimental

What the run a rerun started is doing now, read from the vendor after the same checks as rerunEtlJob. The state is UNAVAILABLE when the vendor cannot be read.

Arguments

ArgumentTypeDescription
jobMconString!MCON of the ETL job to re-run.
vendorRunIdString!The vendor's run id, from rerunEtlJob's vendorRunId.
repairIdStringThe repair id from rerunEtlJob, to read that repair of a Databricks run.

Returns

EtlJobRunStatusPayload!

Example

query EtlJobRunStatus($jobMcon: String!, $vendorRunId: String!) {
  etlJobRunStatus(jobMcon: $jobMcon, vendorRunId: $vendorRunId) {
    integration
    runState
    runUrl
  }
}

Types used only by etlJobRunStatus

EtlJobRunStatusPayload

Object type. What a run a rerun started is doing now, read from the vendor.

FieldTypeDescription
integrationString!The integration the job belongs to (its ETL type).
runStateEtlRerunRunState!
runUrlStringLink in the vendor's UI: the run's page, or the job's page where the vendor has no page per run.

Related types

EtlRerunRunState

getEtlGroupsV3 (query)

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

Status: Experimental

List unified-ETL groups for the caller's account.

Arguments

ArgumentTypeDescription
firstIntWhen paging forward: the number of items to return (page size)
afterStringWhen paging forward: the cursor of the last item on the previous page of results
lastIntWhen paging backward: the number of items to return (page size)
beforeStringWhen paging backward: the cursor of the first item on the next page of results
containerUuidUUID
orderBy[String!]Order-by keys applied in order; first key is primary, subsequent keys act as tiebreakers. Prefix any key with - for descending.

Returns

EtlGroupV3Connection

Example

query GetEtlGroupsV3 {
  getEtlGroupsV3 {
    totalCount
  }
}

Types used only by getEtlGroupsV3

EtlGroupV3Connection

Object type.

FieldTypeDescription
edges[EtlGroupV3Edge!]!
pageInfoPageInfo!
totalCountInt!Total number of rows matching the query, ignoring first / last / before / after. Resolved on demand via a single COUNT query.
EtlGroupV3Edge

Object type.

FieldTypeDescription
nodeEtlGroupV3!
cursorString!

Related types

EtlGroupV3, PageInfo, UUID

getEtlGroupV3 (query)

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

Status: Experimental

Fetch a single unified-ETL group by mcon.

Arguments

ArgumentTypeDescription
mconString!

Returns

EtlGroupV3

Example

query GetEtlGroupV3($mcon: String!) {
  getEtlGroupV3(mcon: $mcon) {
    id
    mcon
    globalId
    sourceId
    containerUuid
    name
    groupType
    schedule
    attributes
  }
}

Related types

EtlGroupV3

getEtlJob (query)

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

Get information about a job

Arguments

ArgumentTypeDescription
mconString!Mcon for job to get details for

Returns

ETLJobUnionType

Example

query GetEtlJob($mcon: String!) {
  getEtlJob(mcon: $mcon)
}

Related types

ETLJobUnionType

getEtlJobRunSummariesV3 (query)

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

Status: Experimental

Run counts per job for every job of one integration type over a window: the runs getEtlJobRunsV3 returns for jobType, grouped by job. Ordered by failedRunCount, then lastRunAt, newest first.

Arguments

ArgumentTypeDescription
jobTypeEtlType!Integration type, for example POWER_BI_DATAFLOW. Only integrations whose jobs are listed by getEtlJobsV3 are accepted.
fromDateDateTime!Only count runs started at or after this time.
toDateDateTimeOnly count runs started at or before this time. Defaults to now. The window may span at most 14 days. Pass the same toDate on every page for stable paging.
statusIn[EtlRunStatus!]Only count runs whose status is in this list, as on getEtlJobRunsV3. Omitting it counts every status.
firstInt!The number of jobs to return, 1 to 100.
afterStringThe cursor of the last job on the previous page.

Returns

EtlJobRunSummaryV3Connection

Example

query GetEtlJobRunSummariesV3($jobType: EtlType!, $fromDate: DateTime!, $first: Int!) {
  getEtlJobRunSummariesV3(jobType: $jobType, fromDate: $fromDate, first: $first) {
    totalJobs
  }
}

Types used only by getEtlJobRunSummariesV3

EtlJobRunSummaryV3

Object type. Run counts for one job over a job-type window.

FieldTypeDescription
jobMconStringMCON of the job. Null when the job is not visible to the caller.
jobNameStringName of the job.
objectTypeStringObject-type label for integrations with several kinds of job, for example Semantic Model or Dataflow for Power BI. Null for other integrations.
runCountInt!Runs in the window that match statusIn.
failedRunCountInt!Runs among runCount with a failure status: FAILED, ERROR, FAIL, TIMED_OUT.
firstRunAtDateTime!Earliest run start counted.
lastRunAtDateTime!Latest run start counted.
latestErrorCodeStringError code of the newest failed run counted. Null when none failed.
EtlJobRunSummaryV3Connection

Object type.

FieldTypeDescription
edges[EtlJobRunSummaryV3Edge!]!
pageInfoPageInfo!
totalJobsInt!Jobs with at least one counted run.
EtlJobRunSummaryV3Edge

Object type.

FieldTypeDescription
nodeEtlJobRunSummaryV3!
cursorString!

Related types

DateTime, EtlRunStatus, EtlType, PageInfo

getEtlJobRunsV3 (query)

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

Status: Experimental

List runs scoped by job, by table, by job type, or by a combination. At least one of jobMcon, jobGlobalId, tableMcons, or jobType is required. Every scope given is combined via AND.

Arguments

ArgumentTypeDescription
firstIntWhen paging forward: the number of items to return (page size)
afterStringWhen paging forward: the cursor of the last item on the previous page of results
lastIntWhen paging backward: the number of items to return (page size)
beforeStringWhen paging backward: the cursor of the first item on the next page of results
jobMconStringScope to a single job instance by MCON.
jobGlobalIdStringScope to a logical job by global ID — includes every instance of that job across groups.
fromDateDateTimeOnly include runs started at or after this time. Narrowing the window significantly reduces cost on table-scoped queries.
toDateDateTimeOnly include runs started at or before this time.
statusIn[EtlRunStatus!]Only include runs whose status is in this list. UNKNOWN in the list also matches rows whose stored status is not a canonical enum value, which is how runs with leaked producer statuses (for example Databricks terminating) are selected. Omitting the argument applies no status filter; an explicit empty list matches no runs.
tableMcons[String!]Scope to runs of jobs that produce one of the given table MCONs (downstream lineage). A run is included when its job — or any of the job's tasks — writes the table. Usable on its own to ask "what ran against this table": with no job argument the result spans every producing job. When a job filter is also given, the two are combined via AND. Note that a table produced by a task resolves to that task's parent job, so the parent's full run set is returned. Omitting the argument applies no table filter; an explicit empty list matches no runs. Table-scoped queries are cheapest over a bounded time window — supply fromDate / toDate.
jobTypeEtlTypeScope to runs of every job of this integration type, for example POWER_BI_DATAFLOW for Power BI dataflow and semantic model refreshes. Usable on its own to ask which runs of an integration failed: with no job or table argument, fromDate is required and the fromDate to toDate window (toDate defaults to now) may span at most 14 days. Only integrations whose jobs are listed by getEtlJobsV3 are accepted.
orderBy[String!]Order-by keys applied in order; first key is primary, subsequent keys act as tiebreakers. Prefix any key with - for descending.

Returns

EtlJobRunV3Connection

Example

query GetEtlJobRunsV3 {
  getEtlJobRunsV3 {
    totalCount
  }
}

Types used only by getEtlJobRunsV3

EtlJobRunV3Connection

Object type.

FieldTypeDescription
edges[EtlJobRunV3Edge!]!
pageInfoPageInfo!
totalCountInt!Total number of rows matching the query, ignoring first / last / before / after. Resolved on demand via a single COUNT query.
EtlJobRunV3Edge

Object type.

FieldTypeDescription
nodeEtlJobRunV3!
cursorString!

Related types

DateTime, EtlJobRunV3, EtlRunStatus, EtlType, PageInfo

getEtlJobRunV3 (query)

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

Status: Experimental

Fetch a single job run by (globalId, startedAt).

Arguments

ArgumentTypeDescription
globalIdString!
startedAtDateTime!

Returns

EtlJobRunV3

Example

query GetEtlJobRunV3($globalId: String!, $startedAt: DateTime!) {
  getEtlJobRunV3(globalId: $globalId, startedAt: $startedAt) {
    id
    globalId
    sourceId
    jobGlobalId
    status
    rawStatus
    eventTime
    startedAt
    effectiveStartedAt
    queuedAt
    endTime
    heartbeatAt
    expectedEndTime
    trigger
    attemptNumber
    runUrl
    alertUuid
    error
    attributes
    jobMcon
  }
}

Related types

DateTime, EtlJobRunV3

getEtlJobs (query)

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

Deprecated - use getEtlJobsV2 instead

Arguments

ArgumentTypeDescription
firstInt!Page size
offsetInt!Page offset
resourceUuidUUIDFilter by ETL container
mcons[String]Filter by mcons

Returns

ETLJobsType

Example

query GetEtlJobs($first: Int!, $offset: Int!) {
  getEtlJobs(first: $first, offset: $offset) {
    hasNextPage
  }
}

Types used only by getEtlJobs

ETLJobsType

Object type.

FieldTypeDescription
jobs[ETLJobUnionType]ETL Jobs list
hasNextPageBooleanBoolean indicating if there's a next page based on limit/offset

Related types

ETLJobUnionType, UUID

getEtlJobsV2 (query)

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

Status: Experimental

Get ETL Jobs

Arguments

ArgumentTypeDescription
firstIntWhen paging forward: the number of items to return (page size)
afterStringWhen paging forward: the cursor of the last item on the previous page of results
lastIntWhen paging backward: the number of items to return (page size)
beforeStringWhen paging backward: the cursor of the first item on the next page of results
resourceUuidUUIDFilter by ETL container
mcons[String]Filter by mcons
withRecentRunsBooleanFilter to Jobs that have had runs within the last 30 days Default: false.
noRecentRunsBooleanFilter to Jobs that have not had runs within the last 30 days Default: false.
jobNameStringFilter by job name
orderBy[String]List of order by fields ie '["-jobName", "generatesIncidents"]'

Returns

ETLJobsConnectionTypeConnection

Example

query GetEtlJobsV2 {
  getEtlJobsV2 {
    edgeCount
    totalCount
  }
}

Types used only by getEtlJobsV2

ETLJobsConnectionTypeConnection

Object type. Etl Jobs

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[ETLJobsConnectionTypeEdge]!Contains the nodes in this connection.
edgeCountIntTotal number of edges returned (page count)
totalCountIntTotal number of edges matching filter (total count)
ETLJobsConnectionTypeEdge

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

FieldTypeDescription
nodeETLJobUnionTypeThe item at the end of the edge
cursorString!A cursor for use in pagination

Related types

ETLJobUnionType, PageInfo, UUID

getEtlJobsV3 (query)

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

Status: Experimental

List unified-ETL jobs scoped to the caller's account.

Arguments

ArgumentTypeDescription
firstIntWhen paging forward: the number of items to return (page size)
afterStringWhen paging forward: the cursor of the last item on the previous page of results
lastIntWhen paging backward: the number of items to return (page size)
beforeStringWhen paging backward: the cursor of the first item on the next page of results
containerUuidUUIDFilter by EtlContainer uuid
mcons[String]Filter by job mcons
jobNameSubstringStringCase-insensitive name filter
isPausedBoolean
withRecentRunsBoolean
noRecentRunsBoolean
groupGlobalIdString
orderBy[String!]Order-by keys applied in order; first key is primary, subsequent keys act as tiebreakers. Prefix any key with - for descending.

Returns

EtlJobV3Connection

Example

query GetEtlJobsV3 {
  getEtlJobsV3 {
    totalCount
  }
}

Types used only by getEtlJobsV3

EtlJobV3Connection

Object type.

FieldTypeDescription
edges[EtlJobV3Edge!]!
pageInfoPageInfo!
totalCountInt!Total number of rows matching the query, ignoring first / last / before / after. Resolved on demand via a single COUNT query.
EtlJobV3Edge

Object type.

FieldTypeDescription
nodeEtlJobV3!
cursorString!

Related types

EtlJobV3, PageInfo, UUID

getEtlJobV3 (query)

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

Status: Experimental

Fetch a single unified-ETL job by mcon.

Arguments

ArgumentTypeDescription
mconString!

Returns

EtlJobV3

Example

query GetEtlJobV3($mcon: String!) {
  getEtlJobV3(mcon: $mcon) {
    id
    mcon
    globalId
    sourceId
    name
    description
    folder
    schedule
    owner
    jobUrl
    isPaused
    isStale
    generatesAlerts
    deletedAt
    containerUuid
    groupGlobalId
    attributes
    lastRunDate
    recentRunCount
  }
}

Related types

EtlJobV3

getEtlTaskPerformanceV3 (query)

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

Status: Experimental

Per-task performance data for a unified-ETL (V3) job — the V3 equivalent of getTasksPerformanceData.

Arguments

ArgumentTypeDescription
filtersEtlTaskPerformanceV3FilterInput!Job scope and time window: parent job MCON plus the start/end of the period to query.
pagingEtlTaskPerformanceV3PagingInputRelay-style cursor pagination plus task-summary sort field and direction. Defaults to the first 20 by LAST_RUN_START_TIME.

Returns

TaskPerformanceData

Example

query GetEtlTaskPerformanceV3($filters: EtlTaskPerformanceV3FilterInput!) {
  getEtlTaskPerformanceV3(filters: $filters)
}

Types used only by getEtlTaskPerformanceV3

EtlTaskPerformanceV3FilterInput

Input object type.

FieldTypeDescription
jobMconString!Parent unified-ETL (V3) job mcon; scopes the summary to that job's tasks
startTimeDateTime!Starting time of period to query for
endTimeDateTimeEnding time of the query period. The window is half-open [startTime, endTime) — a run starting exactly at endTime is excluded. When omitted the window is open-ended (all runs from startTime onward) and the 7-day duration trend is computed relative to the current time.
EtlTaskPerformanceV3PagingInput

Input object type. Paging + sort for getEtlTaskPerformanceV3.

Identical to the legacy TasksPerformancePagingInput (relay cursors plus
the shared TasksPerformanceSummarySort field/direction) so the frontend
reuses its existing tasks-performance paging logic unchanged.

FieldTypeDescription
firstIntNumber of items to retrieve after the cursor. Defaults to 20 if no other paging parameters are provided
afterStringStarting cursor when paging forward
lastIntNumber of items to retrieve before the cursor when paging backward
beforeStringEnding cursor when paging backward
orderByTasksPerformanceSummarySortField by which to order the results. Defaults to LAST_RUN_START_TIME
orderDirectionEtlPerformanceSortDirectionSort direction. Defaults to EnumMeta.ASC

Related types

DateTime, EtlPerformanceSortDirection, TaskPerformanceData, TasksPerformanceSummarySort

getEtlTaskRunsV3 (query)

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

Status: Experimental

List task runs scoped to a job run or task.

Arguments

ArgumentTypeDescription
firstIntWhen paging forward: the number of items to return (page size)
afterStringWhen paging forward: the cursor of the last item on the previous page of results
lastIntWhen paging backward: the number of items to return (page size)
beforeStringWhen paging backward: the cursor of the first item on the next page of results
jobRunGlobalIdString
taskMconString
fromDateDateTime
toDateDateTime
orderBy[String!]Order-by keys applied in order; first key is primary, subsequent keys act as tiebreakers. Prefix any key with - for descending.

Returns

EtlTaskRunV3Connection

Example

query GetEtlTaskRunsV3 {
  getEtlTaskRunsV3 {
    totalCount
  }
}

Types used only by getEtlTaskRunsV3

EtlTaskRunV3

Object type. One execution of an EtlTaskV3.

FieldTypeDescription
idID!Stable opaque identifier derived from (globalId, startedAt) — the composite uniqueness of partitioned run rows. Use it as the Apollo cache key and React list key; do not parse it on the client.
globalIdString!
sourceIdString!
taskGlobalIdString!
jobRunGlobalIdString!
jobGlobalIdString!
statusEtlRunStatus!
rawStatusString!Producer-supplied vendor status string before normalization. Always populated. status always serialises to a known enum member, with out-of-enum values coerced to UNKNOWN, so this field is the only place the vendor value survives. Display it when status is UNKNOWN and this differs from 'unknown'.
eventTimeDateTime!
startedAtDateTime!
queuedAtDateTime
endTimeDateTime
heartbeatAtDateTime
durationSecondsFloat
attemptNumberInt!
errorJSONString
attributesJSONString!
jobMconStringMCON of the job instance this run belongs to. Null when the run's instance has not been resolved yet.
taskMconStringMCON of the task instance this run belongs to. Null when the run's task instance has not been resolved yet.
groupGlobalIdStringGlobal ID of the group instance this run was attributed to. Null when the run's instance has not been resolved yet.
isFailureBoolean!Whether this run ended in a failure-terminal status.
EtlTaskRunV3Connection

Object type.

FieldTypeDescription
edges[EtlTaskRunV3Edge!]!
pageInfoPageInfo!
totalCountInt!Total number of rows matching the query, ignoring first / last / before / after. Resolved on demand via a single COUNT query.
EtlTaskRunV3Edge

Object type.

FieldTypeDescription
nodeEtlTaskRunV3!
cursorString!

Related types

DateTime, EtlRunStatus, JSONString, PageInfo

getEtlTaskSourceV3 (query)

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

Status: Experimental

Fetch the source code an ETL task runs, live from the ETL tool. Nothing is stored. For the as-run source, set version: AS_RUN and pass a task run. Supports Databricks tasks.

Arguments

ArgumentTypeDescription
taskMconString!
versionEtlTaskSourceVersionDefault: "CURRENT".
taskRunGlobalIdStringTask run whose source to read. Required for AS_RUN. Requires taskRunStartedAt.
taskRunStartedAtDateTimeStart time of the task run given by taskRunGlobalId.

Returns

EtlTaskSourceV3

Example

query GetEtlTaskSourceV3($taskMcon: String!) {
  getEtlTaskSourceV3(taskMcon: $taskMcon) {
    kind
    version
    language
    path
    content
    truncated
    fallbackReason
  }
}

Types used only by getEtlTaskSourceV3

EtlTaskSourceFallbackReason

Enum type.

ValueDescription
RUN_EXPIRED
PARSE_FAILED
AS_RUN_UNSUPPORTED
UNKNOWN
EtlTaskSourceGitV3

Object type. Where a Git-sourced task's code lives. The source itself isn't fetched.

FieldTypeDescription
urlStringRepository URL.
providerStringGit provider, e.g. gitHub.
branchStringBranch or tag the job is configured with.
commitStringCommit the run executed, or the job's pinned commit when no run is given.
pathStringPath of the task's file within the repository.
EtlTaskSourceKind

Enum type.

ValueDescription
NOTEBOOK
PYTHON_FILE
SQL_FILE
SQL_QUERY
GIT
UNSUPPORTED
EtlTaskSourceV3

Object type. Source code an ETL task runs, fetched live from the ETL tool. Never stored.

FieldTypeDescription
kindEtlTaskSourceKind!
versionEtlTaskSourceVersion!Version actually returned. An AS_RUN request comes back CURRENT when the as-run source is unavailable; fallbackReason says why.
languageStringSource language, e.g. python or sql.
pathStringWhere the source lives: a file path, saved query id, or Git repository path.
contentString!Source code. Empty for Git-sourced and unsupported tasks.
truncatedBoolean!Whether content was cut short to fit the size limit.
gitEtlTaskSourceGitV3
fallbackReasonEtlTaskSourceFallbackReasonWhy the returned version differs from the requested one.
EtlTaskSourceVersion

Enum type.

ValueDescription
CURRENT
AS_RUN

Related types

DateTime

getEtlTasksV3 (query)

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

Status: Experimental

List tasks for a unified-ETL job.

Arguments

ArgumentTypeDescription
firstIntWhen paging forward: the number of items to return (page size)
afterStringWhen paging forward: the cursor of the last item on the previous page of results
lastIntWhen paging backward: the number of items to return (page size)
beforeStringWhen paging backward: the cursor of the first item on the next page of results
jobMconString
jobGlobalIdString
taskMcons[String]
orderBy[String!]Order-by keys applied in order; first key is primary, subsequent keys act as tiebreakers. Prefix any key with - for descending.

Returns

EtlTaskV3Connection

Example

query GetEtlTasksV3 {
  getEtlTasksV3 {
    totalCount
  }
}

Types used only by getEtlTasksV3

EtlTaskV3Connection

Object type.

FieldTypeDescription
edges[EtlTaskV3Edge!]!
pageInfoPageInfo!
totalCountInt!Total number of rows matching the query, ignoring first / last / before / after. Resolved on demand via a single COUNT query.
EtlTaskV3Edge

Object type.

FieldTypeDescription
nodeEtlTaskV3!
cursorString!

Related types

EtlTaskV3, PageInfo

getEtlTaskV3 (query)

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

Status: Experimental

Fetch a single unified-ETL task by mcon.

Arguments

ArgumentTypeDescription
mconString!

Returns

EtlTaskV3

Example

query GetEtlTaskV3($mcon: String!) {
  getEtlTaskV3(mcon: $mcon) {
    id
    mcon
    globalId
    sourceId
    jobGlobalId
    name
    taskType
    description
    attributes
    jobMcon
  }
}

Related types

EtlTaskV3

Mutations

bulkSetEtlJobGeneratesAlerts (mutation)

bulkSetEtlJobGeneratesAlerts is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Set whether a set of ETL jobs generates alerts or not

Arguments

ArgumentTypeDescription
generatesAlertsBoolean!should generate alerts
mcons[String]!MCONs of jobs to set generate alerts for

Returns

BulkSetEtlJobGeneratesAlerts

Example

mutation BulkSetEtlJobGeneratesAlerts($generatesAlerts: Boolean!, $mcons: [String]!) {
  bulkSetEtlJobGeneratesAlerts(generatesAlerts: $generatesAlerts, mcons: $mcons) {
    updatedJobs
  }
}

Types used only by bulkSetEtlJobGeneratesAlerts

BulkSetEtlJobGeneratesAlerts

Object type. Set whether a set of ETL jobs (like an Airflow DAG) generates alerts or not

FieldTypeDescription
updatedJobsIntNumber of jobs updated

bulkSetEtlJobGeneratesAlertsV3 (mutation)

bulkSetEtlJobGeneratesAlertsV3 is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Set whether a set of ETL jobs generates alerts or not

Arguments

ArgumentTypeDescription
generatesAlertsBoolean!should generate alerts
mcons[String!]!MCONs of jobs to set generate alerts for

Returns

SetEtlJobGeneratesAlertsV3Result

Example

mutation BulkSetEtlJobGeneratesAlertsV3($generatesAlerts: Boolean!, $mcons: [String!]!) {
  bulkSetEtlJobGeneratesAlertsV3(generatesAlerts: $generatesAlerts, mcons: $mcons) {
    jobs {
      id
      mcon
      globalId
      sourceId
      name
      description
      folder
      schedule
      owner
      jobUrl
      isPaused
      isStale
      generatesAlerts
      deletedAt
      containerUuid
      groupGlobalId
      attributes
      lastRunDate
      recentRunCount
    }
  }
}

Related types

SetEtlJobGeneratesAlertsV3Result

deleteEtlJobsV3 (mutation)

deleteEtlJobsV3 is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Soft-delete one or more ETL jobs by mcon (max 1000)

Arguments

ArgumentTypeDescription
mcons[String!]!MCONs of the jobs to soft-delete (max 1000).

Returns

DeleteEtlJobsV3Result

Example

mutation DeleteEtlJobsV3($mcons: [String!]!) {
  deleteEtlJobsV3(mcons: $mcons) {
    jobs {
      id
      mcon
      globalId
      sourceId
      name
      description
      folder
      schedule
      owner
      jobUrl
      isPaused
      isStale
      generatesAlerts
      deletedAt
      containerUuid
      groupGlobalId
      attributes
      lastRunDate
      recentRunCount
    }
  }
}

Types used only by deleteEtlJobsV3

DeleteEtlJobsV3Result

Object type. Return shape for the V3 delete mutation.

jobs carries the soft-deleted ETL job rows so FE Apollo can normalize
the cache on __typename + id and reflect the deletion without a list
refetch.

FieldTypeDescription
jobs[EtlJobV3!]!The soft-deleted ETL job rows.

Related types

EtlJobV3

rerunEtlJob (mutation)

rerunEtlJob is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Re-run an ETL job in the customer's own system: refresh a Power BI dataflow, repair the failed tasks of a Databricks run (with runGlobalId), or start a new Databricks run. The caller needs rerun permission on ETL jobs, the job must be in one of their domains, and the job's connection must be active and in their allowed connection set.

Arguments

ArgumentTypeDescription
jobMconString!MCON of the ETL job to re-run.
runGlobalIdStringThe run's globalId, the run reads already return. Omitted, the whole job re-runs.

Returns

RerunEtlJob

Example

mutation RerunEtlJob($jobMcon: String!) {
  rerunEtlJob(jobMcon: $jobMcon) {
    payload {
      integration
      action
      status
      vendorRunId
      repairId
      runUrl
      runState
    }
  }
}

Types used only by rerunEtlJob

EtlJobRerunPayload

Object type. What one rerun did. Ids are the vendor's, when it returns them.

FieldTypeDescription
integrationString!The integration the job belongs to (its ETL type).
actionEtlRerunAction!
statusEtlRerunStatus!
vendorRunIdStringThe vendor's id of the run that started.
repairIdStringThe vendor's id of the repair, for a repair.
runUrlStringLink in the vendor's UI: the run's page, or the job's page where the vendor has no page per run.
runStateEtlRerunRunState!
EtlRerunStatus

Enum type. How far the rerun got: STARTED when the vendor accepted it, REQUESTED when it was handed to a route that starts it later.

ValueDescription
STARTED
REQUESTED
RerunEtlJob

Object type.

FieldTypeDescription
payloadEtlJobRerunPayload!

Related types

EtlRerunAction, EtlRerunRunState

setEtlJobGeneratesAlerts (mutation)

setEtlJobGeneratesAlerts is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Configures if alerts should be generated or not when a given ETL Job (like an Airflow DAG) fails

Arguments

ArgumentTypeDescription
generatesAlertsBoolean!should generate alerts
mconString!job mcon

Returns

SetEtlJobGeneratesAlerts

Example

mutation SetEtlJobGeneratesAlerts($generatesAlerts: Boolean!, $mcon: String!) {
  setEtlJobGeneratesAlerts(generatesAlerts: $generatesAlerts, mcon: $mcon) {
    generatesAlerts
  }
}

Types used only by setEtlJobGeneratesAlerts

SetEtlJobGeneratesAlerts

Object type. Set whether a given ETL job (like an Airflow DAG) generates alerts or not

FieldTypeDescription
generatesAlertsBooleanNew value for generates_alerts

setEtlJobGeneratesAlertsV3 (mutation)

setEtlJobGeneratesAlertsV3 is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Configures if alerts should be generated or not when a given ETL Job (like an Airflow DAG) fails

Arguments

ArgumentTypeDescription
generatesAlertsBoolean!should generate alerts
mconString!job mcon

Returns

SetEtlJobGeneratesAlertsV3Result

Example

mutation SetEtlJobGeneratesAlertsV3($generatesAlerts: Boolean!, $mcon: String!) {
  setEtlJobGeneratesAlertsV3(generatesAlerts: $generatesAlerts, mcon: $mcon) {
    jobs {
      id
      mcon
      globalId
      sourceId
      name
      description
      folder
      schedule
      owner
      jobUrl
      isPaused
      isStale
      generatesAlerts
      deletedAt
      containerUuid
      groupGlobalId
      attributes
      lastRunDate
      recentRunCount
    }
  }
}

Related types

SetEtlJobGeneratesAlertsV3Result

setEtlJobGeneratesIncidents (mutation)

setEtlJobGeneratesIncidents is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Configures if incidents should be generated or not when a given ETL Job (like an Airflow DAG) fails

Arguments

ArgumentTypeDescription
generatesIncidentsBoolean!should generate incidents
mconString!job mcon

Returns

SetEtlJobGeneratesIncidents

Example

mutation SetEtlJobGeneratesIncidents($generatesIncidents: Boolean!, $mcon: String!) {
  setEtlJobGeneratesIncidents(generatesIncidents: $generatesIncidents, mcon: $mcon) {
    generatesIncidents
  }
}

Types used only by setEtlJobGeneratesIncidents

SetEtlJobGeneratesIncidents

Object type. Set whether a given ETL job (like an Airflow DAG) generates incidents or not

FieldTypeDescription
generatesIncidentsBooleanNew value for generates_incidents

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.