Risk

RiskView

class grapl_analyzerlib.nodes.risk.RiskView(uid: int, node_key: str, graph_client: Any, node_types: Set[str], risky_nodes: Optional[Optional[List[EntityView]]] = None, **kwargs)

Predicate

Type

Description

node_key

string

A unique identifier for this node

risk_score

int

todo: documentation

analyzer_name

string

The name of the analyzer that spawned this risk.

risky_nodes

List[EntityView]

todo: documentation

get_analyzer_name(cached=True)
get_risk_score(cached=True)
get_risky_nodes(*risks, cached=False) RiskQuery
classmethod node_schema() Schema
queryable

alias of grapl_analyzerlib.nodes.risk.RiskQuery

RiskQuery

class grapl_analyzerlib.nodes.risk.RiskQuery
classmethod node_schema() Schema
with_analyzer_name(*, eq: Optional[Union[str, grapl_analyzerlib.comparators.Not]] = None, contains: Optional[Union[str, grapl_analyzerlib.comparators.Not, List[Union[str, grapl_analyzerlib.comparators.Not]]]] = None, starts_with: Optional[Union[str, grapl_analyzerlib.comparators.Not]] = None, ends_with: Optional[Union[str, grapl_analyzerlib.comparators.Not]] = None, regexp: Optional[Union[str, grapl_analyzerlib.comparators.Not, List[Union[str, grapl_analyzerlib.comparators.Not]]]] = None, distance_lt: Optional[Tuple[str, int]] = None)
with_risk_score(*, eq: Optional[Union[int, grapl_analyzerlib.comparators.Not]] = None, gt: Optional[Union[int, grapl_analyzerlib.comparators.Not]] = None, ge: Optional[Union[int, grapl_analyzerlib.comparators.Not]] = None, lt: Optional[Union[int, grapl_analyzerlib.comparators.Not]] = None, le: Optional[Union[int, grapl_analyzerlib.comparators.Not]] = None)
with_scope(*scope) RiskQuery