Reference documentation and code samples for the Google Cloud Chronicle Client class Network.
A network event.
Generated from protobuf message google.backstory.Network
Namespace
Google \ BackstoryMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ sent_bytes |
int|string
The number of bytes sent. |
↳ received_bytes |
int|string
The number of bytes received. |
↳ total_bytes |
int|string
The number of total bytes. |
↳ sent_packets |
int|string
The number of packets sent. |
↳ received_packets |
int|string
The number of packets received. |
↳ session_duration |
Google\Protobuf\Duration
The duration of the session as the number of seconds and nanoseconds. For seconds, network.session_duration.seconds, the type is a 64-bit integer. For nanoseconds, network.session_duration.nanos, the type is a 32-bit integer. |
↳ session_id |
string
The ID of the network session. |
↳ parent_session_id |
string
The ID of the parent network session. |
↳ application_protocol_version |
string
The version of the application protocol. e.g. "1.1, 2.0" |
↳ community_id |
string
Community ID network flow value. |
↳ direction |
int
The direction of network traffic. |
↳ ip_protocol |
int
The IP protocol. |
↳ ipv6 |
bool
True if IPv6 is used. |
↳ application_protocol |
int
The application protocol. |
↳ ftp |
Ftp
FTP info. |
↳ email |
Email
Email info for the sender/recipient. |
↳ dns |
Dns
DNS info. |
↳ dhcp |
Dhcp
DHCP info. |
↳ http |
Http
HTTP info. |
↳ tls |
Tls
TLS info. |
↳ smtp |
Smtp
SMTP info. Store fields specific to SMTP not covered by Email. |
↳ asn |
string
Autonomous system number. |
↳ dns_domain |
string
DNS domain name. |
↳ carrier_name |
string
Carrier identification. |
↳ organization_name |
string
Organization name (e.g Google). |
↳ ip_subnet_range |
string
Associated human-readable IP subnet range (e.g. 10.1.2.0/24). |
↳ is_proxy |
bool
Whether the IP address is a known proxy. |
↳ proxy_info |
ProxyInfo
Proxy information. Only set if is_proxy is true. |
↳ connection_state |
int
The state of the network connection. |
getSentBytes
The number of bytes sent.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setSentBytes
The number of bytes sent.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getReceivedBytes
The number of bytes received.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setReceivedBytes
The number of bytes received.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTotalBytes
The number of total bytes.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setTotalBytes
The number of total bytes.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSentPackets
The number of packets sent.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setSentPackets
The number of packets sent.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getReceivedPackets
The number of packets received.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setReceivedPackets
The number of packets received.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSessionDuration
The duration of the session as the number of seconds and nanoseconds.
For seconds, network.session_duration.seconds, the type is a 64-bit integer. For nanoseconds, network.session_duration.nanos, the type is a 32-bit integer.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Duration|null |
|
hasSessionDuration
clearSessionDuration
setSessionDuration
The duration of the session as the number of seconds and nanoseconds.
For seconds, network.session_duration.seconds, the type is a 64-bit integer. For nanoseconds, network.session_duration.nanos, the type is a 32-bit integer.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Duration
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSessionId
The ID of the network session.
| Returns | |
|---|---|
| Type | Description |
string |
|
setSessionId
The ID of the network session.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getParentSessionId
The ID of the parent network session.
| Returns | |
|---|---|
| Type | Description |
string |
|
setParentSessionId
The ID of the parent network session.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getApplicationProtocolVersion
The version of the application protocol. e.g. "1.1, 2.0"
| Returns | |
|---|---|
| Type | Description |
string |
|
setApplicationProtocolVersion
The version of the application protocol. e.g. "1.1, 2.0"
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCommunityId
Community ID network flow value.
| Returns | |
|---|---|
| Type | Description |
string |
|
setCommunityId
Community ID network flow value.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDirection
The direction of network traffic.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Direction. |
setDirection
The direction of network traffic.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Direction. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getIpProtocol
The IP protocol.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type IpProtocol. |
setIpProtocol
The IP protocol.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type IpProtocol. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getIpv6
True if IPv6 is used.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setIpv6
True if IPv6 is used.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getApplicationProtocol
The application protocol.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type ApplicationProtocol. |
setApplicationProtocol
The application protocol.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ApplicationProtocol. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFtp
FTP info.
| Returns | |
|---|---|
| Type | Description |
Ftp|null |
|
hasFtp
clearFtp
setFtp
FTP info.
| Parameter | |
|---|---|
| Name | Description |
var |
Ftp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEmail
Email info for the sender/recipient.
| Returns | |
|---|---|
| Type | Description |
Email|null |
|
hasEmail
clearEmail
setEmail
Email info for the sender/recipient.
| Parameter | |
|---|---|
| Name | Description |
var |
Email
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDns
DNS info.
| Returns | |
|---|---|
| Type | Description |
Dns|null |
|
hasDns
clearDns
setDns
DNS info.
| Parameter | |
|---|---|
| Name | Description |
var |
Dns
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDhcp
DHCP info.
| Returns | |
|---|---|
| Type | Description |
Dhcp|null |
|
hasDhcp
clearDhcp
setDhcp
DHCP info.
| Parameter | |
|---|---|
| Name | Description |
var |
Dhcp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getHttp
HTTP info.
| Returns | |
|---|---|
| Type | Description |
Http|null |
|
hasHttp
clearHttp
setHttp
HTTP info.
| Parameter | |
|---|---|
| Name | Description |
var |
Http
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTls
TLS info.
| Returns | |
|---|---|
| Type | Description |
Tls|null |
|
hasTls
clearTls
setTls
TLS info.
| Parameter | |
|---|---|
| Name | Description |
var |
Tls
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSmtp
SMTP info.
Store fields specific to SMTP not covered by Email.
| Returns | |
|---|---|
| Type | Description |
Smtp|null |
|
hasSmtp
clearSmtp
setSmtp
SMTP info.
Store fields specific to SMTP not covered by Email.
| Parameter | |
|---|---|
| Name | Description |
var |
Smtp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAsn
Autonomous system number.
| Returns | |
|---|---|
| Type | Description |
string |
|
setAsn
Autonomous system number.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDnsDomain
DNS domain name.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDnsDomain
DNS domain name.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCarrierName
Carrier identification.
| Returns | |
|---|---|
| Type | Description |
string |
|
setCarrierName
Carrier identification.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOrganizationName
Organization name (e.g Google).
| Returns | |
|---|---|
| Type | Description |
string |
|
setOrganizationName
Organization name (e.g Google).
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getIpSubnetRange
Associated human-readable IP subnet range (e.g. 10.1.2.0/24).
| Returns | |
|---|---|
| Type | Description |
string |
|
setIpSubnetRange
Associated human-readable IP subnet range (e.g. 10.1.2.0/24).
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getIsProxy
Whether the IP address is a known proxy.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setIsProxy
Whether the IP address is a known proxy.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getProxyInfo
Proxy information. Only set if is_proxy is true.
| Returns | |
|---|---|
| Type | Description |
ProxyInfo|null |
|
hasProxyInfo
clearProxyInfo
setProxyInfo
Proxy information. Only set if is_proxy is true.
| Parameter | |
|---|---|
| Name | Description |
var |
ProxyInfo
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getConnectionState
The state of the network connection.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type ConnectionState. |
setConnectionState
The state of the network connection.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ConnectionState. |
| Returns | |
|---|---|
| Type | Description |
$this |
|