Sources object schema
Sources make it possible to name and describe the data loaded into your warehouse by your extract and load tools. You can query sources through the Discovery API.
The Example query illustrates a few fields you can query with the sources
object. Refer to Fields to view the entire schema, which provides all possible fields you can query.
Arguments
When querying for sources
, you can use the following arguments:
Fetching data...
Example query
You can specify the environmentId
and filter on the database name, to return the freshness and execution status, for the first 100 sources from the given database:
query {
environment(id: 834) {
applied {
sources(
filter: {
database: "analytics"
},
first: 100
) {
edges {
node {
name
fqn
description
filePath
freshness {
freshnessChecked
freshnessStatus
}
sourceName
sourceDescription
tests {
name
description
testType
executionInfo {
lastRunStatus
}
}
}
}
}
}
}
}
Fields
When querying for sources
, you can use the following fields:
Fetching data...
Key fields from nodes
Fetching data...
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
0