Lens

LensView

class grapl_analyzerlib.nodes.lens.LensView(uid: int, node_key: str, graph_client: Any, node_types: Set[str], scope: Optional[List[EntityView]] = None, lens_name: Optional[str] = None, lens_type: Optional[str] = None, **kwargs)

Predicate

Type

Description

node_key

string

A unique identifier for this node.

lens

string

The name of the lens this node represents.

scope

List[EntityView]

todo: documentation

get_lens_name(cached=True) Optional[str]
static get_or_create(gclient: grapl_analyzerlib.grapl_client.GraphClient, lens_name: str, lens_type: str) grapl_analyzerlib.nodes.lens.LensView
get_scope(*scope, cached=False)
classmethod node_schema() Schema
queryable

alias of grapl_analyzerlib.nodes.lens.LensQuery

LensQuery

class grapl_analyzerlib.nodes.lens.LensQuery
classmethod node_schema() grapl_analyzerlib.schema.Schema
with_lens_name(eq: str) grapl_analyzerlib.nodes.lens.LensQuery
with_lens_type(eq: str) grapl_analyzerlib.nodes.lens.LensQuery
with_scope(*scope) grapl_analyzerlib.nodes.lens.LensQuery