NetworkConnection

NetworkConnectionView

class grapl_analyzerlib.nodes.network_connection_node.NetworkConnectionView(dgraph_client: pydgraph.client.DgraphClient, node_key: str, uid: str, node_type: str, created_timestamp: Optional[int] = None, terminated_timestamp: Optional[int] = None, last_seen_timestamp: Optional[int] = None, src_ip_address: Optional[str] = None, src_port: Optional[str] = None, dst_ip_address: Optional[str] = None, dst_port: Optional[str] = None, inbound_network_connection_to: Optional[grapl_analyzerlib.nodes.ip_port_node.IpPortView] = None)

Predicate

Type

Description

node_key

string

A unique identifier for this node.

created_timestamp

int

Time the network connection was created (in millis-since-epoch).

terminated_timestamp

int

Time the network connection was terminated (in millis-since-epoch).

last_seen_timestamp

int

Time the network connection was last seen (in millis-since-epoch)

src_ip_address

string

IP Address of the network connection’s source.

src_port

string

Port of the network connection’s source.

dst_ip_address

string

IP Address of the network connection’s destination.

dst_port

string

Port of the network connection’s destination.

get_connections_from() → List[grapl_analyzerlib.nodes.ip_port_node.IpPortView]
get_created_timestamp() → Optional[int]
get_dst_ip_address() → Optional[str]
get_dst_port() → Optional[str]
get_last_seen_timestamp() → Optional[int]
get_node_type() → str
get_src_ip_address() → Optional[str]
get_src_port() → Optional[str]
get_terminated_timestamp() → Optional[int]

NetworkConnectionQuery

class grapl_analyzerlib.nodes.network_connection_node.NetworkConnectionQuery(*args, **kwds)
with_connections_from(connections_from_query: Optional[IIpPortQuery] = None) → NQ
with_created_timestamp(eq: Optional[IntCmp] = None, gt: Optional[IntCmp] = None, lt: Optional[IntCmp] = None) → NQ
with_dst_ip_address(eq: Optional[StrCmp] = None, contains: Optional[StrCmp] = None, ends_with: Optional[StrCmp] = None) → NQ
with_dst_port(eq: Optional[StrCmp] = None, contains: Optional[StrCmp] = None, ends_with: Optional[StrCmp] = None) → NQ
with_inbound_network_connection_to(inbound_network_connection_to_query: Optional[IIpPortQuery] = None) → NQ
with_last_seen_timestamp(eq: Optional[IntCmp] = None, gt: Optional[IntCmp] = None, lt: Optional[IntCmp] = None) → NQ
with_src_ip_address(eq: Optional[StrCmp] = None, contains: Optional[StrCmp] = None, ends_with: Optional[StrCmp] = None) → NQ
with_src_port(eq: Optional[StrCmp] = None, contains: Optional[StrCmp] = None, ends_with: Optional[StrCmp] = None) → NQ
with_terminated_timestamp(eq: Optional[IntCmp] = None, gt: Optional[IntCmp] = None, lt: Optional[IntCmp] = None) → NQ