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 \ V1Methods
__construct
Constructor.
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.
setDisruptionType
The type of the disruption event.
$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.
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.
var
string
$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.
$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.
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.
$this

