Skip to main content

Exposures object schema

The exposures object allows you to query information about all exposures in a given job. To learn more, refer to Add Exposures to your DAG.

Arguments

When querying for exposures, the following arguments are available.

FieldTypeRequired?Description

Below we show some illustrative example queries and outline the schema of the exposures object.

Example query

The example below queries information about all exposures in a given job including the owner's name and email, the URL, and information about parent sources and parent models for each exposure.

{
job(id: 123) {
exposures(jobId: 123) {
runId
projectId
name
uniqueId
resourceType
ownerName
url
ownerEmail
parentsSources {
uniqueId
sourceName
name
state
maxLoadedAt
criteria {
warnAfter {
period
count
}
errorAfter {
period
count
}
}
maxLoadedAtTimeAgoInS
}
parentsModels {
uniqueId
}
}
}
}

Fields

When querying for exposures, the following fields are available:

FieldTypeDescription
accountIdBigInt!The unique ID of the account in dbt Cloud that this node was generated for
compileCompletedAtDateTimeThe ISO timestamp when the exposure compilation started
compileStartedAtDateTimeThe ISO timestamp when the exposure compilation started
dbtVersionStringThe version of dbt used to produce this node
dependsOn[String!]!The list of nodes this exposure depends on
descriptionStringThe user-supplied description for this node
environmentIdBigInt!The unique ID of the account in dbt Cloud that this node was generated for
executeCompletedAtDateTimeThe ISO timestamp when the exposure execution completed
executeStartedAtDateTimeThe ISO timestamp when the exposure execution started
executionTimeFloatThe total time elapsed during the execution of this exposure
exposureTypeStringThe type of this exposure
jobIdBigInt!The unique ID of the account in dbt Cloud that this node was generated for
manifestGeneratedAtDateTimeThe ISO time when the manifest for this exposure was generated
maturityStringThe maturity of this exposure
metaJSONObjectThe key-value store containing metadata relevant to this node
nameStringThe user-supplied name of this particular node
ownerEmailStringThe email of the owner of this exposure
ownerNameStringThe name of the owner of this exposure
packageNameStringThe package name of this exposure
parents[!]!The list of resources that are ancestors of this exposure
parentsModels[ModelNode!]!The list of models that are parents of this exposure
parentsSources[SourceNode!]!The list of sources that are parents of this exposure
projectIdBigInt!The unique ID of the account in dbt Cloud that this node was generated for
resourceTypeString!The resource type of this node
runIdBigInt!The unique ID of the account in dbt Cloud that this node was generated for
statusStringThe execution status of this exposure
tags[String!]The tags associated with this node
threadIdStringThe thread that ran the execution of this exposure
uniqueIdString!The unique ID of this node
urlStringThe url of this exposure
0
Loading