Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event edges and returned as a LineageSubgraph.
Arguments
Parameters | |
---|---|
artifact |
Required. The resource name of the Artifact whose Lineage needs to be retrieved as a LineageSubgraph. Format: |
filter |
Filter specifying the boolean condition for the Artifacts to satisfy in order to be part of the Lineage Subgraph. The syntax to define filter query is based on https://google.aip.dev/160. The supported set of filters include the following: * Attribute filtering: For example: |
maxHops |
Specifies the size of the lineage graph in terms of number of hops from the specified artifact. Negative Value: INVALID_ARGUMENT error is returned 0: Only input artifact is returned. No value: Transitive closure is performed to return the complete graph. |
region |
Required. Region of the HTTP endpoint. For example, if region is set to |
Raised exceptions
Exceptions | |
---|---|
ConnectionError |
In case of a network problem (such as DNS failure or refused connection). |
HttpError |
If the response status is >= 400 (excluding 429 and 503). |
TimeoutError |
If a long-running operation takes longer to finish than the specified timeout limit. |
TypeError |
If an operation or function receives an argument of the wrong type. |
ValueError |
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout. |
Response
If successful, the response contains an instance of GoogleCloudAiplatformV1beta1LineageSubgraph
.
Subworkflow snippet
Some fields might be optional or required. To identify required fields, refer to the API documentation.
YAML
- queryArtifactLineageSubgraph: call: googleapis.aiplatform.v1beta1.projects.locations.metadataStores.artifacts.queryArtifactLineageSubgraph args: artifact: ... filter: ... maxHops: ... region: ... result: queryArtifactLineageSubgraphResult
JSON
[ { "queryArtifactLineageSubgraph": { "call": "googleapis.aiplatform.v1beta1.projects.locations.metadataStores.artifacts.queryArtifactLineageSubgraph", "args": { "artifact": "...", "filter": "...", "maxHops": "...", "region": "..." }, "result": "queryArtifactLineageSubgraphResult" } } ]