Condividi tramite


PurviewLineages.GetLineageByUniqueAttributeAsync Method

Definition

Returns lineage info about entity.

In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format

attr:[attrName]=[attrValue]

NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName

public virtual System.Threading.Tasks.Task<Azure.Response> GetLineageByUniqueAttributeAsync (string typeName, string direction, int? depth = default, int? width = default, bool? includeParent = default, bool? getDerivedLineage = default, Azure.RequestContext context = default);
abstract member GetLineageByUniqueAttributeAsync : string * string * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<bool> * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetLineageByUniqueAttributeAsync : string * string * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<bool> * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetLineageByUniqueAttributeAsync (typeName As String, direction As String, Optional depth As Nullable(Of Integer) = Nothing, Optional width As Nullable(Of Integer) = Nothing, Optional includeParent As Nullable(Of Boolean) = Nothing, Optional getDerivedLineage As Nullable(Of Boolean) = Nothing, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

typeName
String

The name of the type.

direction
String

The direction of the lineage, which could be INPUT, OUTPUT or BOTH. Allowed values: "BOTH" | "INPUT" | "OUTPUT".

depth
Nullable<Int32>

The number of hops for lineage.

width
Nullable<Int32>

The number of max expanding width in lineage.

includeParent
Nullable<Boolean>

True to include the parent chain in the response.

getDerivedLineage
Nullable<Boolean>

True to include derived lineage in the response.

context
RequestContext

The request context, which can override default behaviors on the request on a per-call basis.

Returns

Exceptions

typeName or direction is null.

typeName is an empty string, and was expected to be non-empty.

Remarks

Schema for Response Body:

{
              baseEntityGuid: string,
              guidEntityMap: Dictionary<string, AtlasEntityHeader>,
              widthCounts: Dictionary<string, Dictionary<string, AnyObject>>,
              lineageDepth: number,
              lineageWidth: number,
              includeParent: boolean,
              childrenCount: number,
              lineageDirection: "INPUT" | "OUTPUT" | "BOTH",
              parentRelations: [
                {
                  childEntityId: string,
                  relationshipId: string,
                  parentEntityId: string
                }
              ],
              relations: [
                {
                  fromEntityId: string,
                  relationshipId: string,
                  toEntityId: string
                }
              ]
            }

Applies to