Google Cloud Container V1 Client - Class DisruptionEvent (2.10.0)

Reference documentation and code samples for the Google Cloud Container V1 Client class DisruptionEvent.

DisruptionEvent is a notification sent to customers about the disruption event of a resource.

Generated from protobuf message google.container.v1.DisruptionEvent

Namespace

Google \ Cloud \ Container \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ disruption_type
int

The type of the disruption event.

↳ pdb_blocked_node
string

The node whose drain is blocked by PDB. This field is set for both POD_PDB_VIOLATION and POD_NOT_ENOUGH_PDB event.

↳ pdb_blocked_pod
array< DisruptionEvent\PdbBlockedPod >

The pods whose evictions are blocked by PDB. This field is set for both POD_PDB_VIOLATION and POD_NOT_ENOUGH_PDB event.

↳ pdb_violation_timeout
Google\Protobuf\Duration

The timeout in seconds for which the node drain is blocked by PDB. After this timeout, pods are forcefully evicted. This field is only populated when event_type is POD_PDB_VIOLATION.

getDisruptionType

The type of the disruption event.

Returns
Type
Description
int
Enum of type DisruptionType .

setDisruptionType

The type of the disruption event.

Parameter
Name
Description
var
int

Enum of type DisruptionType .

Returns
Type
Description
$this

getPdbBlockedNode

The node whose drain is blocked by PDB. This field is set for both POD_PDB_VIOLATION and POD_NOT_ENOUGH_PDB event.

Returns
Type
Description
string

setPdbBlockedNode

The node whose drain is blocked by PDB. This field is set for both POD_PDB_VIOLATION and POD_NOT_ENOUGH_PDB event.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getPdbBlockedPod

The pods whose evictions are blocked by PDB. This field is set for both POD_PDB_VIOLATION and POD_NOT_ENOUGH_PDB event.

setPdbBlockedPod

The pods whose evictions are blocked by PDB. This field is set for both POD_PDB_VIOLATION and POD_NOT_ENOUGH_PDB event.

Parameter
Name
Description
Returns
Type
Description
$this

getPdbViolationTimeout

The timeout in seconds for which the node drain is blocked by PDB.

After this timeout, pods are forcefully evicted. This field is only populated when event_type is POD_PDB_VIOLATION.

Returns
Type
Description

hasPdbViolationTimeout

clearPdbViolationTimeout

setPdbViolationTimeout

The timeout in seconds for which the node drain is blocked by PDB.

After this timeout, pods are forcefully evicted. This field is only populated when event_type is POD_PDB_VIOLATION.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: