Documentation Index
Fetch the complete documentation index at: https://openmetadata-feat-feat-2mbfixdeploy.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Pipeline Observability
Manage pipeline observability data for a table. This tracks which pipelines produce or consume the table and their execution status.
Get Pipeline Observability
GET /v1/tables/{id}/pipelineObservability
Add Pipeline Observability
PUT /v1/tables/{id}/pipelineObservability
Fully qualified name of the pipeline.
Status of the last pipeline run: Successful, Failed, Pending, Aborted.
Unix timestamp (milliseconds) of the last pipeline run.
Unix timestamp (milliseconds) of the next scheduled run.
GET /v1/tables/{id}/pipelineObservability
from metadata.sdk import configure
from metadata.sdk.entities import Tables
configure(
host="https://your-company.open-metadata.org/api",
jwt_token="your-jwt-token"
)
table_id = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
# Get pipeline observability
observability = Tables.get_pipeline_observability(table_id)
for pipeline in observability:
print(f"{pipeline['pipelineName']}: {pipeline['lastRunStatus']}")
# Add pipeline observability
Tables.add_pipeline_observability(table_id, {
"pipelineName": "customer_etl",
"pipelineFQN": "airflow_prod.customer_etl",
"lastRunStatus": "Successful",
"lastRunTimestamp": 1706745600000,
"nextRunTimestamp": 1706832000000
})
{
"pipelineName": "customer_etl",
"pipelineFQN": "airflow_prod.customer_etl",
"lastRunStatus": "Successful",
"lastRunTimestamp": 1706745600000,
"nextRunTimestamp": 1706832000000
}
Returns
Get returns pipeline observability data associated with the table.
Add returns the updated pipeline observability data.
Response
Fully qualified name of the pipeline.
Unix timestamp of the last run in milliseconds.
Unix timestamp of the next scheduled run in milliseconds.
Error Handling
| Code | Error Type | Description |
|---|
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission |
404 | NOT_FOUND | Table does not exist |