Compute V1 Client - Class BfdStatus (1.10.1)

Reference documentation and code samples for the Compute V1 Client class BfdStatus.

Next free: 15

Generated from protobuf message google.cloud.compute.v1.BfdStatus

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ bfd_session_initialization_mode string

The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. Check the BfdSessionInitializationMode enum for the list of possible values.

↳ config_update_timestamp_micros int|string

Unix timestamp of the most recent config update.

↳ control_packet_counts Google\Cloud\Compute\V1\BfdStatusPacketCounts

Control packet counts for the current BFD session.

↳ control_packet_intervals array<Google\Cloud\Compute\V1\PacketIntervals>

Inter-packet time interval statistics for control packets.

↳ local_diagnostic string

The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 Check the LocalDiagnostic enum for the list of possible values.

↳ local_state string

The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 Check the LocalState enum for the list of possible values.

↳ negotiated_local_control_tx_interval_ms int

Negotiated transmit interval for control packets.

↳ rx_packet Google\Cloud\Compute\V1\BfdPacket

The most recent Rx control packet for this BFD session.

↳ tx_packet Google\Cloud\Compute\V1\BfdPacket

The most recent Tx control packet for this BFD session.

↳ uptime_ms int|string

Session uptime in milliseconds. Value will be 0 if session is not up.

getBfdSessionInitializationMode

The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer.

Check the BfdSessionInitializationMode enum for the list of possible values.

Returns
TypeDescription
string

hasBfdSessionInitializationMode

clearBfdSessionInitializationMode

setBfdSessionInitializationMode

The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer.

Check the BfdSessionInitializationMode enum for the list of possible values.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getConfigUpdateTimestampMicros

Unix timestamp of the most recent config update.

Returns
TypeDescription
int|string

hasConfigUpdateTimestampMicros

clearConfigUpdateTimestampMicros

setConfigUpdateTimestampMicros

Unix timestamp of the most recent config update.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getControlPacketCounts

Control packet counts for the current BFD session.

Returns
TypeDescription
Google\Cloud\Compute\V1\BfdStatusPacketCounts|null

hasControlPacketCounts

clearControlPacketCounts

setControlPacketCounts

Control packet counts for the current BFD session.

Parameter
NameDescription
var Google\Cloud\Compute\V1\BfdStatusPacketCounts
Returns
TypeDescription
$this

getControlPacketIntervals

Inter-packet time interval statistics for control packets.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setControlPacketIntervals

Inter-packet time interval statistics for control packets.

Parameter
NameDescription
var array<Google\Cloud\Compute\V1\PacketIntervals>
Returns
TypeDescription
$this

getLocalDiagnostic

The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 Check the LocalDiagnostic enum for the list of possible values.

Returns
TypeDescription
string

hasLocalDiagnostic

clearLocalDiagnostic

setLocalDiagnostic

The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 Check the LocalDiagnostic enum for the list of possible values.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLocalState

The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 Check the LocalState enum for the list of possible values.

Returns
TypeDescription
string

hasLocalState

clearLocalState

setLocalState

The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 Check the LocalState enum for the list of possible values.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNegotiatedLocalControlTxIntervalMs

Negotiated transmit interval for control packets.

Returns
TypeDescription
int

hasNegotiatedLocalControlTxIntervalMs

clearNegotiatedLocalControlTxIntervalMs

setNegotiatedLocalControlTxIntervalMs

Negotiated transmit interval for control packets.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRxPacket

The most recent Rx control packet for this BFD session.

Returns
TypeDescription
Google\Cloud\Compute\V1\BfdPacket|null

hasRxPacket

clearRxPacket

setRxPacket

The most recent Rx control packet for this BFD session.

Parameter
NameDescription
var Google\Cloud\Compute\V1\BfdPacket
Returns
TypeDescription
$this

getTxPacket

The most recent Tx control packet for this BFD session.

Returns
TypeDescription
Google\Cloud\Compute\V1\BfdPacket|null

hasTxPacket

clearTxPacket

setTxPacket

The most recent Tx control packet for this BFD session.

Parameter
NameDescription
var Google\Cloud\Compute\V1\BfdPacket
Returns
TypeDescription
$this

getUptimeMs

Session uptime in milliseconds. Value will be 0 if session is not up.

Returns
TypeDescription
int|string

hasUptimeMs

clearUptimeMs

setUptimeMs

Session uptime in milliseconds. Value will be 0 if session is not up.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this