Related queries and mutations in Integrations and connections. Each has its own section.
Queries
getJobDependencies (query)
getJobDependencies 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: Deprecated: Use getJobDependenciesV2 instead.
DEPRECATED. Return the job- and external-asset-level dependency graph for the given job. Result contains job nodes (jobs this one triggers or that trigger it) and external asset nodes (e.g. Airflow Datasets this job reads or writes).
Arguments
| Argument | Type | Description |
|---|---|---|
jobMcon | String! | MCON of the job whose dependency graph should be returned. |
direction | LineageGraphTraversalDirection! | Direction to traverse from the job: 'upstream' (jobs/external assets that lead into this job) or 'downstream' (jobs this job triggers and external assets this job produces). |
Returns
Example
query GetJobDependencies($jobMcon: String!, $direction: LineageGraphTraversalDirection!) {
getJobDependencies(jobMcon: $jobMcon, direction: $direction) {
nodes {
mcon
objectType
jobId
taskId
uri
displayName
latestRunStatus
}
}
}Related types
JobLineageGraph, LineageGraphTraversalDirection
getTaskGraph (query)
getTaskGraph 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: Deprecated: Use getTaskGraphV2 instead.
DEPRECATED. Return the intra-job task graph for the given job: task nodes connected by IS_DOWNSTREAM edges. Edges that leave the job (to tables, other jobs, or external assets) are filtered out.
Arguments
| Argument | Type | Description |
|---|---|---|
jobMcon | String! | MCON of the job whose intra-job task graph should be returned. |
Returns
Example
query GetTaskGraph($jobMcon: String!) {
getTaskGraph(jobMcon: $jobMcon) {
nodes {
mcon
objectType
jobId
taskId
uri
displayName
latestRunStatus
}
}
}Related types
Mutations
uploadAirflowDagResult (mutation)
uploadAirflowDagResult 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.
Upload Airflow DAG run result
Arguments
| Argument | Type | Description |
|---|---|---|
dagId | String! | DAG identifier |
endDate | DateTime! | 'end_date' as returned by Airflow |
env | AirflowEnvInput! | Airflow environment information |
executionDate | DateTime! | 'execution_date' as returned by Airflow |
payload | GenericScalar! | Payload for the result, a JSON object containing all data gathered form Airflow on the callbacks. |
reason | String | 'reason' field from Airflow Run |
resourceName | String | ETL container name used to disambiguate if there are multiple Airflow connections in the account. If there's not a single active Airflow connection in the given ETL container an error will be thrown. If no resource_name is specified then it's expected to be a single active Airflow connection on the account. |
runId | String! | DAG Run Identifier |
startDate | DateTime! | 'start_date' as returned by Airflow |
state | String! | Airflow state, for example success, failed, up_for_retry, etc. |
success | Boolean! | Flag indicating if the result was successful or not |
tags | [String] | List of tags associated with the DAG run |
Returns
UploadAirflowDagResult
Example
mutation UploadAirflowDagResult($dagId: String!, $endDate: DateTime!, $env: AirflowEnvInput!, $executionDate: DateTime!, $payload: GenericScalar!, $runId: String!, $startDate: DateTime!, $state: String!, $success: Boolean!) {
uploadAirflowDagResult(dagId: $dagId, endDate: $endDate, env: $env, executionDate: $executionDate, payload: $payload, runId: $runId, startDate: $startDate, state: $state, success: $success) {
ok
}
}Types used only by uploadAirflowDagResult
uploadAirflowDagResultUploadAirflowDagResult
UploadAirflowDagResultObject type. Uploads the result for a DAG run.
| Field | Type | Description |
|---|---|---|
ok | Boolean | Result |
Related types
AirflowEnvInput, DateTime, GenericScalar
uploadAirflowSlaMisses (mutation)
uploadAirflowSlaMisses 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.
Upload Airflow SLA misses
Arguments
| Argument | Type | Description |
|---|---|---|
dagId | String! | DAG identifier |
env | AirflowEnvInput! | Airflow environment information |
payload | GenericScalar! | Payload for the result, a JSON object containing all data gathered form Airflow on the callbacks. |
resourceName | String | ETL container name used to disambiguate if there are multiple Airflow connections in the account. If there's not a single active Airflow connection in the given ETL container an error will be thrown. If no resource_name is specified then it's expected to be a single active Airflow connection on the account. |
Returns
UploadAirflowSlaMisses
Example
mutation UploadAirflowSlaMisses($dagId: String!, $env: AirflowEnvInput!, $payload: GenericScalar!) {
uploadAirflowSlaMisses(dagId: $dagId, env: $env, payload: $payload) {
ok
}
}Types used only by uploadAirflowSlaMisses
uploadAirflowSlaMissesUploadAirflowSlaMisses
UploadAirflowSlaMissesObject type. Uploads a list of SLAs missed for a DAG.
| Field | Type | Description |
|---|---|---|
ok | Boolean | Result |
Related types
AirflowEnvInput, GenericScalar
uploadAirflowTaskResult (mutation)
uploadAirflowTaskResult 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.
Upload Airflow Task run result
Arguments
| Argument | Type | Description |
|---|---|---|
attemptNumber | Int! | Attempt number for this Task Run, 1 for the first attempt. |
dagId | String! | DAG identifier |
duration | Float | Task Run duration in seconds |
endDate | DateTime! | 'end_date' as returned by Airflow |
env | AirflowEnvInput! | Airflow environment information |
exceptionMessage | String | Exception message obtained from Airflow 'exception' attribute |
executionDate | DateTime! | 'execution_date' as returned by Airflow |
logUrl | String | URL to access the log for this Task Run |
nextRetryDate | DateTime | Datetime for the next retry as returned by Airflow |
payload | GenericScalar! | Payload for the result, a JSON object containing all data gathered form Airflow on the callbacks. |
resourceName | String | ETL container name used to disambiguate if there are multiple Airflow connections in the account. If there's not a single active Airflow connection in the given ETL container an error will be thrown. If no resource_name is specified then it's expected to be a single active Airflow connection on the account. |
runId | String! | DAG Run Identifier |
startDate | DateTime! | 'start_date' as returned by Airflow |
state | String! | Airflow state, for example success, failed, up_for_retry, etc. |
success | Boolean! | Flag indicating if the result was successful or not |
tags | [String] | List of tags associated with the DAG run |
taskId | String! | Airflow Task ID |
Returns
UploadAirflowTaskResult
Example
mutation UploadAirflowTaskResult($attemptNumber: Int!, $dagId: String!, $endDate: DateTime!, $env: AirflowEnvInput!, $executionDate: DateTime!, $payload: GenericScalar!, $runId: String!, $startDate: DateTime!, $state: String!, $success: Boolean!, $taskId: String!) {
uploadAirflowTaskResult(attemptNumber: $attemptNumber, dagId: $dagId, endDate: $endDate, env: $env, executionDate: $executionDate, payload: $payload, runId: $runId, startDate: $startDate, state: $state, success: $success, taskId: $taskId) {
ok
}
}Types used only by uploadAirflowTaskResult
uploadAirflowTaskResultUploadAirflowTaskResult
UploadAirflowTaskResultObject type. Uploads the result for a DAG run.
| Field | Type | Description |
|---|---|---|
ok | Boolean | Result |
Related types
AirflowEnvInput, DateTime, GenericScalar
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
